Advertisement
Dessyreqt

Super Metroid Room Names Script

Jan 15th, 2012
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | None | 0 0
  1. roomNames = {
  2.     [0] = "Title Screen",
  3.     [479] = "Pressure Cooker",
  4.     [735] = "Magnet Stairs",
  5.     [145] = "Surface",
  6.     [13017] = "Botwoon's Room",
  7.     [5528] = "Bomb Torizo's Room",
  8.     [2729] = "Crocomire's Room",
  9.     [14298] = "Draygon's Room",
  10.     [14258] = "Gold Torizo's Room",
  11.     [12197] = "Kraid's Room",
  12.     [2781] = "Mother Brain's Room",
  13.     [2765] = "Phantoon's Room",
  14.     [1504] = "Ridley's Room (Ceres)",
  15.     [15027] = "Ridley's Room",
  16.     [2973] = "Spore Spawn's Room",
  17.     [658] = "Parlor",
  18.     [4758] = "Shaft",
  19.     [2461] = "Big Pink",
  20.     [3486] = "Stairs",
  21.     [10916] = "Warehouse",
  22.     [11428] = "Warehouse",
  23.     [935] = "Business Center",
  24.     [2985] = "Hi-Jump Room",
  25.     [679] = "Flying Buttresses",
  26.     [423] = "Cathedral",
  27.     [10415] = "Rising Time",
  28.     [6828] = "Bubble Mountain",
  29.     [7853] = "Double Chamber",
  30.     [8109] = "Wave Beam Room",
  31.     [5291] = "Pantry",
  32.     [1704] = "Ice Beam Room",
  33.     [10147] = "Marsh",
  34.     [9122] = "Hellway",
  35.     [3733] = "Moat",
  36.     [2252] = "Basement",
  37.     [714] = "Attic",
  38.     [201] = "Bowling Alley",
  39.     [3790] = "Gravity Suit Room",
  40.     [4246] = "Gauntlet",
  41.     [1231] = "Main Street",
  42.     [1488] = "Fish Tank",
  43.     [1744] = "Mama Turtle's Room",
  44.     [2256] = "Mt. Doom",
  45.     [3537] = "Beach",
  46.     [8661] = "Aqueduct",
  47.     [10455] = "Coliseum",
  48.     [13273] = "Space Jump Room",
  49.     [12504] = "Coffee Break Room",
  50.     [9942] = "Spring Ball Room",
  51.     [4562] = "Plasma Beam Room",
  52.     [14042] = "Cactus Alley",
  53.     [9647] = "Gravitron",
  54.     [19126] = "Screw Attack Room",
  55.     [16308] = "Pillar Room",
  56.     [16820] = "Royal Shaft",
  57.     [16052] = "Mickey Mouse Room",
  58.     [17076] = "Amphitheatre",
  59.     [15283] = "Boiler Room",
  60.     [19382] = "Boulder Room",
  61.     [18614] = "Junkyard",
  62.     [13222] = "Statues Room",
  63.     [218] = "YMCA",
  64. }
  65.  
  66. RAM = {
  67.     words = {
  68.         roomNumber = 0x7e079c,
  69.     },
  70. }
  71.  
  72. output = {
  73.     x = 0,
  74.     y = 210,
  75. }
  76.  
  77. function OutputRoom()
  78.     gui.text(output.x, output.y, "Room: " .. GetRoomName(memory.readword(RAM.words.roomNumber)))
  79. end
  80.  
  81. function GetRoomName(roomNumber)
  82.     return roomNames[roomNumber] and roomNames[roomNumber] or roomNumber
  83. end
  84.  
  85. while true do
  86.     OutputRoom()
  87.     snes9x.frameadvance()
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement