• 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] Is there an easier way to do this?

Status
Not open for further replies.
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Stone
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Stone
    • Actions
      • Set StoneVar[(Player number of (Owner of (Attacking unit)))] = (StoneVar[(Player number of (Owner of (Attacking unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StoneVar[(Player number of (Owner of (Attacking unit)))] Equal to 5
        • Then - Actions
          • Set Stones[(Player number of (Owner of (Attacking unit)))] = (Stones[(Player number of (Owner of (Attacking unit)))] + 1)
          • Set StoneVar[(Player number of (Owner of (Attacking unit)))] = 0
        • Else - Actions
 
Status
Not open for further replies.
Top