Base class used to represent a character

Implements the Talk action by default

Hierarchy (View Summary)

Implements

Constructors

Accessors

Methods

Constructors

  • Create a new instance of this character

    Parameters

    • alias: string

      Alias of this character

    Returns Character

Accessors

  • get alias(): string
  • Get the alias of this game object

    Returns string

Methods

  • Get the name of this game object

    Returns SyncOrAsync<string>

  • Execute the Talk action

    Parameters

    • OptionalchoiceId: number

      ID of the specific choice take into consideration

    Returns undefined | ActionResult

    Result of the Talk action or undefined if unhandled