I was looking for some help on a death penalty. I’m not sure how to go about doing this. What
I would like to have happen is upon death the pc will lose 100 exp then it
would scale up by 50 each level.
So for example at level 1 they would lose 100 then at level
2 they would lose 150 then level 3 lose 200
I hope that makes sense any help on this would be greatly appreciated.
Help on a death penalty
Débuté par
Surek
, déc. 24 2012 06:30
#1
Posté 24 décembre 2012 - 06:30
#2
Posté 24 décembre 2012 - 10:48
If you are using the standard OnPlayerRespawn script you would just,
replace:
int nPenalty = 50 * GetHitDice(oDead);
with:
int nPenalty = 50 + (50 * GetHitDice(oDead));
But basically the second line is the formula needed for the XP loss that you want.
replace:
int nPenalty = 50 * GetHitDice(oDead);
with:
int nPenalty = 50 + (50 * GetHitDice(oDead));
But basically the second line is the formula needed for the XP loss that you want.





Retour en haut






