void main() { object oPC=GetEnteringObject(); string sMsg=GetName(OBJECT_SELF); if (GetIsPC(oPC)) AssignCommand(oPC,SpeakString(sMsg)); }