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

Need help with a condition in a trigger.

Status
Not open for further replies.
Level 14
Joined
Mar 27, 2008
Messages
1,003
Well it's pretty simple, I need to make a trigger that states if player 12's slot is occupied by a computer, than a certain unit moves to a random spot in a certain region every 15 seconds.
The problem is, I have no idea which condition to use, I tried the player slot / player controller triggers and it just didn't work.
Am I doing something wrong?
Please help!
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
"Player Controller" should be correct, though.
  • Move
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 12 (Brown) controller) Equal to Computer
        • Then - Actions
          • Set TempLoc1 = (Random point in (Playable map area))
          • Unit - Order Unit to Move To TempLoc1
          • Custom script: call RemoveLocation(udg_TempLoc1)
        • Else - Actions
          • Trigger - Turn off (This trigger)
 
Level 14
Joined
Mar 27, 2008
Messages
1,003
"Player Controller" should be correct, though.
  • Move
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 12 (Brown) controller) Equal to Computer
        • Then - Actions
          • Set TempLoc1 = (Random point in (Playable map area))
          • Unit - Order Unit to Move To TempLoc1
          • Custom script: call RemoveLocation(udg_TempLoc1)
        • Else - Actions
          • Trigger - Turn off (This trigger)

I see what I did wrong. I layed out the trigger wrong and forgot to remove the location.
Thank you so much! + Rep
 
Status
Not open for further replies.
Top