• 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.

[Trigger] Lost Mana when running? :S

Status
Not open for further replies.
Level 2
Joined
Nov 30, 2008
Messages
7
Why don't my trigger work.. :S

  • Events, Time - Every 0.10 seconds of game time
  • Actions .-. If (all Conditions are True) then do (Then Actions) else do (else Actions).-. If - conditions, Control_Boolean8[((Playernumber of (Triggering player))] Equal to True .-. Then - Action .-. Unit - set mana of moving_unit [((Player number of (Triggering player))] to ((Mana of Moving_units[((Player number of Triggering player))] - ((Mana of Triggering unit))/10.00)).-. If (All conditions are True) then do (then actions) elso do (Else Actions).-. If Conditions (Mana of Moving_units[((Player number of (Triggering player))] Equal to 0.00.-. Then - Action .-. Unit - set moving_unit [((Player number of (Triggering player))] movement speed to (Default movement speed of Moving_units[((Player number of (Triggering player))] .-. Set Control_Boolean7[((Player number of (Triggering player))] = False, Set Control_Boolean 8[((Player number of (Triggering player))] = False -.- Else- action.-. Else Actions
I can't see what is wrong.. But I think it's were I have pointed.
The unit have to lose about 10% of mana when the unit is running.

It work if I just say the unit lose 1 mana when running...
 
Status
Not open for further replies.
Top