Shopkeeper
┗> Object > Class
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. |
Returns:
1: Sprite |
Shopkeeper:setAnimation(animation: (string|function|table)?)
Arguments:
animation: (string|function|table)? |
Shopkeeper:setSprite(sprite: string|table|love.Image)
Arguments:
sprite: string|table|love.Image |
Returns:
sprite: ActorSprite|Sprite |
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
)