This is totally unrelated but here it goes
do you know of a script that will reset variables on a player charachter even after a server crashes heres what i got in my OnClientEnter Event script under module properties im trying to make quest updates stay on the PC even after a reset so far it works if a players logs out and comes back in but not when i reset the server when i reset all quest progress is lost PLEASE HELP WITH SUGAR ON TOP lol
// Place in OnClientEnter
// Will store each ability score as:
// ABILITY_0 = STRENGTH
// ABILITY_1 = DEXTERITY
// ABILITY_2 = CONSTITUTION
// ABILITY_3 = INTELLIGENCE
// ABILITY_4 = WISDOM
// ABILITY_5 = CHARISMA
void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC)) return;
int i,iAb;
for(i=0; i<6; i++)
{
iAb = GetAbilityScore(oPC,i);
SetCampaignInt("STATS","ABILITY_"+IntToString(i),iAb,oPC);
}
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC))return;
int i,iQuest;
for(i=1; i<6; i++)
{
iQuest = GetCampaignInt("QUEST_STATUS","QUEST_1"+IntToString(i),oPC);
SetLocalInt(oPC,"QUEST_1"+IntToString(i),iQuest);
}
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int nInt;
nInt = GetGold(oPC);
SetLocalInt(oPC, "PlayerGold", nInt);
nInt = GetHitDice(oPC);
SetLocalInt(oPC, "PlayerLevel", nInt);
}
}
}