• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How an Item increase ability damage?

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,574
You can check for the Item(s) using Conditions:
  • Conditions
  • (YourUnit has an item of type YourItem) Equal to True
  • Actions
  • Increase the damage dealt
You can store the Ability Power to the units in response to acquiring/losing the items:
  • Events
  • Unit - A unit acquires an item
  • Actions
  • Set Variable AbilityPower[Custom value of (Hero manipulating item)] = 100
^ This uses a Unit Indexer:
Then you can reference that AbilityPower variable and apply it to your spell damage.

You can modify the ability fields directly on version 1.32+
 
Last edited:

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,574
TY I will try but I dont know nothing about gui and Jazz triggers.... any tutorial would be welcome

It's called Jass btw :p

jazz | Definition, History, Musicians, & Facts | Britannica
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,574
  • cond.gif
    Conditions
  • if.gif
    (YourUnit has an item of type YourItem) Equal to True
  • actions.gif
    Actions
  • if.gif
    Increase the damage dealt

IM NOT FINDING ANY TRIGGER "INCREASE THE DAMAGE DEALT""
Well, how are you dealing the damage? Do you have a spell like Storm Bolt? Or is it triggered damage?

Do you want to use a Damage Engine? I prefer the Damage Engine method since it can save you a lot of work. The only issue is it will be difficult to do things like give each Spell an Ability Power %, like Storm Bolt gains 100% Ability Power but Shockwave only gains 20%. This is because the system can detect Spell damage but not the Ability associated with the damage.
 
Last edited:

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,574
EX... A X unit uses storm bolt, if get an item +3 strenght, the damage of stormbolt grows in Y
This method allows you to modify a spell like Storm Bolt directly using triggers:
You can apply your casting unit's Ability Power to the Damage field.

If you intend to do this for many spells then you can use a Damage Engine and detect when Spell damage is taken then modify it as needed. This would be good if Ability Power affected all of your spells the same way.
 
Last edited:

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,574
 
Status
Not open for further replies.
Top