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.
 
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".
 
Action: Set life of attacked unti to life of attacked unit - variable (strenght here)
You will need to use the unit damage unit action to deal the extra damage. This is so that the kill is properly credited otherwise it will appear the victim suicide and so not award any experience, bounty or kill credit.
 
Status
Not open for further replies.
Back
Top