WizardryEE/Module/nss/elevator.nss
Jaysyn904 e38693f4f2 Initial commit
Initial commit.  Added some art for loadscreens, fancymapped Bioware tileset overrides & the original Wizardry module as a starting point.
2023-03-15 20:17:54 -04:00

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));
}
}
}