• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

why doesn't this work?

Status
Not open for further replies.
Level 8
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.
 
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.
Back
Top