• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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