- SetRoomInfo({
- name = "The Twilight Zone",
- load = function() return 0 end, --init currently done in look which is also called
- look = function()
- return [[a weird room without walls that looks like it's situated in nowhere. You're freezing. There are a terminal with an eerie cyan glow and a chest made out of corrupted data here. You could probably even venture out in the void if you wanted to. You spot Fluttershy standing a few meters away.]]
- end,
- tick = function()
- return 0
- end,
- exits = function()
- return { { void, "devnull" } } --a table of tables that contains the exit name and the cell name
- end,
- objects = function()
- return {
- {
- command = "chest",
- use = function()
- SetRoomVar("chest_inv", OpenContainer(GetRoomVar("chest_inv")))
- end,
- look = function()
- return "a chest made out of broken sprites which is hot to the touch."
- end
- }
- {
- command = "terminal",
- use = function()
- print("You approach the terminal and read off the screen.")
- print("")
- print("CHLORIDES TERMINAL")
- print("STUFF CAN GO WRONG HERE")
- print("")
- print("Available commands:")
- print("(s)ave, (setr)oomvar, (getr)oomvar, (setg)lobalvar, (getg)lobalvar, (getpr)otectedvar, (setpo)nyattribute, (getpo)nyattribute, (a)wardcalories")
- io.write("Chloride@DevTerminal /bin#")
- io.flush()
- local cmd = io.read()
- if cmd == "s" or "save" then
- io.write("Savefile: ")
- io.flush()
- SaveGame(io.read("*l"))
- elseif cmd == "setr" or "setroomvar" then
- io.write("Variable: ")
- io.flush()
- local one = io.read("*l")
- io.write("Value: ")
- io.flush()
- local two = io.read("*l")
- SetRoomVar(one, two)
- print([[Room variable ']] .. one .. [[' set to ']] .. two .. [['.]])
- elseif cmd == "getr" or "getroomvar" then
- io.write("Variable: ")
- io.flush()
- local one = io.read("*l")
- print([[Room variable ']] .. one .. [[' is set to ']] .. GetRoomVar(one) .. [['.]])
- elseif cmd == "setg" or "setglobalvar" then
- io.write("Variable: ")
- io.flush()
- local one = io.read("*l")
- io.write("Value: ")
- io.flush()
- local two = io.read("*l")
- SetGlobalVar(one, two)
- print([[Global variable ']] .. one .. [[' set to ']] .. two .. [['.]])
- elseif cmd == "getg" or "getglobalvar" then
- io.write("Variable: ")
- io.flush()
- local one = io.read("*l")
- print([[Global variable ']] .. one .. [[' is set to ']] .. GetGlobalVar(one) .. [['.]])
- elseif cmd == "getpr" or "getprotectedvar" then
- io.write("Variable: ")
- io.flush()
- local one = io.read("*l")
- print([[Protected variable ']] .. one .. [[' is set to ']] .. GetProtectedVar(one) .. [['.]])
- elseif cmd == "setpo" or "setponyattribute" then
- print("Target: fltrshy")
- io.write("Attribute: ")
- io.flush()
- local one = io.read("*l")
- io.write("Value: ")
- io.flush()
- local two = io.read("*l")
- SetPonyAttribute("fltrshy", one, two)
- print([[Pony attribute ']] .. one .. [[' set to ']] .. two .. [['.]])
- elseif cmd == "getpo" or "getponyattribute" then
- print("Target: fltrshy")
- io.write("Attribute: ")
- io.flush()
- local one = io.read("*l")
- print([[Pony attribute ']] .. one .. [[' is set to ']] .. GetPonyAttribute("fltrshy", one) .. [['.]])
- elseif cmd == "a" or "awardcalories" then
- print("Target: fltrshy")
- io.write("Number: ")
- io.flush()
- local one = io.read("*l")
- AwardCalories("fltrshy", one)
- end
- print("You leave the terminal.")
- end,
- look = function()
- return "a old terminal with an eerie cyan glow, kinda like Rainbow Dash's coat. There's text on the screen."
- end
- }
- }
- end,
- ponies = function()
- return { "fltrshy" }
- end
- })