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

    Event

  • Examples

    Room: room
    {
    image: "img_room"

    Event: Enter_Room {
    display(getImage());
    // Whenver the player enters the Room object room, the image of that room is displayed
    }

    Event: "Examine" {
    display(getDesc())
    // When the player clicks on the room background image, it will show an option to "Examine" the room
    // If the player clicks this option, the description of the room will be displayed
    }
    }

    Player:
    {

    Event: Enter_Room {
    display(currentRoom().getImage());
    // Whenver the player enters a room. The image of that room is displayed
    }
    }
  • Description

    Event objects are declared within other objects and are executed when the player interacts with the object in various ways.

    An event such as Enter_Room is triggered when the player performs a specific actions. Enter_Room is triggered when the player enters a room where the object is present.

    Event objects require an instance assigned. This instance can be a string, in which case it is an option the player can perform. These options are shown to the player when the object is clicked on the interface by default.

    The instance of an event can also be a list. In this case the first entry should be either an event or a string, followed by two boolean values. The first boolean determines whether the event object is enabled from game start, and the second boolean determines if the event object should override existing event objects with the same instance, in the same object.

    Event objects are enabled at game start and do not override existing events by default.

    Some events can only be used within specific objects.
  • Syntax

    • Event: String {statements}
    • Event: [String] {statements}
    • Event: [String, enabled] {statements}
    • Event: [String, enabled, override] {statements}
    • Event: Event {statements}
    • Event: [Event] {statements}
    • Event: [Event, enabled] {statements}
    • Event: [Event, enabled, override] {statements}
  • Related

    • Character

    • disableEvent()

    • enableEvent()

    • Enter_Room

    • Enter_Room_First

    • isEnabled()

    • Item

    • Game_Start

    • Leave_Room

    • Leave_Room_First

    • Mouse_Click

    • Mouse_Out

    • Mouse_Over

    • Nav_Click

    • Nav_Out

    • Nav_Over

    • Object

    • Player

    • Room

    • trigger()

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

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