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

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