• 🏆 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!

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,651
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