Event: "Pull lever" { if (!getPath("down")){ // If no path leading down, show message and set path leading down
screenMessage("A trapdoor opens in the floor!") hole.setPath("down",hole,false) // Sets a one-way path from hiddenTunnel to hole } else{ screenMessage("Nothing happens.") // Nothing happens because the trapdoor is already open } } }
Room: hole
Description
Returns the room object in the given direction. Returns null if the the given direction does not lead towards anything.