I want an ability I want makes it so whenever it takes damage more than its intellegence, the unit gets exp. I know how to do everything except for getting its intellegence
hm... bad i have no editor at the moment on this pc, so i cant give you exact function. but basically you have to use sth like that:
EVENT: generic unit event
unit - a unit is attacked
CONDITION: integer comparison
unit properties (evtl hero) unit int greater than Var-Damage dealt
ACTION: hero - add experience
well.. as i said i have no WE now, so plz someone may give exact condition to him, cz i dont know exactly if there is a var that count the dmg dealt...