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

Xp System

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2007
Messages
244
Hmm this is easy:

I think its mui now.


  • system
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is A Hero) Equal to True
      • ((Attacked unit) is A Hero) Equal to True
    • Actions
      • Set player = (Owner of (Attacking unit))
      • Hero - Add 1000 experience to (Attacking unit), Hide level-up graphics
      • Player - Add 1000 to player Current gold
 
Level 11
Joined
Oct 13, 2005
Messages
233
Basing it on the damage it much more complex than simply giving out experience and not basing it on damage. The reason for this is that you need a system that will detect when any unit takes damage, and this is fairly complex to do on your own if you don't know what you're doing. Likely your only option in this case is to use someone else's damage detection system (they're all pretty much in either JASS or vJASS) and adapt it to your needs.
 
Status
Not open for further replies.
Top