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

    Character

  • Examples

    Item: someItem
    Item: someOtherItem

    Character: someChar
    {
    name: "Anders"
    image: "img_char"
    desc: "someText"
    tooltip: "This is Anders"
    gender: "male"

    items: [
    someItem,
    someOtherItem
    ]

    Event: "Examine" {
    display(this)
    }
    }
  • Description

    Character is used to declare a character object for the game.

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

    If name is unassigned doing declaration, the instance of the character will be used as name.

    This object can carry items.
  • Syntax

    • Character: instance
    • Character: instance {statements}
  • Methods

    • currentRoom()

      Returns the room the character is currently in
    • disableEvent()

      Disables the event for the character, if declared
    • dropItem()

      Moves an item from the character to the room the character is in
    • dropItems()

      Moves all items on the character to the room the character is in
    • enableEvent()

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

      Returns the description of the character
    • getGender()

      Returns the gender of the character
    • getImage()

      Returns the image of the character
    • getItems()

      Returns a list of all items on the character
    • getName()

      Returns the name of the character
    • getTooltip()

      Returns the tooltip of the character
    • giveItem()

      Moves an item to the character
    • hasItem()

      Returns a boolean value of whether the character has an item
    • isEnabled()

      Returns a boolean value of whether the event is enabled on the character
    • moveTo()

      Moves the character to a room
    • remove()

      Removes the character from the game
    • setDesc()

      Sets the description of the character
    • setGender()

      Sets the gender of the character
    • setImage()

      Sets the image of the character
    • setItems()

      Replaces the current item list on the character with a new list of items
    • setName()

      Sets the name of the character
    • setTooltip()

      Sets the tooltip of the character
    • showEvents()

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

      Triggers an event on the character remotely
  • Properties

    • desc

      Holds the description of the character
    • image

      Holds the image of the character
    • items

      Holds a list of items carried by the character
    • gender

      Holds the gender of the character
    • name

      Holds the name of the character
    • tooltip

      Holds the tooltip for the character
  • Related

    • <Image>

    • Event

    • Item

    • Object

    • 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