HoS_PRC8/_mod/_module/nss/rts_pl_mag32u.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

19 lines
545 B
Plaintext

// 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.");
}