• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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