NineVerbCommands

Extends: PopochiuCommands < RefCounted

Description

Constants Descriptions

Commands

enum Commands{WALK_TO = 0, OPEN = 1, PICK_UP = 2, PUSH = 3, CLOSE = 4, LOOK_AT = 5, PULL = 6, GIVE = 7, TALK_TO = 8, USE = 9}

Defines the commands of the GUI.

Method Descriptions

fallback

func fallback() -> void

Called by [Popochiu] when a command doesn't have an associated [Callable]. By default this calls [method walk_to].

walk_to

func walk_to() -> void

Called when [code]E.current_command == Commands.WALK_TO[/code] and [code]E.command_fallback()[/code] is triggered.[br][br] By default makes the character walk to the clicked [code]PopochiuClickable[/code].

open

func open() -> void

Called when [code]E.current_command == Commands.OPEN[/code] and [code]E.command_fallback()[/code] is triggered.

pick_up

func pick_up() -> void

Called when [code]E.current_command == Commands.PICK_UP[/code] and [code]E.command_fallback()[/code] is triggered.

push

func push() -> void

Called when [code]E.current_command == Commands.PUSH[/code] and [code]E.command_fallback()[/code] is triggered.

close

func close() -> void

Called when [code]E.current_command == Commands.CLOSE[/code] and [code]E.command_fallback()[/code] is triggered.

look_at

func look_at() -> void

Called when [code]E.current_command == Commands.LOOK_AT[/code] and [code]E.command_fallback()[/code] is triggered.

pull

func pull() -> void

Called when [code]E.current_command == Commands.PULL[/code] and [code]E.command_fallback()[/code] is triggered.

give

func give() -> void

Called when [code]E.current_command == Commands.GIVE[/code] and [code]E.command_fallback()[/code] is triggered.

use

func use() -> void

Called when [code]E.current_command == Commands.USE[/code] and [code]E.command_fallback()[/code] is triggered.

talk_to

func talk_to() -> void

Called when [code]E.current_command == Commands.TALK_TO[/code] and [code]E.command_fallback()[/code] is triggered.

use_item_on

func use_item_on(_item: PopochiuInventoryItem, _target: Node) -> void

give_item_to

func give_item_to(_item: PopochiuInventoryItem, _target: Node) -> void

get_script_name (static)

func get_script_name() -> String