• 🏆 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!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

Giving xp on repair

Status
Not open for further replies.
Level 7
Joined
Jul 29, 2009
Messages
276
i want to have a worker hero that have the abilety to rapier (and build) things human style. i want to give him exp for that, ultimatly for every point of hp he rapeirs (cuz that's how do human's construction works).
can it be done?
 
Level 14
Joined
Jul 16, 2009
Messages
1,568
Er, you want Levels to the Repair skill, or that the repairer gets xp from Repair?

The second one:
Events:Unit finishes casting a spell
Conditions: Spell Equal to Repair
Actions: Hero: Add (your amount of xp) XP to (the repairer)
 
Level 7
Joined
Jul 29, 2009
Messages
276
this will give him XP only when he is finish repairing or for every time the building's hp is going up?
 
Level 4
Joined
Jul 9, 2008
Messages
88
maybe you could replace the repair ability with something that is detectable, like heal, then only make it target mechanical units.
 
Status
Not open for further replies.
Top