• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Get intellegence

Status
Not open for further replies.
Level 2
Joined
Sep 7, 2005
Messages
15
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
 
Level 6
Joined
Sep 17, 2005
Messages
276
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:

Code:
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:
 
Status
Not open for further replies.
Top