I have a Summoner that makes units at the cost of a portion of his maximum energy. That part I handled just fine. Summoning a unit applies a behavior that reduces his maximum energy until removed. Here are the problems I'm facing:
The following effects should remove the behavior from the Summoner
• Death of the Unit (This would probably require tracking the unit and tying it somehow to the behavior)
• Dismissal of the Unit (This requires the same)
• An enemy dispelling the unit via another spell. (This would be a reasonably simple ability that forces the dismissal effect)
Use a Unit Filter validator on the buff that checks the unit spawned (via the create unit effect) is not dead.
Else place a hidden buff on the summoned unit via the create unit effect that then applies your other buff to the caster and have the caster buff be validated for the other buff using the source of the apply behaviour effect as a frame of reference.
Number 2 and 3 are just using Damage effects to kill the unit instantly
Need more details as to how you want to summon your guy.
In short I assume you create your summon using a Create Unit effect. Under that effect is a field called Effect - Effect - Spawn. You find that hallucinations and broodlings use that field to apply buffs to the created unit. Use an Apply Behavior effect to apply a Buff type behaviour to the summoned unit. Under the buff on the summoned unit in the Effect - Effect - Initial field use an Apply Behavior effect to apply a Buff type behaviour to the caster via the Unit - Unit - Value field of the Apply Behavior effect. On the second buff use a Unit Compare Behavior Count validator to remove it if the summoned unit no longer has it. This is done by Validator - Unit - Effect field being set to the effect that applied the buff to the caster so you can use the source of it as a frame of reference to validate the summoned unit that applied it. The Effect - Effect - Final field of the summon buff can have a Damage effect with the kill flag that targets the source so simple removal of the buff kills the summon.
I have a Summoner that makes units at the cost of a portion of his maximum energy. That part I handled just fine. Summoning a unit applies a behavior that reduces his maximum energy until removed. Here are the problems I'm facing:
The following effects should remove the behavior from the Summoner
• Death of the Unit (This would probably require tracking the unit and tying it somehow to the behavior)
• Dismissal of the Unit (This requires the same)
• An enemy dispelling the unit via another spell. (This would be a reasonably simple ability that forces the dismissal effect)
Does anyone here know how I would go about this?
Use a Unit Filter validator on the buff that checks the unit spawned (via the create unit effect) is not dead.
Else place a hidden buff on the summoned unit via the create unit effect that then applies your other buff to the caster and have the caster buff be validated for the other buff using the source of the apply behaviour effect as a frame of reference.
Number 2 and 3 are just using Damage effects to kill the unit instantly
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
Alright, after poking around in the effects/abilities/behaviors, I'm still lost. Mind going through this one step by step for me?
Need more details as to how you want to summon your guy.
In short I assume you create your summon using a Create Unit effect. Under that effect is a field called Effect - Effect - Spawn. You find that hallucinations and broodlings use that field to apply buffs to the created unit. Use an Apply Behavior effect to apply a Buff type behaviour to the summoned unit. Under the buff on the summoned unit in the Effect - Effect - Initial field use an Apply Behavior effect to apply a Buff type behaviour to the caster via the Unit - Unit - Value field of the Apply Behavior effect. On the second buff use a Unit Compare Behavior Count validator to remove it if the summoned unit no longer has it. This is done by Validator - Unit - Effect field being set to the effect that applied the buff to the caster so you can use the source of it as a frame of reference to validate the summoned unit that applied it. The Effect - Effect - Final field of the summon buff can have a Damage effect with the kill flag that targets the source so simple removal of the buff kills the summon.
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
@DrSuperEvil: Go
Perfect. Thank you!