HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Really noob question.

03-17-2006, 12:58 AM#1
Ares_WarBlade
I can't seem to figure out how to simply make the set variable command select the hero of the player who enters a chat command.

The closest I've come to figuring it out is.

Trigger:
Collapse Events
Player -Player 1 (Red) types a chat message containing -whatever as An exact match
Collapse Actions
Set someunitvariable = (Random unit from (Units in (Playable map area) matching ((((Triggering unit) is A Hero) Equal to True) and ((Owner of (Triggering Unit)) Equal to (Triggering Player)))))

That however, does not seem to work properly.
03-17-2006, 01:21 AM#2
Immoralis
try this

Trigger:
Set someunitvariable = (Random unit from (Units in (Playable map area) matching ((((Matching Unit) is A Hero) Equal to True) and ((Owner of (Matching Unit)) Equal to (Triggering Player)))))
03-17-2006, 02:12 AM#3
Ares_WarBlade
Bingo, that did the trick, much thanks!