You can create an extra damage effect with a chance of 20 and then create a set effect and include your original damage plus the one you just made in that set. Then in weapons switch the ghost's weapon damage effect to the set effect.
Alright, but is there a way around this aswell? I'd like to be able to switch sniper weapons aswell in my game. Also between heros, without the ability.
Create a buff behavior with Damage Response - Location set to Attacker, Chance to 0.2 (20 is 2000%), and Modify Fraction to 2 (which is 200%, or more if you want it to always kill with the shot). Then just give the behavior to any unit you want to have it.
Create a buff behavior with Damage Response - Location set to Attacker, Chance to 0.2 (20 is 2000%), and Modify Fraction to 2 (which is 200%, or more if you want it to always kill with the shot). Then just give the behavior to any unit you want to have it.
Did you test this yourself? The Location - Attacker does not seem to have any effect for me.
Yeah, I tried that before I posted. This only applied when buffed unit got attacked.
I was thinking of having some sort of aura on, which applies what you mention the other way, but then I need some sort of way of excluding all attacks from other units which doesn't have critical hit ability. Which I dont know..
I have a similar buff which causes an effect whenever my unit attacks. If the damage response modify field doesn't work for the attacker, then create an effect that applies additional damage and add it to the Damage Response - Handled field.
Hi,
I was just wondering how I would go about making a critical hit ability?
I'm looking for a behavior on my hero sniper, which 20% of the time deals a lethal shot to the enemy.
Thanks
@EasyOOP: Go
You can create an extra damage effect with a chance of 20 and then create a set effect and include your original damage plus the one you just made in that set. Then in weapons switch the ghost's weapon damage effect to the set effect.
@voodude2008: Go
Alright, but is there a way around this aswell? I'd like to be able to switch sniper weapons aswell in my game. Also between heros, without the ability.
Create a buff behavior with Damage Response - Location set to Attacker, Chance to 0.2 (20 is 2000%), and Modify Fraction to 2 (which is 200%, or more if you want it to always kill with the shot). Then just give the behavior to any unit you want to have it.
Did you test this yourself? The Location - Attacker does not seem to have any effect for me.
@A1win: Go
Yeah, I tried that before I posted. This only applied when buffed unit got attacked.
I was thinking of having some sort of aura on, which applies what you mention the other way, but then I need some sort of way of excluding all attacks from other units which doesn't have critical hit ability. Which I dont know..
I have a similar buff which causes an effect whenever my unit attacks. If the damage response modify field doesn't work for the attacker, then create an effect that applies additional damage and add it to the Damage Response - Handled field.
@A1win: Go
Works perfectly. Thanks alot.