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

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