| 01-31-2006, 10:35 PM | #1 |
Whats the best way to do this. I thought just like Townhall can be upgraded into a Keep You give Larva ability to upgrade into whatever/ as many units you want. Give him dummy units to morph into, such as egg models. On completion kill the unit and replace with units you want (with triggers). Im not sure how to detect this with triggers? IS there a better way to do this? Also one problem with this is everytime you morph a unit, when it finishes it displays on screen *upgrade completed*. |
| 01-31-2006, 10:46 PM | #2 |
toy with the pheonix egg ability |
| 01-31-2006, 10:51 PM | #3 |
wisps do something similar to that for organic buildings, why not just use that? |
| 01-31-2006, 11:08 PM | #4 |
Wisps have to maunally click > build on a location then move there. This way I just click on 10 larva and click hotkey L and 10 *L's* start being made. |
| 02-01-2006, 12:26 AM | #5 |
As the Coder for PR who scripted the larva We Have Unit of a larva who trains a unit we get the unit order and then we swich it with an egg and order that unit to upgrade. If it is canceled we kill the egg. |
| 02-01-2006, 03:00 AM | #6 |
Make the lava a Zerg unit. That way you can remove the builder and the unit will continue building by itself. You'll have one egg for each unit spawnable. When the egg finishes construction you can remove the egg and spawn a unit in its place. I think you should automatically get a resource refund if you decide to cancel the egg is under construction. Hmmm if you want multiple egg sacks. then you give an immolation/(auto-heal on) like ability to the lava... and a condition of activating the spell is you must have a certain amoumt of reources. Othewise stop the action. When immolation is activated. spawn your egg and remove the unit. |
| 02-01-2006, 04:41 AM | #7 |
Try adding to larva dummy abilities like Morph to Zergling, morph to hydralisk... and trigger it: Event A unit begins effect of an ability Condition Ability being cast == Morph to Zergling Action Replace Larva with Zergling Egg |
| 02-01-2006, 02:11 PM | #8 | |
Quote:
This seems like a good method, but how do you detect the orders? |
| 02-01-2006, 02:25 PM | #9 |
GetTrainedUnitType() //gets unit id call TriggerRegisterAnyUnitEventBJ(pr_trg_UnitTrainStart, EVENT_PLAYER_UNIT_TRAIN_START) //gets trained event |
| 02-01-2006, 05:54 PM | #10 |
Sometimes with that TriggerRegister code it might screw up the map so it cant be entered tried to open a parasite map. *TriggerRegister is invalid* but im not sure. ![]() |
| 02-01-2006, 06:08 PM | #11 |
That was probably some map protection. TriggerRegisterAnyUnitEventBJ is JASS translation of GUI "Unit - Generic unit event" |
| 02-01-2006, 06:17 PM | #12 |
Just let the larva unit upgrade into other units. 1. Turn it into a building 2. Set its 'upgrade to' field 3. Turn it back into a unit. If you want it to die on cancel, you will need a trigger for that. |
