heres what you need to do... 1. work out a integer system according to int(e.g 10 int 2 % chance) 2.Create a dummy ability for evasion e.g a item ability that will be the ACTUAL evasion. 3.Create a view able(Hero) ability for evasion. 4.Create a Trigger that has the event unit is attacked 5.Add the condition that triggering unit has ability ( level of (ability) is greater than 0) Note: Make sure this is your Hero ability. 6.This is the major flaw... You need a level for each % chance to Dodge... 7.Add these 2 actions to your trigger.... If level of (dummy) is = 0 add ability (dummy) to triggering unit Set level of ability (dummy) to (formula)
So what happens now is that when the unit with this ability is attacked it will set the chance to dodge to what you specified… If this doesn’t work and if you don’t mind send me your map at [email protected] and I’ll do it for you…
if random integer between 0 and 100 less than (percent) then-actions Add 100% Evasion to Triggering Unit ( assuming this fires on-attack ) Wait Remove 100% Evasion
Now, this will often be buggy and overlap, but GUI is ugly