• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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