28 lines
534 B
Plaintext
28 lines
534 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oModule = GetModule();
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
||
|
location lLoc = GetLocation(GetObjectByTag("Mortanour1"));
|
||
|
location lLoc2 = GetLocation(GetObjectByTag("Mortanour2"));
|
||
|
|
||
|
if (GetIsObjectValid(GetObjectByTag("Mortanour")))
|
||
|
{
|
||
|
AssignCommand(oClicker,JumpToLocation(lLoc));
|
||
|
SendMessageToPC (oClicker, "You are prevented from leaving");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|