Constructor


Script(x: any, y: any, shape: any, properties: any)

Arguments:

x: any
y: any
shape: any
properties: any




Methods






Script:onAdd(parent: any)

Arguments:

parent: any


Script:onEnter(chara: any)

Arguments:

chara: any

Returns:

1: boolean



Fields


Script.cutscene: string

[Property cutscene] The name of a cutscene to start when this script is triggered


Script.once: boolean

[Property once] Whether this script can only be triggered once per save file (Defaults to true)


Script.script: string

[Property script] The name of a script file to run when this script is triggered


Script.set_flag: string

[Property setflag] The name of a flag to set the value of when this script is triggered


Script.set_value: any

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



Script.temp: boolean

[Property temp] Whether the script is temporarily persistent - appears even if once is true and it has been triggered (Defaults to false)



Undocumented