• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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