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

    Object

  • Examples

    Object: prologue
    {
    name: "Prologue"
    image: "img_intro"
    desc: "Prologue text"
    tooltip:

    Event: Game_Start {
    display(this)
    // The description and image of prologue is shown to the player at game start
    }
    }
  • Description

    Object is used to declare a generic object for the game. Generic objects share the same properties and methods as the other objects do between them, only a generic object is neither and can therefore not be placed in a room or carried by a character or the player.

    Initial properties can be assigned to a generic object doing declaration.

    If name is unassigned doing declaration, the instance of the object will be used as name.
  • Syntax

    • Object: instance
    • Object: instance {statements}
  • Methods

    • disableEvent()

      Disables the event for the object, if declared
    • enableEvent()

      Enables the event for the object, if declared
    • getDesc()

      Returns the description of the object
    • getImage()

      Returns the image of the object
    • getName()

      Returns the name of the object
    • getTooltip()

      Returns the tooltip of the object
    • isEnabled()

      Returns a boolean value of whether the event is enabled on the object
    • setDesc()

      Sets the description of the object
    • setImage()

      Sets the image of the object
    • setName()

      Sets the name of the object
    • setTooltip()

      Sets the tooltip of the object
    • showEvents()

      Shows a list of custom events for the object
    • trigger()

      Triggers an event on the object remotely
  • Properties

    • desc

      Holds the description of the object
    • image

      Holds the image of the object
    • name

      Holds the name of the object
    • tooltip

      Holds the tooltip for the object
  • Related

    • <Image>

    • Character

    • Event

    • Item

    • Player

    • 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