// Rts - permanent gate void main() { object oPC=GetLastUsedBy(); object oG1=GetObjectByTag("rts_pl_mag32a"); object oG2=GetObjectByTag("rts_pl_mag32b"); object oDest=oG1; if (oG1!=OBJECT_INVALID&&oG2!=OBJECT_INVALID) { // !OI if (GetTag(OBJECT_SELF)=="rts_pl_mag32a") oDest=oG2; AssignCommand(oPC,ClearAllActions()); AssignCommand(oPC,JumpToObject(oDest)); } // !OI else SendMessageToPC(oPC,"This portal does nothing. The other terminus must be damaged or not created yet."); }