Warcraft III resources & community, 2003–2006 · archived

why doesn't this work?

5 posts
#1

why doesn't this work?

I have the two spells already on the hero but the trigger isn't working

Health and Mana
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Set Level of PC HP  for PlayersCharacter[(Integer A)] to Stamina[(Integer A)]
                Unit - Set Level of PC Mana  for PlayersCharacter[(Integer A)] to (Intelligence of PlayersCharacter[(Integer A)] (Include bonuses))


the varible Stamina is also set already.
#2
What happens when the trigger runs? And what type are the variables?

-Rui
#3
try using unit variable instead of unit group variable?
#4
the spell is based off of an item spell.
the Stamina varible is an integer.
when the trigger runs it doesn't change the level like its suppose to
#5
if you use that loop then the trigger will run 10 times, you know? and hp/mana are real. not integar. did you enable array? try not enabling.