Initial Commit
Initial Commit
This commit is contained in:
31
_module/nss/hench_quit.nss
Normal file
31
_module/nss/hench_quit.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
//:://////////////////////////////////////////////////
|
||||
//:: 69_hench_quit
|
||||
//:: Copyright (c) 2002 Floodgate Entertainment
|
||||
//:://////////////////////////////////////////////////
|
||||
/*
|
||||
Actions taken when a henchman quits/refuses his/her current/former
|
||||
master.
|
||||
*/
|
||||
//:://////////////////////////////////////////////////
|
||||
//:: Created By: 69MEH69
|
||||
//:: Created On: Apr2005
|
||||
//:://////////////////////////////////////////////////
|
||||
|
||||
#include "69_hench_lib"
|
||||
#include "x4_inc_functions"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nHenchPosition = GetLocalInt(OBJECT_SELF, "HenchPosition");
|
||||
string sHenchPosition = IntToString(nHenchPosition);
|
||||
|
||||
int nHenchNumber = GetCampaignInt(CharacterDB(oPC), "HENCH_NUMBER");
|
||||
if (nHenchNumber > 0) SetCampaignInt(CharacterDB(oPC), "HENCH_NUMBER", nHenchNumber-1);
|
||||
|
||||
DeleteCampaignVariable(CharacterDB(oPC), "HENCH_"+sHenchPosition);
|
||||
DeleteCampaignVariable(CharacterDB(oPC), "HENCH_"+sHenchPosition+"_NAME");
|
||||
|
||||
SetIsDestroyable(TRUE, TRUE, TRUE);
|
||||
QuitHenchman69(oPC);
|
||||
}
|
Reference in New Issue
Block a user