void main() { object oPC = GetExitingObject(); object oKey = GetItemPossessedBy(oPC, "nk_fp_keysilver"); if (GetIsObjectValid(oKey)) { object oBrain = GetNearestObjectByTag("nk_fp_brain", OBJECT_SELF, 1); SetLocalInt(oBrain, "SILVER", 0); } }