Introduction
Object for creating {@link games.stendhal.server.entity.npc.ChatCondition} instances.
Methods
conditions:create
conditions:create(function)
- Creates a custom {@link games.stendhal.server.entity.npc.ChatCondition}.
- Parameters:
- function: Lua function to be invoked when
ChatCondition.fire
is called. - Returns: New
ChatCondition
instance.
conditions:notC
conditions:notC(condition)
- Creates a {@link games.stendhal.server.entity.npc.condition.NotCondition}.
- Parameters:
- condition: Can be a
ChatCondition
,LuaValue
containing aChatCondition
instance, a Lua table ofChatCondition
instances, or a function. - Returns: New
NotCondition
instance.
conditions:andC
conditions:andC(conditionList)
- Creates an {@link games.stendhal.server.entity.npc.condition.AndCondition}.
- Parameters:
- conditionList: Lua table containing
ChatCondition
instances. - Returns: New
AndCondition
instance.
conditions:orC
conditions:orC(conditionList)
- Creates an {@link games.stendhal.server.entity.npc.condition.OrCondition}.
- Parameters:
- conditionList: Lua table containing
ChatCondition
instances. - Returns: New
OrCondition
instance.