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.
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)
Yes you create a new ability of the Morph type using the Add Ability option when you right click the ability list and use the default parent. I find it best to make stuff from scratch to avoid bugs. Under the Morph ability in the Stats: Flags field is a flag called Automatic.
Go to the validators data type and right click the list and select the Add Validator option. Under the validator you just need to change the Validator: Unit - Value field to Caster, Validator: Value to the level you want to morph at, Validator: Behaviour to your Veterancy type behaviour and Validator: Compare to greater than or equals (incase you kill a big unit and skip over the required level).
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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?
It is ok to link to other image storage sites for images of minor importance.
Start by removing your validator from the ability and see if the unit automatically changes. Also put the validator in the Behavior: Validators (Disable) field of a Buff behaviour that adds +1 to max energy using the Unit: Modification - Vital Max Bonus field and give this to the origin unit under the Behavior: Behaviors - Behaviour field of the unit. This will allow you to find which part is faulty.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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.
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.
Thought you said the automatic morphing was now functional?
You would create a new Modify Unit effect, set the exp in the Effect: Experience and specify the veterancy behaviour in the Effect: Veterancy Behavior fields You then put this effect in the Ability: Info - Sections - Effects field of the morph.
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.
Usually people use a Model Swap actor event action or they use a Destroy action and then have a separate Unit actor that is created when the morph starts/stops.
That is odd because double left clicking it should open up the window for the morph settings and in that list of fields it should be near the bottom.
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.
You then want to use the destroy actor and create another one approach. Destroy the old actor on ability morph start and create on ability morph finish. The order this is done in is important because a unit can only have one Unit type actor at one time else it creates the test sphere and gives an error.
At the top of the data editor what settings are you using? In the worst case you can add the effect using XML (use the Supply Depot - Raise morph as a guide).
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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.
Use an automatic Morph ability to swap the units that is validated by a Unit Compare Veterancy Levels type validator.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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)
Yes you create a new ability of the Morph type using the Add Ability option when you right click the ability list and use the default parent. I find it best to make stuff from scratch to avoid bugs. Under the Morph ability in the Stats: Flags field is a flag called Automatic.
Go to the validators data type and right click the list and select the Add Validator option. Under the validator you just need to change the Validator: Unit - Value field to Caster, Validator: Value to the level you want to morph at, Validator: Behaviour to your Veterancy type behaviour and Validator: Compare to greater than or equals (incase you kill a big unit and skip over the required level).
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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?
No just the origin unit.
It is ok to link to other image storage sites for images of minor importance.
Start by removing your validator from the ability and see if the unit automatically changes. Also put the validator in the Behavior: Validators (Disable) field of a Buff behaviour that adds +1 to max energy using the Unit: Modification - Vital Max Bonus field and give this to the origin unit under the Behavior: Behaviors - Behaviour field of the unit. This will allow you to find which part is faulty.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
With veterancy 0 is no behaviour on the unit 1 is level 0 etc.
Silly question is the morph set to ignore food and unit cost? Is the Transient flag enabled?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
You could also use a Modify Unit effect to give it the amount of exp required.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
Thought you said the automatic morphing was now functional?
You would create a new Modify Unit effect, set the exp in the Effect: Experience and specify the veterancy behaviour in the Effect: Veterancy Behavior fields You then put this effect in the Ability: Info - Sections - Effects field of the morph.
https://sc2mapster.gamepedia.com/Data/Abilities/Morph
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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?
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.
You need to set up the actor for the unit to respond to the morph if you want it to change visually.
Your units are using different veterancy behaviours? Use the one for the unit being morphed into.
Try disabling the Combine Structure Values View option for the data editor to reveal more fields.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
Disabling Combine Structure Values view DOES let me see it, but I am unable to edit it.
See screenshot: https://imgur.com/a/lXu82
Usually people use a Model Swap actor event action or they use a Destroy action and then have a separate Unit actor that is created when the morph starts/stops.
That is odd because double left clicking it should open up the window for the morph settings and in that list of fields it should be near the bottom.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
You then want to use the destroy actor and create another one approach. Destroy the old actor on ability morph start and create on ability morph finish. The order this is done in is important because a unit can only have one Unit type actor at one time else it creates the test sphere and gives an error.
At the top of the data editor what settings are you using? In the worst case you can add the effect using XML (use the Supply Depot - Raise morph as a guide).
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg