RATDOG/_module/nss/69_henchstr_exit.nss

47 lines
966 B
Plaintext
Raw Normal View History

/* 69_henchstore_exit
Place in any On* event of placeable, trigger, NPC etc. to store henchmen in database
to intialize transfer from module to module
TAG of placeable or trigger is the name of new module
Created By: 69MEH69
Created On: Feb2005
*/
#include "69_hench_lib"
void main()
{
object oPC = GetLastUsedBy();
string sTag = GetTag(OBJECT_SELF);
if (!GetIsObjectValid(oPC))
oPC = GetLastUnlocked();
if (!GetIsObjectValid(oPC))
oPC = GetClickingObject();
if (!GetIsObjectValid(oPC))
oPC = GetEnteringObject();
if (!GetIsObjectValid(oPC))
oPC = GetExitingObject();
if (!GetIsObjectValid(oPC))
oPC = GetLastOpenedBy();
if (!GetIsObjectValid(oPC))
oPC = GetLastDisturbed();
if (!GetIsObjectValid(oPC))
oPC = GetPCSpeaker();
if (!GetIsObjectValid(oPC))
oPC = GetLastOpenedBy();
if (!GetIsObjectValid(oPC))
oPC = GetLastKiller();
StoreCampaignHenchman69(oPC);
DelayCommand(10.0, StartNewModule(sTag));
}