object oSelf = OBJECT_SELF; //Put this script OnUsed void main() { object oPC = GetLastUsedBy(); if (!GetIsPC(oPC)) return; if (GetItemPossessedBy(oPC, "secret1")== OBJECT_INVALID) { AssignCommand(oPC, ClearAllActions()); AssignCommand(oPC, ActionMoveAwayFromObject(oSelf)); } }