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

XP Ranges

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
Have it set to 1500 In gameplay constants

When you want it to be 1000.

Check when a unit dies pick every hero around it in a 1500 range and check if the distance between the unit that died and the hero is less than or equal to 1000 if so do nothing if it is greater than 1000 calculate the xp the hero just recieved and remove it.
 
Level 7
Joined
Mar 6, 2006
Messages
282
Have it set to 1500 In gameplay constants

When you want it to be 1000.

Check when a unit dies pick every hero around it in a 1500 range and check if the distance between the unit that died and the hero is less than or equal to 1000 if so do nothing if it is greater than 1000 calculate the xp the hero just recieved and remove it.

What if the XP they received earned them a level though? Might as well do the opposite and add XP per unit death; would be really simple.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
Have it set to 1500 In gameplay constants

When you want it to be 1000.

Check when a unit dies pick every hero around it in a 1500 range and check if the distance between the unit that died and the hero is less than or equal to 1000 if so do nothing if it is greater than 1000 calculate the xp the hero just recieved and remove it.

the wrong thing on this is, once hero gains xps, you cannot ungain them, unless you set the heroes lvl to lower/higher and then reset it
 
Status
Not open for further replies.
Top