Hi, I'm pretty new to scripting for NWN. I'm writing a questing system. I set a variable on the NPC that gives the quest when they have actually given the quest. As long as this variable is set, the NPC will think the PC is on a quest.
SetLocalInt(oSelf,ObjectToString(oPC),4);
Value of 4 is ID of receiving NPC.
So I'm wondering what happens to this variable when i reboot the server? It appears to get deleted.
Do local variables get lost when you reboot the server?
If so, how do I save this data so it doesn't get lost if the server reboots?
Should I write it to a campaign variable instead?
Thank you!
Modifié par AmbrosiaPW, 24 avril 2011 - 09:34 .