Staredit Network

Staredit Network -> UMS Assistance -> 3 second help on a trigger
Report, edit, etc...Posted by JordanN_3335 on 2006-05-16 at 19:19:24
So right now for the map contest of may im working on this map I already explained. So I want to create a unit at another unit but I want it when one of them dies.

CODE
Condition
Current play suffers at lease 1 death of "unit"

Action
Create 1 unit at "location" for current player
Move units at location "location" to "destination"
Center location on "location" to "unit" owned by player at location
Display text message "..."
Preserve trigger


But I dont want it to always be random or I made a mistake on something but what I'm trying to say for center location and move units is it in the right order?
Report, edit, etc...Posted by Noober on 2006-05-16 at 19:50:13
Well, you need a loc that follows a unit the player has when he has a unit. That way, the location will stay where the unit dies. Then, instead of doing all that, just create the new unit in the old location.
Report, edit, etc...Posted by Kyuubi. on 2006-05-16 at 19:50:56
it looks like that trigger would constantly keep firing once the player's unit die...you might want to put an additional condition at the top of the conidtion list for the trigger setting the death count of the unit back to 0.
like this;
-set deaths: for player to 0

you can preferably change the location on where it's at to anywhere to where you want it to be moved to. or for another way, if you want, you can just make it create it at the spot instead of creating it on another spot and moving it there.
Next Page (1)