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

Set Experience

Status
Not open for further replies.
Level 3
Joined
Feb 11, 2013
Messages
28
Does anyone know how to set the exp that a hero gain into 50% when a unit is attacked and killed by own ally? Just like Dota.
 
Level 3
Joined
Feb 11, 2013
Messages
28
What i mean is when a enemy hero kills it own ally unit, my hero gain less experiences. Any idea?
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
Ohhh... You mean the denies? Hmm.. I dunno.. I think you could do something similar to this:

Event
A unit dies
Condition
Killing unit is equal to ally of triggering unit
Action
Pick every unit within #### AoE of triggering unit and do actions:
-add #### experience to pick unit

Of course this trigger would need lots of improvement and alot of leaks need to be removed but you get the idea..

BTW: Not everyone here at hive plays DOTA so instead of saying "like dota" you should give us more info on what you want so that more people would be able to help.. :3
 
Level 25
Joined
May 11, 2007
Messages
4,650
Dota uses a custom trigger to give Xp to the killing unit.
It checks if the player killing the unit is allied to it and in that case does a group unit with every hero in range of ~1000 and add half xp to them.
 
Last edited:
Status
Not open for further replies.
Top