Initial upload
Initial upload
This commit is contained in:
21
_module/nss/xx_cb_rest.nss
Normal file
21
_module/nss/xx_cb_rest.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
void main()
|
||||
{
|
||||
// WriteTimestampedLogEntry("Entering Module onPlayerRest: xx_cb_rest");
|
||||
|
||||
|
||||
object oPC = GetLastPCRested();
|
||||
|
||||
|
||||
ExportAllCharacters();
|
||||
|
||||
// Save persistent location
|
||||
SetLocalInt(oPC,"BypassLocation",1);
|
||||
SetCampaignLocation("PlayerData","Location",GetLocation(oPC),oPC);
|
||||
|
||||
// Remove death variables
|
||||
DeleteLocalInt(oPC,"Dead");
|
||||
DeleteCampaignVariable("PlayerData","Dead",oPC);
|
||||
SendMessageToPC(oPC,"Saving Your Inventory and Location...");
|
||||
// WriteTimestampedLogEntry("Exiting Module onPlayerRest: xx_cb_rest");
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user