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.

      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