Introduction
Object for creating {@link games.stendhal.server.entity.npc.ChatAction} instances.
Methods
actions:create
actions:create(function)
- Creates a custom {@link games.stendhal.server.entity.npc.ChatAction}.
- Parameters:
- function: A Lua function to be executed when
ChatAction.fire
is called.
- function: A Lua function to be executed when
- Returns: New
ChatAction
instance.
actions:multiple
actions:multiple(actionList)
- Helper method for creating a {@link games.stendhal.server.entity.npc.action.MultipleActions} instance.
- Parameters:
- actionList: A Lua table containing ChatAction instances.
- Returns: New
MultipleActions
instance.