22 lines
642 B
Plaintext
22 lines
642 B
Plaintext
#include "x3_inc_horse"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oHench;
|
|
oHench=GetAssociate(ASSOCIATE_TYPE_HENCHMAN,oPC,1);
|
|
if (GetIsObjectValid(oHench))
|
|
{ // henchman exists
|
|
if (HorseGetIsAMount(oHench))
|
|
{ // is a horse - doesn't count check 2nd hench
|
|
oHench=GetAssociate(ASSOCIATE_TYPE_HENCHMAN,oPC,2);
|
|
if (GetIsObjectValid(oHench)) return TRUE;
|
|
} // is a horse - doesn't count check 2nd hench
|
|
else
|
|
{ // has a henchman already
|
|
return TRUE;
|
|
} // has a henchman already
|
|
} // henchman exists
|
|
return FALSE;
|
|
}
|