I'm trying to create an ability for one of my heroes that randomly increases his attack speed by 20%.
So what I did was create an ability of type behavior and then created a behavior that increases the attack speed. I then created a requirement for the behavior that the learn ability must be greater than or equal to 1 in order to use/show the behavior on the unit. That works fine except the unit has the increased attack speed 100% of the time, so I thought I could create an effect with a lower % chance and put that in for the effect-effect-periodic for the behavior and that it would only have the effect 50% of the time - but that's not the case. It seems to cycle randomly but as soon as the behavior drops off, it never comes back on. I even tried adding the effect on effect-initial and effect-refresh effect, but no matter what I try it won't come back on once it drops off. Can anyone help?
I did set a period of 3 seconds, which is the same as my behavior duration - basically I want the increased attack speed to buff the unit for 3 seconds, drop off, and then randomly reapply itself with some % chance.
Tried adjusting the chance on the Apply Behavior effect instead because the only chance associated fields with buffs are the damage response and the death response. Remember 1 is 100%, 0.5 is 50% etc. An alternative is to use a Set effect that uses a random effect and has to choose between your desired effect and a blank dummy effect.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi all,
I'm trying to create an ability for one of my heroes that randomly increases his attack speed by 20%.
So what I did was create an ability of type behavior and then created a behavior that increases the attack speed. I then created a requirement for the behavior that the learn ability must be greater than or equal to 1 in order to use/show the behavior on the unit. That works fine except the unit has the increased attack speed 100% of the time, so I thought I could create an effect with a lower % chance and put that in for the effect-effect-periodic for the behavior and that it would only have the effect 50% of the time - but that's not the case. It seems to cycle randomly but as soon as the behavior drops off, it never comes back on. I even tried adding the effect on effect-initial and effect-refresh effect, but no matter what I try it won't come back on once it drops off. Can anyone help?
I did set a period of 3 seconds, which is the same as my behavior duration - basically I want the increased attack speed to buff the unit for 3 seconds, drop off, and then randomly reapply itself with some % chance.
Thanks in advance to anyone that can help.
Tried adjusting the chance on the Apply Behavior effect instead because the only chance associated fields with buffs are the damage response and the death response. Remember 1 is 100%, 0.5 is 50% etc. An alternative is to use a Set effect that uses a random effect and has to choose between your desired effect and a blank dummy effect.
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
You would have to do something like that:
- Initial Behavior
- Apply Attack Speed Buff (Effect)
- Attack Speed Buff
This works fine for me.
That worked perfectly, cant believe I didnt think of that. Thanks!
So what I said meant nothing?
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
What you say always means something to me. Hobrow's answer was exactly what I was looking for though :P