| 03-13-2004, 06:09 AM | #1 |
Code:
Control Wave
Events
Unit - A unit Finishes research
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Control Wave
Then - Actions
Set Controller = (Owner of (Researching unit))
Game - Display to (All players) for 5.00 seconds the text: ((Name of Controller) + will control next wave)
Player Group - Pick every player in PlayersDnA and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player) of type This wave may not be controlled.) and do (Unit - Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units of type Controller) and do (Actions)
Loop - Actions
Unit - Replace (Picked unit) with a Controller using The old unit's relative life and mana
Else - ActionsWhen a player finishes the research called "control wave", he becomes the variable "Controller" which will make him control the next wave. Now the problem i got is that when 2 players use this control wave at the same time (so when one finish the other one is researching) the second one gets to be controller. I cudnt find any trigger like "cancel research", and forcing players to press esc is too slow.... so i replaced the unit. Now the problem of testing this is the reseach is really fast, and i need 2 players. So this problem rarely happens, but it still can. So, would this trigger worK? Does replacing a unit cancel its reseaches? |
| 03-13-2004, 08:04 AM | #2 |
Maby you can order it to stop or to train no unit type. |
