Update: I managed to get the damage to stop hitting me with an "Impact Unit Validator" on my damage. I'm still not getting the behavior to apply along with the damage though. Still playing with it but can't think of anything still.
So I wanted to develop an ability for a unit in my game. I'm not attempting anything exceedingly fancy: the unit does a small AoE damage/stun around itself and gets a speed buff in order to aid kiting. Thus far, although the ability does successfully provide the speed buff and damage surrounding units, the search function is not working for either the damage or the stun, and is instead damaging the casting unit now I still can't figure out how to get the debuff to apply to enemies as it should. Here's all the relevant info I can think of, please let me know if I forgot anything:
Ability: Effect - Instant (CAbilEffectInstant)
Cost: Time Use 9.0
Effect: (Set)
Editor Categories: Zerg
Behavior (Buff): Buff (CBehaviorBuff)
Alignment: Positive
Categories: Temporary
Modification: Movement Speed Multiplier 2.2
Duration: 3.5
Editor Categories: Zerg
Behavior (Debuff): Buff (CBehaviorBuff)
Alignment: Negative
Categories: Restorable, Temporary
Modification: Modify Flags - Supress Turning, State Flags - Stun
Duration: 1.5
Editor Categories: Zerg
Buttons: Generic (CButton)
Editor Categories: Zerg
Effects (Damage): Damage (CEffectDamage)
Amount: 40
Impact Location: (None):Caster UnitTarget Unit
Editor Categories: Zerg
Response Flags: Acquire, Flee
Impact Unit Validtor: (Target is Enemy or Neutral)
As I said, the buff seems to work, but the damage is for some reason applying to my own unit and the debuff is not occurring at all. I've fiddled with every category I can think to fiddle with. Can someone please explain to me what I've done wrong?
Thanks, we're certainly getting somewhere. That fixed the fact that I wasn't doing damage to enemies. It's still hitting me and not applying the debuff though. Any other things you noticed?
Update: I managed to get the damage to stop hitting me with an "Impact Unit Validator" on my damage. I'm still not getting the behavior to apply along with the damage though. Still playing with it but can't think of anything still.
So I wanted to develop an ability for a unit in my game. I'm not attempting anything exceedingly fancy: the unit does a small AoE damage/stun around itself and gets a speed buff in order to aid kiting. Thus far, although the ability does successfully provide the speed buff and damage surrounding units,
the search function is not working for either the damage or the stun, and is instead damaging the casting unitnow I still can't figure out how to get the debuff to apply to enemies as it should. Here's all the relevant info I can think of, please let me know if I forgot anything:Ability: Effect - Instant (CAbilEffectInstant)
Behavior (Buff): Buff (CBehaviorBuff)
Behavior (Debuff): Buff (CBehaviorBuff)
Buttons: Generic (CButton)
Effects (Damage): Damage (CEffectDamage)
Caster UnitTarget UnitEffect (Search): Search Area (CEffectEnumArea)
Effect (Set): Set (CEffectSet)
Effect (Speed Buff): Apply Behavior (CEffectApplyBehavior)
Effect (Stun): Apply Behavior (CEffectApplyBehavior)
As I said, the buff seems to work,
but the damage is for some reason applying to my own unitand the debuff is not occurring at all. I've fiddled with every category I can think to fiddle with. Can someone please explain to me what I've done wrong?Set the Damage effect to impact the target unit, by having it set to caster you are telling it to hit the unit casting the 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
Thanks, we're certainly getting somewhere. That fixed the fact that I wasn't doing damage to enemies. It's still
hitting me andnot applying the debuff though. Any other things you noticed?As you are using an effect - instant ability you will need to put your stun debuff applying effect after the search.
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