I've got an ability casting a behavior on the casting unit, this behavior must change it's duration based on the numer of enemy units surrounding the caster unit. Lets say if 1 enemy in 10 radius behavior lasts 1second, if 2 then 2s, etc.
Now I understand I probably need to make a switch effect with all apply effects and each behavior with different duration in case I wanna make different effects for the behavior too.
What I still can't get is the validators too work, I'm using one type named: CValidatorLocationEnumArea or something but I can't seem to figure how to make each effect to only fire when the desired enemies are in the area.
Any help please?
Rollback Post to RevisionRollBack
I like the lore. Check my latest projects at:
My Profile and My Team
Wow under 24h old and bumped. Use the Extend flag on the buff so the duration increases with each application. Have a search target all enemies and apply the same buff at the caster.
For your second problem you want the enumerate area to be equals to. And have one for each condition.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
@DrSuperEvil: Go Sorry, I got a little anxious, this forum has never let me down before and I was a little urged on this 'cause it's not for me it's for someone I'm helping.
Gonna try that now.
Edit: Hmm.. i think i don't get what you mean...
I have one ability, instant effect, target on "caster", it uses a switch effect to cast one of several search effects with a validator each. This search effects then apply an "apply behavior" effect on the caster, for each one I have one different behavior.
The validator must be like: If 2 to 6 enemies in area (10 radius), then fire search effect with apply behavior of like 5 seconds duration. If 7 to 12 enemies in area then apply behavior of 10 seconds or so..
You only need one behaviour and no switch. The duration max and min fields set how much duration is added per application. This allows for a much more dynamic increment of y = mx + c with c being the base duration.
The way you want needs just an enumerate area validator (3x), the switch and three different behaviours with a fixed duration
Hello everyone.
I've got an ability casting a behavior on the casting unit, this behavior must change it's duration based on the numer of enemy units surrounding the caster unit. Lets say if 1 enemy in 10 radius behavior lasts 1second, if 2 then 2s, etc.
Now I understand I probably need to make a switch effect with all apply effects and each behavior with different duration in case I wanna make different effects for the behavior too.
What I still can't get is the validators too work, I'm using one type named: CValidatorLocationEnumArea or something but I can't seem to figure how to make each effect to only fire when the desired enemies are in the area.
Any help please?
No one????
Wow under 24h old and bumped. Use the Extend flag on the buff so the duration increases with each application. Have a search target all enemies and apply the same buff at the caster.
For your second problem you want the enumerate area to be equals to. And have one for each condition.
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 Sorry, I got a little anxious, this forum has never let me down before and I was a little urged on this 'cause it's not for me it's for someone I'm helping.
Gonna try that now.
Edit: Hmm.. i think i don't get what you mean...
I have one ability, instant effect, target on "caster", it uses a switch effect to cast one of several search effects with a validator each. This search effects then apply an "apply behavior" effect on the caster, for each one I have one different behavior.
The validator must be like: If 2 to 6 enemies in area (10 radius), then fire search effect with apply behavior of like 5 seconds duration. If 7 to 12 enemies in area then apply behavior of 10 seconds or so..
Is this right?
You only need one behaviour and no switch. The duration max and min fields set how much duration is added per application. This allows for a much more dynamic increment of y = mx + c with c being the base duration.
The way you want needs just an enumerate area validator (3x), the switch and three different behaviours with a fixed duration
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