29 lines
803 B
Plaintext
29 lines
803 B
Plaintext
|
void main()
|
||
|
{
|
||
|
string sTag;
|
||
|
string sCheckTag;
|
||
|
string sTeleportTag;
|
||
|
int iTeleport1;
|
||
|
int iTeleport2;
|
||
|
object oPC;
|
||
|
object oArea;
|
||
|
location lTeleport;
|
||
|
|
||
|
oPC = GetEnteringObject();
|
||
|
if (GetIsPC(oPC))
|
||
|
{
|
||
|
oArea=GetArea(oPC);
|
||
|
iTeleport1 = GetLocalInt(oArea,"IDTeleport1");
|
||
|
iTeleport2 = GetLocalInt(oArea,"IDTeleport2");
|
||
|
sTag = GetTag(OBJECT_SELF);
|
||
|
sCheckTag = "ID_Trig" + IntToString(iTeleport1);
|
||
|
if (sTag == sCheckTag)
|
||
|
{
|
||
|
SendMessageToPC(oPC,"Your vision blurs and you feel a strange rushing sensation. When your vision finally clears you find yourself somewhere else...");
|
||
|
sTeleportTag = "ID_Special" + IntToString(iTeleport2);
|
||
|
lTeleport = GetLocation(GetObjectByTag(sTeleportTag));
|
||
|
AssignCommand(oPC,JumpToLocation(lTeleport));
|
||
|
}
|
||
|
}
|
||
|
}
|