Hi all
I wanted to implement an experience penalty for dying in the game.
I have made an array where X is the hero's level and Y is the amount of xp necessary to reach that level. My idea was to create 2 triggers like this (Sorry I don't have the triggers at hand right now):
*****************************************************************************************************************************
Trigger 1:
Set XpTable[1] to 0
Set XpTable[2] to 200
Set XpTable[3] to 500
Etc.
Trigger 2:
Event: A unit is revived
Condition: reviving unit is a hero
Actions:
Set experience for reviving hero to value of Y for X = level of reviving unit
*****************************************************************************************************************************
The idea is that if you resurrect your hero, their Xp is reset to the minimal amount for that level, so they cannot lose a level, but they are more or less penalized, but it doesn't work. I don't know if there's a mistake in my code or if the game doesn't allow for heroes' Xp to go down instead of up?
I wanted to implement an experience penalty for dying in the game.
I have made an array where X is the hero's level and Y is the amount of xp necessary to reach that level. My idea was to create 2 triggers like this (Sorry I don't have the triggers at hand right now):
*****************************************************************************************************************************
Trigger 1:
Set XpTable[1] to 0
Set XpTable[2] to 200
Set XpTable[3] to 500
Etc.
Trigger 2:
Event: A unit is revived
Condition: reviving unit is a hero
Actions:
Set experience for reviving hero to value of Y for X = level of reviving unit
*****************************************************************************************************************************
The idea is that if you resurrect your hero, their Xp is reset to the minimal amount for that level, so they cannot lose a level, but they are more or less penalized, but it doesn't work. I don't know if there's a mistake in my code or if the game doesn't allow for heroes' Xp to go down instead of up?
Last edited: