- Joined
- Dec 9, 2009
- Messages
- 397
I'd like to set up: (Dont' know Jass btw)
Normal attacks have a chance to crit for defined by a variable (So equipment can change it) also set the crit bonus % by a variable.
also, chance to dodge by variable
I assume I need a Damage Detection system?
Is there a way to make a trigger for regular attacks?
example:
unit hits unit
if random number 1/10 <= Dodge Chance
then
Deal no damage
else
if random number 1/10 <= CritChance
have unit deal (normal damage + CritBonus)
else
do normal damage
once setup, It's an RPG, so not a ton of fighting is going on at once, shouldn't lag map should it?
Normal attacks have a chance to crit for defined by a variable (So equipment can change it) also set the crit bonus % by a variable.
also, chance to dodge by variable
I assume I need a Damage Detection system?
Is there a way to make a trigger for regular attacks?
example:
unit hits unit
if random number 1/10 <= Dodge Chance
then
Deal no damage
else
if random number 1/10 <= CritChance
have unit deal (normal damage + CritBonus)
else
do normal damage
once setup, It's an RPG, so not a ton of fighting is going on at once, shouldn't lag map should it?