Ancordia_PRC8/_module/nss/hench_canjoin.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

19 lines
508 B
Plaintext

// 69_hench_canwork
// Text appears if NPC can work for PC
// Created: 69MEH69 July 2004
#include "x4_inc_functions"
#include "69_hench_lib"
int StartingConditional()
{
int iResult;
object oPC = GetPCSpeaker();
iResult = GetCanWork69(oPC, OBJECT_SELF);
int nHenchNumber = GetCampaignInt(CharacterDB(oPC), "HENCH_NUMBER");
if(iResult == FALSE) return FALSE;
if(nHenchNumber > 2) return FALSE;
if(GetHenchmanTotal69(oPC) > 0 && nHenchNumber > 1) return FALSE;
return TRUE;
}