void main() { object oPC=GetClickingObject(); object oZhent=GetNearestObjectByTag("tri_zhentguard"); AssignCommand(oZhent,SetFacingPoint(GetPosition(oPC))); if (GetObjectSeen(oPC,oZhent)) { AssignCommand(oZhent,SpeakString("You leave that alone")); } else { AssignCommand(oZhent,SpeakString("What that?")); } }