I'm using "Melee - Create Zerg melee starting units for player at point" to create a base and 6 drones for a zerg player. This happens at arbitrary times. My problem is that when this happens, the 3 larva that you normally get in melee games are not there. You must wait for the larva to spawn. If I explicitly spawn larva next to the hatchery, they do not "register" with the hatchery, meaning the larva icon in the command card displays 0 instead of 3...only the larva that the hatchery spawns seem to increment this number.
Is there any way I can either get these larva to spawn and/or "register" with the hatchery? Thanks.
Couldn't you modify the queen's ability to spawn larva and add it to the hatchery when it's created? Change the duration of the buff to like 0.2 seconds and the number of larva to 3.
That's an idea but would it get "attached" to the hatchery properly? I need the waypoints and everything to work....I've never done anything like this with transferring abilities. If it's fairly easy would you mind sharing some code? Thanks.
It's as simple as using the Add Behavior action, really. If the attachment works properly with the default ability I don't see how modifying a few things would cause a problem. When I have a chance I will try it myself.
Found an even simpler solution. Made a duplicate of the Effect "Queen - Spawn Mutant Larva (Apply Spawn Behavior)" and changed the count to 3. I then just use Environment - Execute Effect (hatchery producing the effect on itself). Works like a charm and it even produces a nice effect where the larva jump from the hatchery instead of appearing next to it :)
Was this on a placed Hatchery or on one that was spawned via a trigger? I'm either not duplicating your method well enough or this method won't work for a Hatchery spawned via a trigger. T_T
Sorry for delayed response. This is on a hatchery generated via Trigger (Create Unit Facing Angle). I am not using the standard Melee trigger functions at all. The custom effect described above should work on any hatchery regardless of creation method afaik.
I'm using "Melee - Create Zerg melee starting units for player at point" to create a base and 6 drones for a zerg player. This happens at arbitrary times. My problem is that when this happens, the 3 larva that you normally get in melee games are not there. You must wait for the larva to spawn. If I explicitly spawn larva next to the hatchery, they do not "register" with the hatchery, meaning the larva icon in the command card displays 0 instead of 3...only the larva that the hatchery spawns seem to increment this number.
Is there any way I can either get these larva to spawn and/or "register" with the hatchery? Thanks.
Couldn't you modify the queen's ability to spawn larva and add it to the hatchery when it's created? Change the duration of the buff to like 0.2 seconds and the number of larva to 3.
@BasharTeg: Go
That's an idea but would it get "attached" to the hatchery properly? I need the waypoints and everything to work....I've never done anything like this with transferring abilities. If it's fairly easy would you mind sharing some code? Thanks.
It's as simple as using the Add Behavior action, really. If the attachment works properly with the default ability I don't see how modifying a few things would cause a problem. When I have a chance I will try it myself.
@BasharTeg: Go
Found an even simpler solution. Made a duplicate of the Effect "Queen - Spawn Mutant Larva (Apply Spawn Behavior)" and changed the count to 3. I then just use Environment - Execute Effect (hatchery producing the effect on itself). Works like a charm and it even produces a nice effect where the larva jump from the hatchery instead of appearing next to it :)
Thanks much for the help.
@jcraigk: Go
Was this on a static Hatchery you placed on the map manually or one that is created if the user selects Zerg?
@jcraigk: Go
No problem. Good luck on the map!
@jcraigk: Go
Was this on a placed Hatchery or on one that was spawned via a trigger? I'm either not duplicating your method well enough or this method won't work for a Hatchery spawned via a trigger. T_T
@Darkenesis: Go
Sorry for delayed response. This is on a hatchery generated via Trigger (Create Unit Facing Angle). I am not using the standard Melee trigger functions at all. The custom effect described above should work on any hatchery regardless of creation method afaik.
Is there ability called "Spawn Larva" or something like that? Can you use that ability by trigger?
EDIT: Nevermind, thread seems to be solved.