• 🏆 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!

Variable

Status
Not open for further replies.
Level 9
Joined
Feb 20, 2014
Messages
409
Hi!
I want to make a variable related to one of the stats of my hero.
Exemple : Variable=Strenght (of my hero)

But then when I try to make a trigger which adds the strenght as dammage to the attacked unit I can't.
Event : My hero starts to cast a spell
Action: Set life of attacked unti to life of attacked unit - variable (strenght here)
I can't do this.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
I believe you are looking for Real(Strength of (Triggering Unit))

Variable type should be Real.

PS: No WE over here, so could not check the exact syntax, but it should look very similar. It should be under "Unit - Hero attribute" or "Hero - Attribute".
 
Status
Not open for further replies.
Top