HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help

10-20-2004, 03:13 AM#1
ClearSword
For my Trigger to work I have like (- Player 12 (Brown) types a chat message containing -Give Unit to Red as An exact match) as my Event then for my action I have (Unit - Change ownership of (Picked unit) to Player 1 (Red) and Change color) But when I click on some units and do that it doesnt change the units to reds army. I also need to do this with other ones like killing selected units and such so if anyone could tell me how this works it would help alot Thanks
10-20-2004, 03:59 AM#2
Miningjrk
Picked unit is not who the player has selected. You need to take another action to um, maybe set a variable to the current unit selected by brown, and then use

(Unit change ownership of (variable) to player 1 (Red) and change color)

You can set the variable after creating it as a unit variable by

Action
Set (your variable) = Player - selection event (unit currently selected by player 12 (Brown))
(thats the "Set variable" action)

Or you can take
Unit - Pick unit ( unit currently selected by player 12 (brown))
and keep what you have the same

The last one is easier...just rememberd that one lol

Hope that helps

-Miningjrk
10-20-2004, 11:07 PM#3
ClearSword
ya Thanks this helps me out alot
10-20-2004, 11:09 PM#4
Gandalf2349
I think there is a selected unit, or if you go into unit group, there is a pick every unit selected by....