Ok, characters, traits and items now have evasion and resistance stats. They are pure chances of success, so we should be careful about giving big bonuses to them. This is also true for BE testing mod, where you give insanely huge bonuses to ALL stats including these two, making the chances to dodge and resist 100%.
Dodging can be prevented by making critical hit (based on pure luck, 35% with max possible luck), but successful dodging prevents any damage. Resistance cannot be prevented (maybe later, after the release, it will be different), but if successful it only changes initial damage multiplier from 1.0 to 0.65, removing 1/3 of spell damage. All elemental bonuses still work as usual though.
Another part of the system is healthlevel=(1-t.health/t.get_max("health"))*10. It does nothing with full health, but the closer health to 0, the more bonus it gives (up to 10% for attacks and 5% for spells), so targets with low health get small additional chance to avoid damage.
There is no place in the hero gui for these stats, nothing I can do about it. We probably should replace the blue polygon there with battle stats list.