-
Notifications
You must be signed in to change notification settings - Fork 33
Elevators
luciensadi edited this page May 21, 2019
·
9 revisions
Elevators are processed at startup from the flat file located at lib/etc/elevator
. This file is formatted as follows:
First number: The total number of elevator blocks in the file.
Elevator Line:
- First number is the elevator car room vnum.
- Second number is (probably) the number of columns on the elevator button panel.
- Third number is the number of floors.
- Fourth number is the lowest elevator floor available; -# for basement. All floors are counted up incrementally from here.)
Floor Line: Each two-number line below the elevator code designates a floor. Make sure the number of lines matches the number of floors in the elevator heading.
- First number is the room vnum of the room you'd like your elevator attached to.
- Second number is the numerical direction code that the door opens in (starts at 0 and goes clockwise).
Example elevator file:
3
60531 1 2 4
60530 4
60532 4
17122 2 7 0
17127 0
17137 4
17135 4
17133 4
17131 4
17128 4
17121 4
70317 1 1 0
70302 4
In the above file, we can see that we have three elevators. The first elevator's car is rnum 60531, which has 1 row of buttons on its panel and goes to a total of 2 floors. It starts on floor 4, so the floors available are 4 and 5. (You may recognize this as the chargen elevator). Its two floors let out to to the south (direction 4) to rnums 60530 and 60532 respectively.