XP Ranges

Status
Not open for further replies.
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.
 
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.
 
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.
Back
Top