Shargast_PRC8/_module/Chapter 1/nss/bhhc_any_nohorse.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

24 lines
525 B
Plaintext

// Check if a horse is available to any party member
// Author : Proleric
// Modified : 21-Apr-2008
int StartingConditional()
{
object oPC = GetPCSpeaker();
int bFound = FALSE;
SetLocalInt(oPC, "bhConditional", 1);
ExecuteScript("bhh_assign_all", oPC);
if (GetLocalInt(oPC, "bhMountFound")) bFound = TRUE;
if (GetLocalInt(oPC, "bhSpareFound")) bFound = TRUE;
DeleteLocalInt(oPC, "bhConditional");
DeleteLocalInt(oPC, "bhMountFound");
DeleteLocalInt(oPC, "bhSpareFound");
return bFound;
}