How to add raw defense to a unit?

ludnica

Long gone
Reaction score
61
Well, hiding the effect is in place, the only thing that is wrong now is that the armor bonus won't apply to the hero unit.
Here's the trigger if I missed something. If it's not the trigger then my upgrade sucks or hell...

Trigger:
  • Trigger
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Skill
    • Actions
      • Player - Set the current research level of Upgrade to ((Current research level of Upgrade for (Owner of (Learning Hero))) + 1) for (Owner of (Learning Hero))
 

zxczxzczx

New Member
Reaction score
2
use the apply defence upgrade and put the defence upgrade of the unit (i think its under combat) to the desired number, (in dragon knight's case it is 2, the upgrade would increase it by two per level)

(i think it is also for you to avoid the appearance of the little box bellow the armor when the unit have upgrades)
 

ludnica

Long gone
Reaction score
61
I think you can't set the number of armor a unit gets from an upgrade. Its normally set to 2 or I'm mistaken?

The Apply Defense Upgrade Bonus seems to not work for my learning hero. And I bet it's scripted.
 

Chocobo

White-Flower
Reaction score
409
complete list of upgrade types 1 by 1 :
- Ability Level Bonus
--- Ability Affected : ability
--- Ability Level Bonus - Increment : integer
--- Ability Level Bonus - Base : integer

- Add Ultravision
- Apply Attack Upgrade Bonus
- Apply Defense Upgrade Bonus
- Attack Damage Bonus
--- Attack Damage Bonus - Increment : integer
--- Attack Damage Bonus - Base : integer

- Attack Damage Loss Bonus
--- Attack Damage Loss Bonus - Increment : integer
--- Attack Damage Loss Bonus - Base : integer

- Attack Dice Bonus
--- Attack Dice Bonus - Increment : integer
--- Attack Dice Bonus - Base : integer

- Attack Range Bonus
--- Attack Range Bonus - Increment : integer
--- Attack Range Bonus - Base : integer

- Attack Speed Bonus (%)
--- Attack Speed Bonus (%) - Increment : real
--- Attack Speed Bonus (%) - Base : real

- Attack Spill Distance Bonus
--- Attack Spill Distance Bonus - Increment : integer
--- Attack Spill Distance Bonus - Base : integer

- Attack Spill Radius Bonus
--- Attack Spill Radius Bonus - Increment : integer
--- Attack Spill Radius Bonus - Base : integer

- Attack Target Count Bonus
--- Attack Target Count Bonus - Increment : integer
--- Attack Target Count Bonus - Base : integer

- Aura Data Bonus
--- Aura Data Bonus - Increment : real
--- Aura Data Bonus - Base : real

- Defense Type Change
--- New Defense Type : Normal, Small, Medium, Large, Fortified, Hero, Divine, Unarmored
- Enable Attacks
--- Attack To Enable : None, Attack 1 Only, Attack 2 Only, Both
- Enable Attacks (rooted)
--- Attack To Enable (rooted) : None, Attack 1 Only, Attack 2 Only, Both
- Enable Attacks (uprooted)
--- Attack To Enable (uprooted) : None, Attack 1 Only, Attack 2 Only, Both
- Gold Harvest Bonus
--- Gold Harvest Bonus - Increment : integer
--- Gold Harvest Bonus - Base : integer

- Gold Harvest Bonus (entangle)
--- Gold Harvest Bonus (entangle) - Increment : integer
--- Gold Harvest Bonus (entangle) - Base : integer

- Hit Point Bonus
--- Hit Point Bonus - Increment : integer
--- Hit Point Bonus - Base : integer

- Hit Point Bonus (%)
--- Hit Point Bonus (%) - Increment : real
--- Hit Point Bonus (%) - Base : real

- Hit Point Regeneration Bonus
--- Hit Point Regeneration Bonus - Increment : integer
--- Hit Point Regeneration Bonus - Base : integer

- Lumber Harvest Bonus
--- Lumber Harvest Bonus - Increment : integer
--- Lumber Harvest Bonus - Base : integer

- Magic Immunity
- Mana Point Bonus
--- Mana Point Bonus - Increment : integer
--- Mana Point Bonus - Base : integer

- Mana Point Bonus (%)
--- Mana Point Bonus (%) - Increment : real
--- Mana Point Bonus (%) - Base : real

- Mana Regeneration Bonus (%)
--- Mana Regeneration Bonus (%) - Increment : real
--- Mana Regeneration Bonus (%) - Base : real

- Movement Speed Bonus
--- Movement Speed Bonus - Increment : integer
--- Movement Speed Bonus - Base : integer

- Movement Speed Bonus (%)
--- Movement Speed Bonus (%) - Increment : real
--- Movement Speed Bonus (%) - Base : real

- Raise Dead Duration Bonus
--- Raise Dead Duration Bonus - Increment : integer
--- Raise Dead Duration Bonus - Base : integer

- Sight Range Bonus
--- Sight Range Bonus - Increment : integer
--- Sight Range Bonus - Base : integer

- Spiked Barricades Bonus
--- Spike Damage Bonus - Increment : integer
--- Spike Damage Bonus - Base : integer

- Unit Availability Change
--- Unit Type Affected : unit
--- New Availability : Available, Unavailable


if you can't afford abilities, use upgrades.
If you don't even know what you did, then there is something wrong. It takes only 1-2 min to create this sort of ability.
If you need to apply it in base 1 (1 armor bonus types) combined with higher bases upgrade, just fill 2-3-4 times the Apply upgrade defense bonus in the accoring upgrade to upgrade by 2-3-4 armor on one level.
 

Attachments

  • Dragon Blood.w3x
    13.1 KB · Views: 138

Zwiebelchen

You can change this now in User CP.
Reaction score
60
The problem here now is the limit of the upgrades and the fact, that you can not unlearn upgrades again after learning.

I wanted to use the "raw defence" upgrade on Items, triggering the bonus. The problem is, that every time, an Item is picked up or dropped down, the "Decrease armor" and "Increase armor" Upgrades have to be applied, since I cannot remove them.
--> After .... lets say ... 200 item drops and picks, the trigger doesn't work anymore since the max level is reached.

Is there any useful solution to that? I know I could just make more upgrades and increase the maximum number, but that's not a good solution for me. It's just a workaround ... and a bad one.


So, basicly, IS there a way to clear upgrades or reduce upgrade levels anyhow? Maybe something with JASS?
 

Bloodcount

Starcraft II Moderator
Reaction score
297
There are only 2 ways to add raw defence to unit.
1 make a second unit with vbigger defencse and replace the units
2 add an upgrade and use it.
 

ludnica

Long gone
Reaction score
61
Suddenly my topic became a "I want to ask everybody about <question> and I'm lazy to make a topic myself"?
No hard feelings.
 

PrisonLove

Hard Realist
Reaction score
78
Okay lets face it, if you want to have armor increasing and decreasing you just have to suck it up and use armor bonuses. Otherwise, if it's just going up, feel free to use upgrades. It's clear that there is no way to avoid armor bonuses if you want armor to go up and down.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top