Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
34 lines
975 B
Plaintext
34 lines
975 B
Plaintext
//------------------------------------------------------------------------------
|
|
// Starting Condition
|
|
//------------------------------------------------------------------------------
|
|
/*
|
|
Return TRUE if
|
|
No helmet is equipped OR
|
|
The current helmet is marked as plot OR
|
|
Craft Armor has been deactivated by a global variable
|
|
*/
|
|
//------------------------------------------------------------------------------
|
|
//------------------------------------------------------------------------------
|
|
#include "prc_x2_itemprop"
|
|
|
|
int StartingConditional()
|
|
{
|
|
int iResult;
|
|
object oA = GetItemInSlot(INVENTORY_SLOT_LEFTHAND,GetPCSpeaker());
|
|
if (!GetIsObjectValid(oA))
|
|
{
|
|
return TRUE;
|
|
}
|
|
int nBase=GetBaseItemType(oA);
|
|
if ((nBase!=BASE_ITEM_SMALLSHIELD) && (nBase!=BASE_ITEM_LARGESHIELD) && (nBase!=BASE_ITEM_TOWERSHIELD))
|
|
{
|
|
return TRUE;
|
|
}
|
|
if (GetPlotFlag(oA))
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|