• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger Help Needed

Status
Not open for further replies.

llamafier

L

llamafier

I'm making a team tower defense map and I want players to be able to destroy their allies towers if they build in someone elses area. I setup regions covering each players area and tried to make a trigger where if a player typed -kill it would remove the unit they had selected(if it was not theirs and in their area). I could never get it working so can someone help me with this please?
 
You need

event: Player 1 enters message (-cleararea or something?)

Actions: Pick All units in "Player1Area"
matching
"Picked unit not equal to player 1" (Player Comparison)
and
"picked unit equal to a structure" (Boolean Comparison)
then do
"Unit - Remove picked unit".
else
do nothing.

Then do a trigger like that for every player. Hope that helps.
 
Thanks that did help :D but I want to make it so it only kills the unit they currently have selected, not all of them.
 
Status
Not open for further replies.
Back
Top