I cant seem to make this work, I have been trying this for hours.
I want for the behavior to add + 10% dmg and +10% attack speed each time the unit attacks. The maximum stack should be 5 and it should reset after 10 seconds.
You forgot to mention what you already tried and what exactly doesn't work for you.
Generally speaking, you want to set up your weapon to use an Apply Behavior effect applying one stack of the behavior alongside the damage (utilizing a Set effect). Your behavior needs a Max Stack Count of 5, the damage and attackspeed fractions of course and a duration of 10 seconds. You can modify the behavior flags to make stacks run out individually or refresh the whole stack when applied.
I set the effect to the weapon, but if I add modifications on the behavior that will subtract dmg/armor from the attacked unit. It wont give the attacking unit that bonus .
Then I thought to use that to my advantage and make that stackable but I realize that wont go well because if 1 swordsman attack the target 5 times , it will stack 5 times, which is fine, but if 2 units attack the same target it will double the stack and that sucks...
Than I tried to make a behavior with an effect to add armor using damage response, so when the unit is attacked , it should gain armor. With this I had no luck because cant seem to make it work at all.
Oh man... I think a terrorist is more friendly than this SC2 map editor :(
1. You can apply the behavior similair to how the marauder applies its slowing effect, just change the target to Caster.
2. You can use a damage response behavior, be sure to set the chance to 1 and also set it to Defender, then set the effect to the apply behavior effect, to be sure that it works, set the target of the apply behavior effect to Caster.
Another thing that might make it bug is that you haven't set the stacks of the buff behavior to 5.
I did what you said at point 2. But it seems the behavior is added in an instant and doesn't apply based on the hits it takes.
In other words, right now I have max stack count 5 . and response damage -2 , So after 5 attacks , the unit should receive 10 less damage. But right now it stars already at full stacks , so from start it receive 10 less damage .
Ah, never mind. I made the other one with the effect on weapon modification to work. Will work with that. Wont waste any more time and brain cells to fix the others :)
Thx for the help .
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I cant seem to make this work, I have been trying this for hours.
I want for the behavior to add + 10% dmg and +10% attack speed each time the unit attacks. The maximum stack should be 5 and it should reset after 10 seconds.
You forgot to mention what you already tried and what exactly doesn't work for you.
Generally speaking, you want to set up your weapon to use an Apply Behavior effect applying one stack of the behavior alongside the damage (utilizing a Set effect). Your behavior needs a Max Stack Count of 5, the damage and attackspeed fractions of course and a duration of 10 seconds. You can modify the behavior flags to make stacks run out individually or refresh the whole stack when applied.
Made sure your Apply Behavior ability targets the caster?
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
Well.. I tried many different things.
I set the effect to the weapon, but if I add modifications on the behavior that will subtract dmg/armor from the attacked unit. It wont give the attacking unit that bonus .
Then I thought to use that to my advantage and make that stackable but I realize that wont go well because if 1 swordsman attack the target 5 times , it will stack 5 times, which is fine, but if 2 units attack the same target it will double the stack and that sucks...
Than I tried to make a behavior with an effect to add armor using damage response, so when the unit is attacked , it should gain armor. With this I had no luck because cant seem to make it work at all.
Oh man... I think a terrorist is more friendly than this SC2 map editor :(
There are two ways to do it.
1. You can apply the behavior similair to how the marauder applies its slowing effect, just change the target to Caster.
2. You can use a damage response behavior, be sure to set the chance to 1 and also set it to Defender, then set the effect to the apply behavior effect, to be sure that it works, set the target of the apply behavior effect to Caster.
Another thing that might make it bug is that you haven't set the stacks of the buff behavior to 5.
@HerpinDerpinson: Go
I did what you said at point 2. But it seems the behavior is added in an instant and doesn't apply based on the hits it takes. In other words, right now I have max stack count 5 . and response damage -2 , So after 5 attacks , the unit should receive 10 less damage. But right now it stars already at full stacks , so from start it receive 10 less damage .
Ah, never mind. I made the other one with the effect on weapon modification to work. Will work with that. Wont waste any more time and brain cells to fix the others :)
Thx for the help .