DMH-Online

Dungeon Masters Helper · Est. 2005

Dm Only Scripts

NWN Script: save_pc.htm

Author: lucindrea
Author Website: n/a
Script Name: PC Saving Tool
Description: This is a skull that a DM's get when logging in to the server.  Using the skull will force a save of all characters online to the server vault.
Instructions on Use:
  1. Create an object , under properties hit cast spell then unique-self only. 
  2. Double click that and give it unlimited uses.

Notes: This is relatively untested and I think it creates backup characters in the server vault (but player only sees most recent save).  I also used both the tag and resref as skulcharsave on the item.

Script 1 (Module OnActivateItem):

object oActivated = GetItemActivated();
 if(GetTag(oActivated)=="skulcharsave")
 {
 ExportAllCharacters();
 }

Script 2 (Module OnClientEnter):

object oPC = GetEnteringObject();
if(GetIsDM(oPC))CreateItemOnObject("skulcharsave", oPC);
⌂ All Scripts ← PreviousNext → 👁 Category List

All Dm Only Scripts

📄 dm_helper 📄 get_pc_info 📄 get_pcs 📄 level_handler 📄 save_pc 📄 unlock_door