• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Pick Random Thingy

Status
Not open for further replies.
Level 14
Joined
Jan 5, 2009
Messages
1,127
Ok. I halted my Nightmarescape project for now to work on a different one. Im making a phantom III where there are two phantoms instead of one. It has the same terrain as the map Abyss except with a few edits.
Here is the trigger.
  • Chosing Done
    • Events
      • Timer - Elapsed time is 15.0 Real Time seconds
    • Local Variables
    • Conditions
    • Actions
      • Variable - Set Phantom_1 = (Owner of (Random Living unit from RandUnitsG))
      • Variable - Set Phantom_2 = (Owner of (Random Living unit from RandUnitsG))
      • General - Repeat (Actions) forever
        • Actions
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • Phantom_1 == Phantom_2
            • Then
              • Variable - Set Phantom_2 = (Owner of (Random Living unit from RandUnitsG))
            • Else
              • General - Break
Did I do it right? I dont want it looping forever and causing me trouble.
 
Status
Not open for further replies.
Top