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

42 lines
749 B
Plaintext

// Check if any member of the party has a dismounted horse
// Author : Proleric
// Modified : 17-May-2008
#include "x3_inc_horse"
int bhHasHorse(object oPC);
int StartingConditional()
{
object oPC = GetPCSpeaker();
int i = GetMaxHenchmen();
object oHench = GetHenchman(oPC, i);
object oHorse;
if (bhHasHorse(oPC)) return TRUE;
while (i)
{
if (GetIsObjectValid(oHench))
{
if (!HorseGetIsAMount(oHench))
if (bhHasHorse(oHench)) return TRUE;
}
oHench = GetHenchman(oPC, --i);
}
return FALSE;
}
// Check if caller has a horse
int bhHasHorse(object oPC)
{
// if (HorseGetIsMounted(oPC)) return FALSE;
return(GetIsObjectValid(HorseGetHorse(oPC)));
}