Constructor






Methods




Shopkeeper:onEmote(emote: string)

(Override) Called whenever the [emote:...] text tag is used in Shop dialogue. Sets the sprite of this shopkeeper.

@param emote — The path to the image to set, or id of the animation to set.

Arguments:

emote: string

The path to the image to set, or id of the animation to set.



Shopkeeper:setActor(actor: string|Actor)

Arguments:

actor: string|Actor

Actors are a type of data class that represent the visuals of a character - anything that is some type of character, be it the player, an NPC, or an enemy in battle, it will require an actor.
As a data class, actors are stored in scripts/data/actors/, and extend this class. Their filepath starting from here becomes their id, unless an id is specified as an argument to Class().

Returns:

1: Sprite


Shopkeeper:setAnimation(animation: (string|function|table)?)

Arguments:

animation: (string|function|table)?





Fields


Shopkeeper.actor: Actor

The current Actor this shopkeeper is using.


Shopkeeper.slide: boolean

Whether the shopkeeper slides out of the way in the buy menu. (Defaults to false)


Shopkeeper.sprite: Sprite

The current Sprite instance belonging to this shopkeeper.


Shopkeeper.talk_sprite: boolean

Whether the shopkeeper's sprite should have a talk animation when they are speaking. (Defaults to true)



Undocumented