// rts_it_op4 void main() { object oPC=GetItemActivator(); object oWP=GetNearestObjectByTag("FLYING_CARPET",oPC,1); if (GetIsObjectValid(oWP)) { // can fly here AssignCommand(oPC,ClearAllActions(TRUE)); AssignCommand(oPC,ActionStartConversation(oPC,"rts_it_op4",TRUE,FALSE)); } // can fly here else { SendMessageToPC(oPC,"You cannot fly on the carpet here."); } }