NineVerbCommands

Inherits: PopochiuCommands

Description

Defines the commands and fallback methods for the 9 Verbs GUI.

In this GUI, players can use one of ten commands to interact with objects: Walk to, Open, Pick up, Push, Close, Look at, Pull, Give, Talk to, and Use. This behavior is based on games like The Secret of Monkey Island, Day of the Tentacle, and Thimbleweed Park.


Methods

Return Type Method
void close()
void fallback()
String get_script_name() static
void give()
void look_at()
void open()
void pick_up()
void pull()
void push()
void talk_to()
void use()
void walk_to()

Enumerations


Enumeration Descriptions

enum Commands

enum Commands {
    WALK_TO,
    OPEN,
    PICK_UP,
    PUSH,
    CLOSE,
    LOOK_AT,
    PULL,
    GIVE,
    TALK_TO,
    USE,
}

Method Descriptions

close

func close() -> void

Called when E.current_command == Commands.CLOSE and E.command_fallback() is triggered.


fallback

func fallback() -> void

Called by Popochiu when a command doesn't have an associated Callable. By default this calls walk_to().


get_script_name

static func get_script_name() -> String

Returns the identifier for this GUI command set.


give

func give() -> void

Called when E.current_command == Commands.GIVE and E.command_fallback() is triggered.


look_at

func look_at() -> void

Called when E.current_command == Commands.LOOK_AT and E.command_fallback() is triggered.


open

func open() -> void

Called when E.current_command == Commands.OPEN and E.command_fallback() is triggered.


pick_up

func pick_up() -> void

Called when E.current_command == Commands.PICK_UP and E.command_fallback() is triggered.


pull

func pull() -> void

Called when E.current_command == Commands.PULL and E.command_fallback() is triggered.


push

func push() -> void

Called when E.current_command == Commands.PUSH and E.command_fallback() is triggered.


talk_to

func talk_to() -> void

Called when E.current_command == Commands.TALK_TO and E.command_fallback() is triggered.


use

func use() -> void

Called when E.current_command == Commands.USE and E.command_fallback() is triggered.


walk_to

func walk_to() -> void

Called when E.current_command == Commands.WALK_TO and E.command_fallback() is triggered.

Makes the character walk to the clicked PopochiuClickable.