Advertisement
rhn

Elevator Touchscreen v2 startup flying base main tower

rhn
Aug 16th, 2014
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.49 KB | None | 0 0
  1. --Startup script for Enhanced Portals 3 elevator API.
  2. --Guide for the "physical" structure required can be found at: http://forum.feed-the-beast.com/threads/rhns-1-6-monster-build-journal-and-guide-collection.42664/page-17#post-722552
  3.  
  4. --Copy and modify this script only for each elevator needed. So make a copy for the elevator in Building A and a copy for Bunker B etc. so you can individually adapt it to have the right number of floors/buttons and the proper text on on the buttons. The customized scripts will then automatically download and use the elevator API.
  5.  
  6. --Replace the text on each of the floors below with the descriptions of your own choice. This is what will be shown on the touchscreen buttons ingame. Keep the length of the text between the " " 16 characters long by adding/subtracting spaces.
  7. --If you have fewer floors than the maximum 9, just delete the extra lines below: Only have 8 floors, delete: >buttontext[9]="Floor 9         "<
  8.  
  9. --Customize your floor descriptions here:
  10. local buttontext = {}
  11. buttontext[1]=" 4              "
  12. buttontext[2]=" 3              "
  13. buttontext[3]=" 2              "
  14. buttontext[4]=" 1 Bridge       "
  15. buttontext[5]=" 0 Transport hub"
  16. buttontext[6]="S1 ME main hub  "
  17. buttontext[7]="S2 Processing   "
  18. buttontext[8]="S3 Assembly     "
  19. buttontext[9]="S4              "
  20.  
  21.  
  22. --Downloading and using the elevator API:
  23. shell.run("rm", "elevator")
  24.  
  25. shell.run("pastebin", "get", "1M5sgXpT", "elevator")
  26.  
  27. os.loadAPI("elevator")
  28.  
  29. elevator.elevator(buttontext)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement