It does! I can't believe I forgot that that does something. I've added the behavior on "stats finish"
EDIT: THAT WORKED! I had to double-click on the unit I wanted to morph to (the Swarm Queen) and in "Ability - Info -Effects" go to "Stats Finish" and click "choose" beneath it in order to select my "Modify Unit" effect I created that adds 550 experience to the unit I'm morphing to.
Here's something odd... When I go into the actor events of the swarm queen actor and add an "AbilMorph.[My Custom Morph].Finish" with the term "create" beneath it, it actually creates 2 (giving me a CActorScope error). AND it retains the experience and level (of course, I did remember to put "AbilMorph.[My Custom Morph].Start" with a term "destroy" on the larva actor's events).
I thought, maybe, the key to all this was destroying the larva actor, so I tried just that with no "create" on the swarm queen, but that didn't work. It just made the unit blank (no wireframe, no model, no portrait) on morph.
Perhaps the data editor has changed since you last used it? Because this isn't the first instance of tutorials or information I've gotten from here being unusable anymore. I'll try the actor method and see if that gets this working.
Edit: it swaps the model, using AbilMorph.GowowMorphtoSwarmQueen.Start -> ModelSwap GowowBigger (the ID of the model of the custom swarm queen), yes, but the wireframe, hero button, and portrait are all that of the Larva. How can I change these?
Edit 2: Also, the hero is still resetting to level 0/1 after swapping since changing effects on the morph ability doesn't work.
Could you please be more specific on how to set up the actors? It's probably in events and I need to create a new actor event that looks like "AbilMorph.[My Morph Ability].Start" but I don't know what to put for the action under that.
Not silly at all! The more documentation the better for anyone else who may want to do this in the future.
Transient was NOT enabled. Also ignore food and unit cost were all disabled as well.
Edit: Changing those flags to be checked causes the larva to acquire the stats of the Swarm Queen it's supposed to morph into, BUT, it starts it back at level 0 (I could probably "fix" this by making the Swarm Queen START at level 5 by making all previous levels only require 0 experience, right?) and the unit does not morph.
EDIT 2: If I change the validator value to 1 higher then it applies the buff at the correct level. Apparently it's not counting the actual level value but how many times the level changes, and since it "levels up" from 0, that counts as 1 to the game, I guess.
I've followed your instructions exactly but it doesn't work. The larva hits level 5 and nothing happens. Do both the origin unit (the Larva) and the desired unit (the Queen) need to have the same ability? I have screenshots but I need to know if it's okay to link to imgur or something so you can see them since I can't upload any more here.
EDIT: Or does there need to be something in the command card of the larva?
Would I use the default parent value? (CAbilMorph)
EDIT: And would I copy the ability from anything?
EDIT 2: How do I make an ability automatic? How do I create that validator? Sorry I have so many questions. (I found in the flags of the morph ability there's an "automatic" flag, I hope that's it. And I created a validator, but which fields do I have to fill out and which can I leave blank? So far I haven't changed "Validator: Other Unit, Validator: Result - Failure, Validator: Unit, Validator: Failure Result, Validator: Ignore While Channeling" from the default)
Basically, I have a Larva hero that, when it hits a certain level, I want it to play a sound effect and the swarm queen birth animation. I have the actors ready, and they will play properly whenever the hero changes level, but how do I make it happen ONLY on a certain level and then replace the unit with a different one and keep the veterancy experience?
Or is this not possible in the data editor and needs to be done through triggers? I'd provide screenshots but I've hit my screenshot limit on this website.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
It does! I can't believe I forgot that that does something. I've added the behavior on "stats finish"
EDIT: THAT WORKED! I had to double-click on the unit I wanted to morph to (the Swarm Queen) and in "Ability - Info -Effects" go to "Stats Finish" and click "choose" beneath it in order to select my "Modify Unit" effect I created that adds 550 experience to the unit I'm morphing to.
There is no "Morph From/To" term in events.
EDIT: Oh, I see, they're conditions, not actions.
EDIT 2: YUP! That did it, though we're back to the original problem of it resetting to level 0/1.
Here's something odd... When I go into the actor events of the swarm queen actor and add an "AbilMorph.[My Custom Morph].Finish" with the term "create" beneath it, it actually creates 2 (giving me a CActorScope error). AND it retains the experience and level (of course, I did remember to put "AbilMorph.[My Custom Morph].Start" with a term "destroy" on the larva actor's events).
I thought, maybe, the key to all this was destroying the larva actor, so I tried just that with no "create" on the swarm queen, but that didn't work. It just made the unit blank (no wireframe, no model, no portrait) on morph.
Perhaps the data editor has changed since you last used it? Because this isn't the first instance of tutorials or information I've gotten from here being unusable anymore. I'll try the actor method and see if that gets this working.
Edit: it swaps the model, using AbilMorph.GowowMorphtoSwarmQueen.Start -> ModelSwap GowowBigger (the ID of the model of the custom swarm queen), yes, but the wireframe, hero button, and portrait are all that of the Larva. How can I change these?
Edit 2: Also, the hero is still resetting to level 0/1 after swapping since changing effects on the morph ability doesn't work.
Disabling Combine Structure Values view DOES let me see it, but I am unable to edit it.
See screenshot: https://imgur.com/a/lXu82
Could you please be more specific on how to set up the actors? It's probably in events and I need to create a new actor event that looks like "AbilMorph.[My Morph Ability].Start" but I don't know what to put for the action under that.
There is no Ability: Info - Sections - Effects field in the morph.
Also, the wiki you provided doesn't provide any new information about this particular situation.
No, the unit takes on the stats, but does not actually MORPH into the new unit (as in, visually).
Which veterancy behavior would I select for the modify unit effect? The one for the Swarm Queen or the one for the Larva?
Where would I find this "Modify Unit" effect and how would I apply it in the current state of how things are set up based on my screenshots?
Also, we still haven't solved how to make the unit morph.
Not silly at all! The more documentation the better for anyone else who may want to do this in the future.
Transient was NOT enabled. Also ignore food and unit cost were all disabled as well.
Edit: Changing those flags to be checked causes the larva to acquire the stats of the Swarm Queen it's supposed to morph into, BUT, it starts it back at level 0 (I could probably "fix" this by making the Swarm Queen START at level 5 by making all previous levels only require 0 experience, right?) and the unit does not morph.
I did so, however, the buff ends up being applied at level 4? And the unit does NOT automatically transform if I remove the validator.
EDIT: This is a link to the screenshots. https://imgur.com/a/BY1ee
Not included: The buff set-up.
EDIT 2: If I change the validator value to 1 higher then it applies the buff at the correct level. Apparently it's not counting the actual level value but how many times the level changes, and since it "levels up" from 0, that counts as 1 to the game, I guess.
I've followed your instructions exactly but it doesn't work. The larva hits level 5 and nothing happens. Do both the origin unit (the Larva) and the desired unit (the Queen) need to have the same ability? I have screenshots but I need to know if it's okay to link to imgur or something so you can see them since I can't upload any more here.
EDIT: Or does there need to be something in the command card of the larva?
Would I use the default parent value? (CAbilMorph)
EDIT: And would I copy the ability from anything?
EDIT 2: How do I make an ability automatic? How do I create that validator? Sorry I have so many questions. (I found in the flags of the morph ability there's an "automatic" flag, I hope that's it. And I created a validator, but which fields do I have to fill out and which can I leave blank? So far I haven't changed "Validator: Other Unit, Validator: Result - Failure, Validator: Unit, Validator: Failure Result, Validator: Ignore While Channeling" from the default)
Basically, I have a Larva hero that, when it hits a certain level, I want it to play a sound effect and the swarm queen birth animation. I have the actors ready, and they will play properly whenever the hero changes level, but how do I make it happen ONLY on a certain level and then replace the unit with a different one and keep the veterancy experience?
Or is this not possible in the data editor and needs to be done through triggers? I'd provide screenshots but I've hit my screenshot limit on this website.