Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
//::///////////////////////////////////////////////
//:: FileName ds_take10kxp
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 3/3/2004 10:21:48 PM
//:://////////////////////////////////////////////
void main()
{
// Remove some xp from the player
object oPC = GetPCSpeaker();
int nLevel = GetHitDice(oPC); //Get level
int nXP = GetXP(oPC); //Save XP so we can restore it afterwards
int nDelevelXP = (nLevel-1) * (nLevel - 2) * 500; //Work out how much XP will delevel the PC
SetXP(oPC, nDelevelXP);
}