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

variable troubles

Status
Not open for further replies.
Level 4
Joined
Jul 29, 2009
Messages
49
im trying to make a trigger that requires a player to be in a region for a set duration to capture the area. ronojales showed me this:
  • Events
  • Time - Every 1.00 seconds of game time
  • Conditions
  • (RegionWithCaptureableBuilding contains CapturingUnit) Equal to True
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • CountdownTimer Equal to 10
  • Then - Actions
  • Unit - Change ownership of CaptureableBuilding to (Owner of CapturingUnit) and Change color
  • Trigger - Turn Off This Trigger
  • Else - Actions
  • Set CountdownTimer = CountdownTimer + 1
i think it works, but i cant figure out how to get the condition right, the countdown timer equal to 10. any help with this?
 
Status
Not open for further replies.
Top