int StartingConditional() { int oFlag = 0; object oItem = GetFirstItemInInventory(OBJECT_SELF); while(GetIsObjectValid(oItem)) { if (GetLocalInt(oItem, "holyA_done")==1) {oFlag=1;} oItem = GetNextItemInInventory(OBJECT_SELF); } // Inspect local variables if(!(oFlag == 1)) return FALSE; return TRUE; }