UW2_PRC8/_module/nss/xp_deposit_all.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

23 lines
509 B
Plaintext

#include "xp_inc"
//#include "sf_leto_inc"
void main()
{
object oPC = GetPCSpeaker();
if (GetLootable(oPC) <= 41)
{
string sCDKey = GetPCPlayerName( oPC);
int XP = GetCampaignInt( "XP", sCDKey) + (GetXP( oPC) /fraction);
SetCampaignInt( "XP", sCDKey, XP, oPC);
string sXP = IntToString((GetXP( oPC) /fraction));
SpeakString ("You have deposited ALL your Experience Points! " + sXP + " XP");
SetXP (oPC, 1);
DelayCommand(3.5, ExportSingleCharacter(oPC));
}
{
SpeakString(sNO);
}
}