Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
34
_module/nss/en4_hench_hash.nss
Normal file
34
_module/nss/en4_hench_hash.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
int HasHenchman(object oPC);
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
int iResult;
|
||||
|
||||
iResult = HasHenchman(GetPCSpeaker());
|
||||
|
||||
return iResult;
|
||||
}
|
||||
|
||||
int HasHenchman(object oPC)
|
||||
{
|
||||
int iResult;
|
||||
int iIndex;
|
||||
object oHench;
|
||||
|
||||
iResult = FALSE;
|
||||
|
||||
iIndex = 1;
|
||||
while (iIndex < 7)
|
||||
{
|
||||
oHench = GetHenchman(oPC,iIndex);
|
||||
if (GetIsObjectValid(oHench))
|
||||
{
|
||||
if (GetTag(oHench) == GetLocalString(oPC,"Henchman"))
|
||||
iResult = TRUE;
|
||||
}
|
||||
iIndex++;
|
||||
}
|
||||
|
||||
return iResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user