Added Corrected Char Sheet XP script by -=HA=-
Added Corrected Char Sheet XP script by -=HA=-. Updated a few NPC onDeath scripts to use point at the correct XP scripts. Full compile. Updated release archive.
This commit is contained in:
@@ -15,6 +15,20 @@ character.
|
||||
|
||||
*/
|
||||
////////////////////////////////////
|
||||
#include "nwnx_player"
|
||||
|
||||
void SetTlkOverrideForMaximumLevel(object oPC)
|
||||
{
|
||||
int nLevel = GetHitDice(oPC);
|
||||
if (nLevel < 40)
|
||||
{
|
||||
NWNX_Player_SetTlkOverride(oPC, 315, "");
|
||||
}
|
||||
else
|
||||
{
|
||||
NWNX_Player_SetTlkOverride(oPC, 315, "Next Level: " + IntToString((nLevel + 1) * nLevel * 500) + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -51,6 +65,8 @@ int tXP = cXP + rXP; //rXP + pXP;
|
||||
|
||||
//Take all the player's XP
|
||||
SetXP(oPC, 0);
|
||||
|
||||
SetTlkOverrideForMaximumLevel(oPC);
|
||||
|
||||
//Let's make sure the character is saved!!!!
|
||||
DelayCommand(1.0, ExportSingleCharacter(oPC));
|
||||
@@ -74,7 +90,7 @@ else
|
||||
//In case of errors..
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("Please notify a DM's there is an error" +
|
||||
FloatingTextStringOnCreature("Please notify a DM that there is an error" +
|
||||
" with the XP Bank.", oPC);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user