• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[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