• 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.

Level of unit x25?

Status
Not open for further replies.
Level 6
Joined
Aug 29, 2007
Messages
41
I probably won't get the answer I need before I go home and check myself, but is there a function that lets you pull the value off of a unit's (Not heroes) level?

Like.

You kill a level two gnoll.

The function I want would be to add 25 points times the level of the gnoll, which equals two. Making it a total of 50 points.

SOLVED
 
Last edited:
Level 12
Joined
Jun 28, 2008
Messages
688
Events: Unit - A unit dies
Conditions: Boolean - (Killing Unit) is a Hero Equal to True
Actions: Hero - Add [x] experience to (Killing Unit), Show level-up graphics

For [x], put in [Arithmetic - (Unit - Level of (Triggering Unit)) x (Value - 25)]

(The hypheins in the above equation are not subtraction signs, they're just for seperation)
That's easy stuff.
 
Status
Not open for further replies.
Top