• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Simple Question ''-clear animal'' command

Status
Not open for further replies.
Level 2
Joined
Mar 20, 2015
Messages
14
Hello guys, did you all know a map called Farmer Vs Hunter??? And that is remastered by rednek and parafrazor. Version is update and update, and a version have a -clear animal command. It use to instant clear all the animal in the map. But, why me did not work that??? That down is my trigger^^Clear Animal
Events
Player - Player 1 (Red) types a chat message containing -clear animal as An exact match
Player - Player 2 (Blue) types a chat message containing -clear animal as An exact match
Player - Player 3 (Teal) types a chat message containing -clear animal as An exact match
Player - Player 4 (Purple) types a chat message containing -clear animal as An exact match
Player - Player 5 (Yellow) types a chat message containing -clear animal as An exact match
Player - Player 6 (Orange) types a chat message containing -clear animal as An exact match
Player - Player 7 (Green) types a chat message containing -clear animal as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Chicken) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Sheep) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Pig) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Golden Chicken (Level 2)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Black Sheep (Level 2)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Fat Pig (Level 2)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
 
Level 2
Joined
Mar 20, 2015
Messages
14
Some people sure say: you can use 1 action only... No need to multi action.... Lol, that is my leaks, but why did it no work?
 
Level 2
Joined
Mar 20, 2015
Messages
14
This is used for player animal remove, not all player remove, or, did u mean cannot use ''Triggering Unit(Player)''?
(Units owned by (Owner of (Triggering unit))

In this case, there is no Triggering Unit. What you need instead is Triggering Player
 
Level 12
Joined
May 20, 2009
Messages
822
There's no Triggering Unit. No unit is causing the event to go off. A Player is.

What you need is,

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -clear animal as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
 
Status
Not open for further replies.
Top