generated from Jaysyn/ModuleTemplate
30 lines
833 B
Plaintext
30 lines
833 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Check if Speaker has a stake
|
|
//:: pl_stake_chk
|
|
//:: Copyright (c) 2003 Joseph L. Berkley, Jr.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
return TRUE if Speaker has a stake
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Joseph L. Berkley, Jr.
|
|
//:: Created On: 6 March 2003
|
|
//:://////////////////////////////////////////////
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oItem = GetFirstItemInInventory( oPC );
|
|
string sTag;
|
|
int bFound = FALSE;
|
|
|
|
while( GetIsObjectValid( oItem ) && !bFound )
|
|
{
|
|
sTag = GetTag( oItem );
|
|
if( FindSubString( sTag, "STAKE" ) >= 0 )
|
|
bFound = TRUE;
|
|
oItem = GetNextItemInInventory( oPC );
|
|
} // while valid item
|
|
|
|
return bFound;
|
|
}
|