void main() { object oTarget; // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); // Unlock and open "skswrdrany". oTarget = GetObjectByTag("skswrdrany"); SetLocked(oTarget, FALSE); AssignCommand(oTarget, ActionOpenDoor(oTarget)); }