• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

why doesn't this work?

Status
Not open for further replies.
Level 7
Joined
Oct 12, 2004
Messages
186
I have the two spells already on the hero but the trigger isn't working

Code:
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.
 
Level 10
Joined
Jul 2, 2004
Messages
690
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.
 
Status
Not open for further replies.
Top