Initial module commit
Initial module commit.
This commit is contained in:
46
_module/nss/69_henchstr_exit.nss
Normal file
46
_module/nss/69_henchstr_exit.nss
Normal file
@@ -0,0 +1,46 @@
|
||||
/* 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));
|
||||
}
|
||||
Reference in New Issue
Block a user