AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Object

    Room

  • Name

    getPath()

  • Examples

    Room: room{

    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.
  • Syntax

    • room.getPath()
  • Related

    • down

    • east

    • in

    • getPaths()

    • north

    • northeast

    • northwest

    • out

    • setPath()

    • south

    • southeast

    • southwest

    • up

    • west

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen