I've been trying to figure this out for about 30mins - 1hr each day for the past 3 days, and I'm simply stumped. Basically, I want an ability that applies an immediate buff to the caster. The buff is supposed to increase weapon damage (which I've already managed to do) and give the caster's weapon a stun effect (I've already created the stun effect as well). The problem is that I can't figure out how to apply the buff to the actual weapon of the caster.
If you take a look at the way the marauder's conc is set up, you'll see that the slow effect is on the weapon by default. It's got a validator to check whether or not conc grenades have been researched, to make sure the effect doesn't trigger if they're not. You can do a similar thing with your stun effect, and a validator to make sure your stunning attack buff is on the unit.
I want a full out stun effect, though I get where you're coming from (I've already created the stun effect as i've mentioned)
Are you suggesting that I make the buff swap the actual weapon for another? If so, i've had other problems with doing that. (the unit i'm using is an ultralisk, and there's something extra you have to do to duplicate the actor for the attack animation, and I have no idea what that "something extra" is.)
If that is the only way to do it, then i'll do it that way I suppose, but if anyone knows of another way it'd be much appreciated.
I created a paralyze effect, not sure if its the best way to go about it. Basically your behavior (buff) can remove abilities like attack and move. If the target has other abilities, you'd want to remove those too. Also, when the behavior is applied, create some sort of effect on the unit that shows it is stunned like the zerg stun model or change the tint color.
If someone knows a better way, please let me know.
If you take a look at the way the marauder's conc is set up, you'll see that the slow effect is on the weapon by default. It's got a validator to check whether or not conc grenades have been researched, to make sure the effect doesn't trigger if they're not. You can do a similar thing with your stun effect, and a validator to make sure your stunning attack buff is on the unit.
If you take a look at the way the marauder's conc is set up, you'll see that the slow effect is on the weapon by default. It's got a validator to check whether or not conc grenades have been researched, to make sure the effect doesn't trigger if they're not. You can do a similar thing with your stun effect, and a validator to make sure your stunning attack buff is on the unit.
Thank you! Exactly what I was looking for, it took me a while to figure out how to set up the validator properly, but I got it. Thanks again! I'll quote this and put it in the first post as well for others to see easier.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've been trying to figure this out for about 30mins - 1hr each day for the past 3 days, and I'm simply stumped. Basically, I want an ability that applies an immediate buff to the caster. The buff is supposed to increase weapon damage (which I've already managed to do) and give the caster's weapon a stun effect (I've already created the stun effect as well). The problem is that I can't figure out how to apply the buff to the actual weapon of the caster.
Solution:
well: - did u add the Weapon u wanted ( for the attack damg ) - then just add the MArauder slow behavier ( remouve the req for research )
it should attack with ur weapon and slow them down.
u might have to do something else if its a buff , or make a buff that applys the weapon + slow behaviour
@Selfcreation: Go
I want a full out stun effect, though I get where you're coming from (I've already created the stun effect as i've mentioned) Are you suggesting that I make the buff swap the actual weapon for another? If so, i've had other problems with doing that. (the unit i'm using is an ultralisk, and there's something extra you have to do to duplicate the actor for the attack animation, and I have no idea what that "something extra" is.)
If that is the only way to do it, then i'll do it that way I suppose, but if anyone knows of another way it'd be much appreciated.
@RurutheWiz: Go
I created a paralyze effect, not sure if its the best way to go about it. Basically your behavior (buff) can remove abilities like attack and move. If the target has other abilities, you'd want to remove those too. Also, when the behavior is applied, create some sort of effect on the unit that shows it is stunned like the zerg stun model or change the tint color.
If someone knows a better way, please let me know.
@RurutheWiz: Go
If you take a look at the way the marauder's conc is set up, you'll see that the slow effect is on the weapon by default. It's got a validator to check whether or not conc grenades have been researched, to make sure the effect doesn't trigger if they're not. You can do a similar thing with your stun effect, and a validator to make sure your stunning attack buff is on the unit.
@WildPickles: Go
+1, this is how you'd do it for sure.
Thank you! Exactly what I was looking for, it took me a while to figure out how to set up the validator properly, but I got it. Thanks again! I'll quote this and put it in the first post as well for others to see easier.