Savepoint

┗> Interactable > Event > Object > Class


Savepoints allow the player to SAVE their game.
Savepoint is an Event - naming an object savepoint on an objects layer in a map creates this object.
See this object's Fields for the configurable properties on this object. The location displayed on the savefile is determined by the map's name property.


Constructor


Savepoint(x: number, y: number, properties: number, y?])

Arguments:

x: number
y: number
properties: number, y?]




Methods




Savepoint:onInteract(player: Player, dir: string)

Arguments:

player: Player

The character controlled by the player when in the Overworld.

dir: string

Returns:

1: boolean|nil







Fields


Savepoint.heals: boolean

[Property heals] Whether this Savepoint heals the party when interacted with (Defaults to true)


Savepoint.marker: string

[Property marker] The name of the marker that the party should spawn at when a save from here is loaded


Savepoint.simple_menu: boolean

[Property simple] Whether this Savepoint uses the Simple (one slot, no storage/recruits) save menu



Savepoint.text_once: boolean

[Prpoerty text_once] Whether this Savepoint doesn't display its text on repeat interactions (Defaults to false)