HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Problem

09-11-2007, 09:37 PM#1
DALE!NBLACK
This trigger is supposed to kill any unit red has selected when he types "-kill". I used a group because the player may want to delete lots of his own. I'm considering using a different method but I'd still like to know what's wrong with this.

Trigger:
kill unit
Collapse Events
Player - Player 1 (Red) types a chat message containing -kill as A substring
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Collapse Loop - Actions
Game - Display to Player Group - Player 1 (Red) the text: (Killed + ((String((Number of units in (Units currently selected by Player 1 (Red))))) + units.))
Unit - Kill (Picked unit)
EDIT: Just noticed that I put the text in the loop. I'll remove it.

EDIT: That fixed it >.< Please delete this thread sorry for wasting your time.
09-11-2007, 09:42 PM#2
botanic
use -kill as an exact match