68 lines
2.3 KiB
Plaintext
68 lines
2.3 KiB
Plaintext
|
// Modified from other scripts By Lucky Day Dragon 7/18/02 //
|
||
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPcSelf = GetPCSpeaker();
|
||
|
int TakeElevator = GetLocalInt(oPcSelf, "TakeElev");
|
||
|
switch(TakeElevator)
|
||
|
{
|
||
|
case 1:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 1");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 2:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 2");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 3:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 3");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 4:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 4");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 5:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 5");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 6:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 6");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 7:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 7");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
case 8:
|
||
|
{
|
||
|
object oClicker = GetClickingObject();
|
||
|
object oWaypoint = GetObjectByTag("Elevator Floor 8");
|
||
|
location lLoc = GetLocation(oWaypoint);
|
||
|
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||
|
}
|
||
|
}
|
||
|
}
|