Files
HiddenTradition_PRC/_module/nss/0c_if_not_master.nss
Jaysyn904 9c4c3ae83b 2025/12/16 Update
Updated PEPS
Hooked up new GUI module event.
Updated classes.2da
Updated baseitems.2da
Updated nim tools.
Full compile.
2025-12-16 21:30:44 -05:00

16 lines
683 B
Plaintext

/*//////////////////////////////////////////////////////////////////////////////
Script: 0c_if_not_master
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Text Appears When script that checks if the speaker is the master of this
henchman.
*///////////////////////////////////////////////////////////////////////////////
#include "0i_constants"
int StartingConditional()
{
string sInput = GetScriptParam("sInput");
if(sInput == "Can_Hire_Henchman" && AI_ALLOW_TAKING_HENCHMAN) return !GetIsObjectValid(GetMaster());
else if(sInput == "Cannot_Hire_Henchman") return !GetIsObjectValid(GetMaster());
return FALSE;
}