• 🏆 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!

[Trigger] Item move seem to had something wrong

Status
Not open for further replies.
Level 31
Joined
May 3, 2008
Messages
3,155
  • Player Left
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
    • Conditions
    • Actions
      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + has left the games.)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Picked unit)) Equal to (Triggering player)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Matching unit) has Meat 1020 <gen>) Equal to True
            • Then - Actions
              • Item - Move Meat 1020 <gen> to (Center of Food 1 <gen>)
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Matching unit) has Seaweed 1021 <gen>) Equal to True
            • Then - Actions
              • Item - Move Seaweed 1021 <gen> to (Center of Food 2 <gen>)
            • Else - Actions
              • Do nothing
        • Else - Actions
          • Do nothing
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Smart Or Noob Player) and do (Unit - Remove (Picked unit) from the game)
      • Leaderboard - Remove (Triggering player) from (Last created leaderboard)
Well, I was trying to set up a trigger that would move the item to region xxx should the player who own the item left the game. But, it seem like there is something a miss from it.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
(Owner of (Picked unit)) Equal to (Triggering player)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Matching unit) has Meat 1020 <gen>) Equal to True
You do not have a picked nor a matching unit.
You actually have to pick the unit.
 
Level 31
Joined
May 3, 2008
Messages
3,155
What about this ?

  • Player Left
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
    • Conditions
    • Actions
      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + has left the games.)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Owner of (Picked unit)) Equal to (Triggering player)
              • (Unit-type of (Picked unit)) Equal to Smart Or Noob Player
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Matching unit) has Meat 1020 <gen>) Equal to True
            • Then - Actions
              • Item - Move Meat 1020 <gen> to (Center of Food 1 <gen>)
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Matching unit) has Seaweed 1021 <gen>) Equal to True
            • Then - Actions
              • Item - Move Seaweed 1021 <gen> to (Center of Food 2 <gen>)
            • Else - Actions
              • Do nothing
        • Else - Actions
          • Do nothing
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type Smart Or Noob Player) and do (Unit - Remove (Picked unit) from the game)
      • Leaderboard - Remove (Triggering player) from (Last created leaderboard)
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Face-palm
Someone with iron nerves should explain this to you(I am going for breakfast).
But it would be easier if someone just made it.
 
Status
Not open for further replies.
Top