• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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