Aller au contenu

Photo

Help on a death penalty


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Surek

Surek
  • Members
  • 94 messages
 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.

#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
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.