Battledale_PRC8/_module/nss/jw_im_can_h_ca.nss

24 lines
828 B
Plaintext
Raw Permalink Normal View History

//------------------------------------------------------------------------------
// 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_HEAD,GetPCSpeaker());
iResult = (!GetIsObjectValid(oA) ||
GetPlotFlag(oA) ||
GetLocalInt(GetModule(),"X2_L_DO_NOT_ALLOW_MODIFY_ARMOR") );
return iResult;
}