Constructor


Interactable(x: number?, y: number?, shape: number, [2]? }?, properties: table?)

Arguments:

x: number?
y: number?
shape: number, [2]? }?
properties: table?




Methods


Interactable:applyTileObject(data: any, map: any)

Arguments:

data: any
map: any




Interactable:onAdd(parent: any)

Arguments:

parent: any


Interactable:onInteract(player: any, dir: any)

Arguments:

player: any
dir: any

Returns:

1: boolean


Interactable:onTextEnd()

(Override) Called when the cutscene/text of this interactable finishes




Fields


Interactable.cutscene: string

[Property cutscene] The name of a cutscene to start when interacting with this object


Interactable.interact_count: number

The number of times this interactable has been interacted with on this map load


Interactable.once: boolean

[Property once] Whether this event can only be interacted with once per save file (Defaults to false)


Interactable.script: string

[Property script] The name of a script file to execute when interacting with this object


Interactable.set_flag: string

[Property setflag] The name of a flag to set the value of when interacting with this object


Interactable.set_value: any

[Property setvalue] The value to set the flag specified by set_flag to (Defaults to true)


Interactable.solid: boolean

[Property solid] Whether the interactable is solid


Interactable.text: string[]

[Property text] A line of text to display when interacting with this object
[Property list text] Several lines of text to display when interacting with this object
[Property multi-list text] Several groups of lines of text to display on sequential interactions with this object - all of text1_i forms the first interaction, all of text2_i forms the second interaction etc...



Undocumented