As of right now i have a functional drop-pod ability, that removes all units within a transport and creates a copy of them at target location.
The only problem is that the copied units do not retain any behaviors that may be applied to them like Plague (the effect that i use for testing). In addition abilities with autocast setting are reset to default and control groups are also not retained.
I want the gained behaviors to be applied to the copied units at least.
Here is the order of effects:
Create Persistent For Drop Pod Model
Iterate Transport to remove each cargo unit and create a copy unit at target location
A set with:
The create unit effect to copy cargo units and apply the following spawn effect
Modify Unit, that currently copies only vitals and kill count.
Edit: Control groups are now retained by enabling the select control group flag and setting the Effect: Select Unit value to Target in the create unit effect.
Use a Transfer Behaviour effect to copy the buffs on the old units to the newly created ones before destroying them. Else use a Use Calldown effect to directly unload your units without having to clone them.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Use a Transfer Behaviour effect to copy the buffs on the old units to the newly created ones before destroying them.
The Transfer Behavior effect works. Just to explain here what i have done:
I have added a Set effect with the Modify Unit effect and a Create Persistent effect with a Period Count of 15, the Period and Initial Effect fields have the Transfer Behavior effect and the Target: Location to Target Unit. The Create Persistent effect is there, because the Transfer Behavior effect copies a random behavior and not every single one. The high period count is to ensure that all behaviors are actually copied, because if the period count is too low, the CP will be inconsistent with the copying.
As of the Transfer Behavior effect i set the Effect: Count to -1, Effect : Copy to true, Target: Impact Unit to Target and Target: Launch Unit effect reference to the create unit effect.
Else use a Use Calldown effect to directly unload your units without having to clone them.
The reason i want to do the ability this way, is because there doesn't seem to be a way for the Use Calldown effect to unload units only from the caster and not from other units of the same unit type as the caster. To clarify the caster has both the transport and the drop-pod ability.
Anyway thanks for the help. Now the autocast issue is left, but as i said at the beginning i don't really care if i ever manage to resolve it.
As of right now i have a functional drop-pod ability, that removes all units within a transport and creates a copy of them at target location.
The only problem is that the copied units do not retain any behaviors that may be applied to them like Plague (the effect that i use for testing). In addition abilities with autocast setting are reset to default and control groups are also not retained.
I want the gained behaviors to be applied to the copied units at least.
Here is the order of effects:
Create Persistent For Drop Pod Model
Iterate Transport to remove each cargo unit and create a copy unit at target location
A set with:
The create unit effect to copy cargo units and apply the following spawn effect
Modify Unit, that currently copies only vitals and kill count.
The damage effect used to remove cargo units.
Edit: Control groups are now retained by enabling the select control group flag and setting the Effect: Select Unit value to Target in the create unit effect.
Use a Transfer Behaviour effect to copy the buffs on the old units to the newly created ones before destroying them. Else use a Use Calldown effect to directly unload your units without having to clone them.
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
In reply to DrSuperEvilGamepedia:
The Transfer Behavior effect works. Just to explain here what i have done:
I have added a Set effect with the Modify Unit effect and a Create Persistent effect with a Period Count of 15, the Period and Initial Effect fields have the Transfer Behavior effect and the Target: Location to Target Unit. The Create Persistent effect is there, because the Transfer Behavior effect copies a random behavior and not every single one. The high period count is to ensure that all behaviors are actually copied, because if the period count is too low, the CP will be inconsistent with the copying.
As of the Transfer Behavior effect i set the Effect: Count to -1, Effect : Copy to true, Target: Impact Unit to Target and Target: Launch Unit effect reference to the create unit effect.
The reason i want to do the ability this way, is because there doesn't seem to be a way for the Use Calldown effect to unload units only from the caster and not from other units of the same unit type as the caster. To clarify the caster has both the transport and the drop-pod ability.
Anyway thanks for the help. Now the autocast issue is left, but as i said at the beginning i don't really care if i ever manage to resolve it.
A unit is either set to auto cast or not. Have you considered conflicting triggers?
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
In reply to DrSuperEvilGamepedia:
By triggers do you mean the ones in the Trigger Module? And if so i haven't used any triggers.
Just check there are none related to your ability since some mods use data trigger hybrids which can conflict if you mod the original ability.
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
In reply to DrSuperEvilGamepedia:
My mod file doesn't have any data trigger hybrids. I have created the ability entirely in the data module from scratch.
Any other mods in your map/mod?
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
In reply to DrSuperEvilGamepedia:
Only standard dependencies.