Warcraft III resources & community, 2003–2006 · archived

Get intellegence

3 posts
#1

Get intellegence

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
#2
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... :?

hope this could help ya a bit :wink:
#3
hero attributes are found under integars, not real.