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

    Room

  • Name

    enterRoom()

  • Examples

    Player:
    {
    isLost: false

    Event: Leave_Room {
    // If the player is lost, enters a random room accessible from the current room


    if (isLost){
    this.roomList = []
    this.rooms = 0

    foreach (Room in currentRoom().getPaths() as room){
    rooms++
    roomList += room
    }

    roomList[floor(rand(room))].enterRoom()
    }
    }
    }
  • Description

    Moves the player to the room. Triggers leave- and enter room events, as opposed to moveTo().

    Enter room events only trigger if the player is not otherwise moved before the player enters the room they are moving towards. Likewise, enterRoom() doing a leave room event will trigger enter room events for the new location instead of the first, while the leave events will not trigger twice because of it.
  • Syntax

    • room.enterRoom()
  • Related

    • moveTo()

    • Nav_Click

    • Room

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

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