• 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.

Trigger Help Needed

Status
Not open for further replies.
Level 2
Joined
Sep 4, 2006
Messages
7
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?
 
Level 6
Joined
Aug 22, 2006
Messages
253
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.
 
Level 2
Joined
Sep 4, 2006
Messages
7
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.
Top