• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Awarding experience to a random unit

Status
Not open for further replies.
Level 2
Joined
Jan 13, 2008
Messages
12
im a little new editor, so i have an problem with my map,

  • Hero - Add 800 xp to (Random unit from(units owned by player 1(red))), Show level-up graphics
i want to make this to give XP only to heroes,
with this system, i cant use any other units for a player, because it have chance 50% to lose the XP from the quest.

if someone have any idea, pls post here

ty :infl_thumbs_up:
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
I'm not really sure about what you mean, but if you want the system to give 800 experience to a random Hero that belongs to Player 1, then you could use this, I guess...

  • Hero - Add 800 experience to (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))), Show level-up graphics
 
Status
Not open for further replies.
Top