Uses of Interface
games.stendhal.server.entity.npc.ChatCondition
Package
Description
This package contains conditions frequently used in quests.
Interactive scripts that high level admins can invoke.
-
Uses of ChatCondition in games.stendhal.server.core.rp.achievement
ModifierConstructorDescriptionAchievement(String identifier, String title, Category category, String description, int baseScore, boolean active, ChatCondition condition)
create a new achievement -
Uses of ChatCondition in games.stendhal.server.core.rp.achievement.condition
Modifier and TypeClassDescriptionclass
Checks if a player has bought a number of items.class
Did the player ever kill a rare creature?class
Did the player kill all creatures, shared? (excluding rare)class
Did the player kill all creatures, solo? (excluding rare)class
Were this many quests completed?class
Are all the quests in this region completed?class
Was a quest with this prefix completed?class
Checks if a player has sold a number of items. -
Uses of ChatCondition in games.stendhal.server.core.rp.achievement.factory
Modifier and TypeMethodDescriptionprotected Achievement
AbstractAchievementFactory.createAchievement(String identifier, String title, String description, int score, boolean active, ChatCondition condition)
Creates a single achievement -
Uses of ChatCondition in games.stendhal.server.core.scripting.lua
Modifier and TypeMethodDescriptionCreates an instance of a ChatCondition from the class name string.LuaConditionHelper.create(org.luaj.vm2.LuaFunction lf)
Creates a custom ChatCondition.Modifier and TypeMethodDescriptionLuaConditionHelper.notC(ChatCondition condition)
Creates a NotCondition instance.LuaConditionHelper.notCondition(ChatCondition condition)
Deprecated. -
Uses of ChatCondition in games.stendhal.server.entity.mapstuff.area
Modifier and TypeMethodDescriptionConditionAndActionArea.getCondition()
protected ChatCondition
ConditionAndActionAreaFactory.getCondition(ConfigurableFactoryContext ctx)
Modifier and TypeMethodDescriptionvoid
ConditionAndActionArea.setCondition(ChatCondition condition)
-
Uses of ChatCondition in games.stendhal.server.entity.mapstuff.block
Modifier and TypeMethodDescriptionvoid
BlockTarget.setCondition(ChatCondition condition)
Set the ChatCondition to check -
Uses of ChatCondition in games.stendhal.server.entity.mapstuff.portal
Modifier and TypeMethodDescriptionprotected ChatCondition
ConditionAndActionPortalFactory.getCondition(ConfigurableFactoryContext ctx)
Extract the quest name from a context.ModifierConstructorDescriptionConditionAndActionPortal(ChatCondition condition, ChatAction action)
Creates a ConditionCheckingPortal.ConditionAndActionPortal(ChatCondition condition, String rejectMessage, ChatAction action)
Creates a ConditionCheckingPortal with reject message.Gate(String orientation, String image, ChatCondition condition)
Create a new gate. -
Uses of ChatCondition in games.stendhal.server.entity.npc
Modifier and TypeMethodDescriptionvoid
SpeakerNPC.add(ConversationStates[] states, String trigger, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
SpeakerNPC.add(ConversationStates[] states, Collection<String> triggerStrings, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
SpeakerNPC.add(ConversationStates state, String trigger, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition to the FSM.void
SpeakerNPC.add(ConversationStates state, String trigger, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action, String label)
Adds a new transition to the FSM.void
SpeakerNPC.add(ConversationStates state, Collection<String> triggerStrings, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
SpeakerNPC.add(ConversationStates state, Collection<String> triggerStrings, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
SpeakerNPC.add(ConversationStates state, Collection<String> triggerStrings, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action, String label)
Adds a new set of transitions to the FSM.void
SpeakerNPC.addInitChatMessage(ChatCondition condition, ChatAction action)
void
SpeakerNPC.addMatching(ConversationStates state, String trigger, ExpressionMatcher matcher, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition with explicit ExpressionMatcher to the FSM. -
Uses of ChatCondition in games.stendhal.server.entity.npc.behaviour.impl
Modifier and TypeMethodDescriptionBehaviour.getTransactionCondition()
a chat condition that checks whether transactions are possible at allQuestCompletedBuyerBehaviour.getTransactionCondition()
QuestCompletedSellerBehaviour.getTransactionCondition()
RepairerBehaviour.getTransactionCondition()
-
Uses of ChatCondition in games.stendhal.server.entity.npc.condition
Modifier and TypeClassDescriptionclass
Is the player an admin?class
Is the player's age greater than the specified age?class
Is the player's age less than the specified age?class
This condition returns always false.class
This condition returns always true.class
Is constructed from a group of conditions.class
Checks if there is room for a player within a restricted area.class
Checks whether something is available.class
Checks the current day light phase.class
Is player emoting to npc?class
Checks if an optional subject in the user input matches the NPC name.class
Has the player killed at least one of each specified creature, with or without the help of any other player.class
Checks the records of kills.class
Checking sum of quest creatures kills in player's quest and kills slots..class
Checking if player's quest slot need update with newer creatures and update it if required Quest string should have in proper quest index string like "creature1,w,x,y,z,creature2,a,b,c,d,creature3,..." Where creature1, creature2 - names of creatures to kill; w,x and a,b - number of creatures to kill, solo and shared; y,z and c,d - number of creatures killed by player before starting this quest, both solo and shared.class
Is the player's level greater than the specified one?class
Is the player's level smaller than the specified one?class
check whether a player has killed at least the specified number of creatures of any kindclass
Is the player naked? (e.class
An inverse condition.class
An or condition.class
Can this outfit be worn with normal clothes ?class
Can the player equip the specified item? (has enough space in his bag or other slots)class
Did the player get at least this number of items from the wishing well?class
has the player completed the specified number of the specified achievements?class
Checks to see if the player has a gate key that matches the identifier of the raiser (usually the gate but can be any entity with the "identifier" attribute)class
Checks if a player has harvested a minimum number of an itemclass
Does the player carry the specified item with the specified infostring?class
Check if the Player has equipped an item in a specified slotclass
Does the player carry the specified item?class
Checks if a player has killed the specified creature at least the specified number of times This can be with or without the help of other players.class
Does the player have a pet or sheep?class
Does the player carry the specified item?class
Checks whether the player has a shield equippedclass
Is there a storable entity in the specified list that has name of the current player as identifier?class
Is the player in the specified area?class
Check if a player is a good boy, e.class
Does the player wear (at least a part of) the specified outfit?class
Checks if a player has looted a minimum number of item(s).class
Condition to check if a player's mana is greater than a numberclass
Checks if a player has mined a given number of itemsclass
Checks if the player is next to an entity.class
Does the player owns a item (including the bank)?class
Checks if a player has produced a given number of itemsclass
Compares an integer value attribution.class
Checks if player has visited a list of certain zonesclass
Checks if player has visited certain zones in a regionclass
Was this quest started but not completed?class
Was this quest completed?class
Is this quest in this state?class
Is this quest either unknown, completed or rejected?class
Is this quest not completed?class
Is this quest not in this state?class
Was this quest not started yet?class
Checks if a quest is registered in the world.class
Is this quest state smaller than the value in this condition?class
Was this quest at least started? See QuestActiveCondition to check that it was started but not completed.class
Condition to check if the value in a quest slot is greater than an expected value.class
Does the quest state start with the specified String?class
Checks whether the sentence has an error.class
class
Is the specified system property set?class
Does this trigger contain a number?class
Did this trigger have additional parameters?class
Has 'delay' time passed since the quest was last done? If the quest slot isn't in the expected format, returns trueclass
Check if current system time reached a timestamp stored in a quest slot.class
Was one of these trigger phrases said exactly ignoring case? (Use with a ""-trigger in npc.add)class
Was one of theses trigger phrases said? (Use with a ""-trigger in npc.add)class
Was the trigger phrase a name of an NPC for an unstarted quest in the region? (Use with a ""-trigger in npc.add)class
Was a trigger phrase said, which is a produced item of this class? (Use with a ""-trigger in npc.add)class
was the content of a quest slot said?ModifierConstructorDescriptionAndCondition(ChatCondition... condition)
Creates a new "and"-condition.NotCondition(ChatCondition condition)
Creates a new "not"-condition.OrCondition(ChatCondition... condition)
Creates a new "or"-condition. -
Uses of ChatCondition in games.stendhal.server.entity.npc.fsm
Modifier and TypeMethodDescriptionvoid
Engine.add(ConversationStates state, String triggerString, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition to FSM.void
Engine.add(ConversationStates state, String triggerString, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action, String label)
Adds a new transition to FSM.void
Engine.add(ConversationStates state, Collection<String> triggerStrings, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
Engine.add(ConversationStates state, Collection<String> triggerStrings, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action, String label)
Adds a new set of transitions to the FSM.void
Engine.add(Collection<Expression> triggerExpressions, ConversationStates state, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.void
Engine.add(Collection<Expression> triggerExpressions, ConversationStates state, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action, String label)
Adds a new set of transitions to the FSM.void
Engine.addMatching(ConversationStates state, String triggerString, ExpressionMatcher matcher, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition with explicit ExpressionMatcher to FSM.void
Engine.addMatching(ConversationStates state, Collection<String> triggerStrings, ExpressionMatcher matcher, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM. -
Uses of ChatCondition in games.stendhal.server.maps.quests
Modifier and TypeClassDescriptionclass
does the sentence look like a possible coded message?static class
is scuba diving possible? -
Uses of ChatCondition in games.stendhal.server.maps.quests.captureflag
-
Uses of ChatCondition in games.stendhal.server.maps.quests.piedpiper
-
Uses of ChatCondition in games.stendhal.server.maps.semos.jail
Modifier and TypeClassDescriptionstatic class
Is the player speaking to us in jail?static class
Is the player speaking to us not in jail? -
Uses of ChatCondition in games.stendhal.server.maps.semos.tavern.market
Modifier and TypeClassDescriptionclass
Check if a player has collectable earnings in the market managed by the manager NPC -
Uses of ChatCondition in games.stendhal.server.script
Modifier and TypeClassDescriptionprotected class
Do we accept bets at the moment?protected class
Do we NOT accept bets at the moment?
LuaConditionHelper.notC
.