(local {: deflevel : say : itile} (require :game.defs)) (local {: ev} (require :game.entity)) (local level (deflevel "game/map00001.json")) (local vm level.vm) (vm:word :firstdoor (vm:if-and [[:is-jaye?] [:dup ev.touch :=] [:responder-itile (itile :doorclosed) :=]] [ (say :jaye "IT WON'T OPEN!") ]) :door) (vm:word :neutterm (vm:if-and [[:is-jaye?] [:dup ev.touch :=]] [ :neut-hidden? (vm:if [ (say :jaye "MAYBE NEUT CAN HELP.") :get-responder :get :dup :neut-yx :set :draw-neut-yx (say :neut "NEUT V0.71.4RC12 ONLINE" "" "PRESS SPACE TO TAKE CONTROL") ] [ (say :jaye "NEUT IS RUNNING NOW." "I CAN HIT THE SPACE BAR" "TO CONTROL THEM.") ]) ]) :term) (vm:word :firstterm (vm:if-and [[:is-jaye?] [:dup ev.touch :=]] [ :responder-itile (itile :termoff) := (vm:when (say :jaye "LOOKS LIKE THERE'S STILL" "POWER TO THIS TERMINAL.")) (say :jaye "IF I TURN A TERMINAL ON," "NEUT CAN USE IT TO" "TRAVEL THROUGH THE NETWORK.") ]) :term) (vm:word :exitscanner (vm:if-and [[:is-jaye?] [:dup ev.touch :=]] [ (say :jaye "IT'S A CARD SCANNER." "IT SHOULD OPEN THIS DOOR.") (say :jaye "IT'S NOT READING MY CARD" "FOR SOME REASON." "QUAKE MUST'VE DAMAGED IT.") (say :jaye "NEUT MIGHT BE ABLE TO" "HACK IT...") ]) :scan) level