void main() { object oNPC; oNPC = GetEnteringObject(); if (GetTag(oNPC) == "p2_villager1" || GetTag(oNPC) == "p2_villager2" || GetTag(oNPC) == "p2_villager3") { AssignCommand(oNPC,ClearAllActions()); AssignCommand(oNPC,SpeakString("I'm safe! Thank you!")); RemoveHenchman(GetMaster(oNPC),oNPC); SetLocalInt(oNPC,"Free",1); } }