Staredit Network

Staredit Network -> UMS Assistance -> How to do this trigger?
Report, edit, etc...Posted by Cheese_Burger_Eddy on 2005-11-04 at 22:45:00
Lets say there is a location always following a zealot. I want it so that i can get rid of the zealot and create a dragoon at the same spot the zealot was last at. Then, i need it so that i can switch from a dragoon to a zealot and vice-versa whenever i feel like (with use of some other trigger).

HELP ME PLZ
Report, edit, etc...Posted by Joshgt2 on 2005-11-04 at 22:57:18
It could look a little like this...

we are going to use 2 locations:
1: Zealot
2: Center


Trigger
Players:
¤ Player 1
Conditions:
¤ "Switch 1" is set
Actions:
¤ Center location "Zealot" on Zealot at "Center"
¤ Preserve Trigger


Trigger
Players:
¤ Player 1
Conditions:
¤ (Conditions that would toggle the location to be on the zealot)
Actions:
¤ Set "Switch 1"
¤ Preserve Trigger


Trigger
Players:
¤ Player 1
¤ Player 1
Conditions:
¤ "Switch 2" is set
Actions:
¤ Center location "Zealot" on Dragoon at "Center"
¤ Preserve Trigger


Trigger
Players:
¤ Player 1
Conditions:
¤ (Conditions to make zealot switch to dragoon)
Actions:
¤ Clear "Switch 1"
¤ Set "Switch 2"
¤ Preserve Trigger


The same would also go for going from Dragoon to Zealot as well. I hoped this helpd out alittle.
Report, edit, etc...Posted by notnuclearrabbit on 2005-11-05 at 07:02:37
[center]
Trigger
Description:
Zeal/Goon Loc
Players:
¤ Whoever
Conditions:
¤ Always
Actions:
¤ Center Location X on all Zealot for whoever
¤ Center Location X on all Goons for whoever
¤ Preserve Trigger

The location is always being centered on all zealots and goons for the player, this way you don't need 2 separate ones.

Trigger
Description:
Changing
Players:
¤ Whoever
Conditions:
¤ Whatever conditions need to be met to initate the swap
Actions:
¤ Create 1 new unit at Location X
¤ Remove 1 old unit at Location X
¤ Preserve Trigger

When the conditions are met the trigger creates the new unit at the location, THEN removes the old one. If you removed the old unit first the location wouldn't be where it should be, but in the center of the map.

Just make sure that the conditions aren't constaly being met, like a civ standing on a beacon.
[/center]
Report, edit, etc...Posted by Kumano on 2005-11-05 at 07:05:26
I'm not sure how you made it turn into a dragoon, since I never saw any remove/create actions (meant Joshgt2)... It could be something like:

Trigger
Conditions:
¤ Whatever conditions.
Actions:
¤ Center location 'Zealot' on zealot.
¤ Remove 1 zealot at 'Zealot'
¤ Create 1 dragoon at Zealot
¤ Something to make conditions not set off directly after again (unless you do want it to happen constantly)
¤ Preserve Trigger



And for dragoon, just switch all zealots with dragoon (other then the location since that would just waste a location)
Report, edit, etc...Posted by Oo.Turin.oO on 2005-11-05 at 12:40:27
If you want the unit to still keep the same hit points then you would have to change remove to move and you would have to add one more trigger that gave the unit to a nuetral player and you would have to use move the dragoon and give it to the player. Thats how they keep the same health so that you can't just switch to heal.
Next Page (1)