Skip to content

Conditions ​

A condition is a yes-or-no question about the game right now: is this entity alive? has the quest been completed? are there three enemies within 10 meters? is it night? A condition never changes anything. Other things use the answer to decide whether to happen.

Where you add conditions ​

WhereWhat the conditions decide
EventsWhether an event runs, and the If action inside an event
BehaviorsWhich attack an enemy picks, when it reacts, when it changes phase, when a schedule or a task may start
Stat effectsWhether a stat bonus applies: "+30 % damage against Undead", "+20 % damage below 30 % health". All the conditions must be true
The Condition conditional effectWhether its child effects are applied, for the target or the user
EncountersWhether a reaction of a group of enemies happens

In every list, all the conditions must be true. For "any of these", use the Or condition, which holds other conditions and passes when a number of them pass (1 for "any", all of them for "and").

Adding a condition ​

Click the add button next to the list of conditions. A dialog opens with a Category, a Type and its fields:

  • General conditions are about the world: quests, events, global variables, the time of day, the party, trigger areas, doors and chests.
  • Spawner conditions are about a spawner: is it on, how many things of it are alive.
  • Entity conditions are about one entity: its health, level, effects, items, distance, target.
  • Encounter conditions are about a group fight: how long it has lasted, how many are alive.

The conditions on event variables (local boolean, number, text) are made inside the event editor, where those variables exist.

Who does an entity condition look at? ​

An entity condition has an Entity target. It says which entity the question is about:

Entity targetThe entity
Argument entityThe entity the thing belongs to: the enemy whose behavior it is, the owner of the stat, the holder of the effect. This is the default. See argument entity
Argument entity targetWhat the argument entity is aiming at (its target)
Current playerThe player character in control
SummonerThe owner of the argument entity, when it is a pet
Unique IDA specific placed entity, by its unique id
OpponentThe other side of the hit being calculated. Only for conditions on stat effects: "damage against Undead" is the condition opponent has the tag Undead
Any playerThe whole party: the condition is met when it holds for at least one member
All playerThe whole party: the condition is met when it holds for every member

An encounter condition has an Encounter target in the same way: the encounter itself, the current active one, the nearest one, or one by id.

Comparing numbers ​

Conditions that compare a number offer the same choices: equal, greater, less, greater or equal, less or equal, not equal, and for text and lists contains and not contains.

The condition types ​

General ​

ClassWhat it is
ChestContainsItemConditionCheck if a container contains specific items Evaluates whether a chest/container has the required items and quantities
DoorStateConditionCheck door state and accessibility Evaluates door-specific conditions like open/closed state and lock status
EventActiveEntityConditionChecks if a specific event is currently active
EventCompletedEntityConditionChecks if a specific event has been completed
GameTimeConditionChecks if the current game time meets specified criteria.
GlobalVariableConditionUniversal condition for checking global variables of any type
GroundWeatherConditionChecks how wet the ground is or how much snow lies on it (what the terrain shows): "the snow is at least half" opens a pass, "the ground is dry" lets a fire be lit.
InteractableHealthConditionChecks if a destructible interactable's health meets certain criteria.
OrConditionA composite condition that passes if a specified number of its child conditions pass.
PartyIncludesClassConditionChecks if the party includes a specific character class.
PartySizeConditionChecks if the party size meets certain criteria.
PlayerInZoneConditionChecks whether the party is in a zone.
PlayerTriggerAreaPresenceConditionChecks if players are present in a specific trigger area
QuestActiveEntityConditionChecks if a specific quest is currently active
QuestCompletedEntityConditionChecks if a specific quest has been completed
RandomChanceConditionChecks if a random roll succeeds based on percentage chance.
ShelteredConditionChecks whether the party's view is inside a shelter (a ShelterVolume): "the party is under a roof" lets a camp be made, "the party is in the open" starts a storm quest.
SwitchStateConditionCheck if a switch is in the desired state Evaluates switch-specific conditions like ON/OFF state
TriggerAreaPresenceConditionChecks if entities are present in a specific trigger area

Spawner ​

About a spawner: whether it is on, and how many things it made are standing.

ClassWhat it is
SpawnerActiveConditionChecks whether a spawner is switched on.
SpawnerAliveCountConditionChecks how many things a spawner made are standing now (NPCs that are alive, objects that are there, items that lie): "the wolves of the forest are all dead" is a count of 0.

Encounter ​

ClassWhat it is
CombatDurationConditionChecks if the group has been in combat for a specified duration
DistanceFromPositionConditionChecks if group is within certain distance of a position
EncounterActiveStateConditionChecks if an encounter is in a specific active state.
EncounterCombatStateConditionChecks if an encounter is in a specific combat state.
EncounterEntityCountConditionChecks if an encounter has a specific number of entities alive/dead.
GroupHealthPercentageConditionChecks if the group's average health percentage meets specified criteria
GroupMembersAliveConditionChecks if the number of alive group members meets specified criteria
PlayersInAreaConditionChecks if a minimum number of players are within the encounter area

Event variables ​

ClassWhat it is
LocalVariableBoolConditionChecks if a local boolean variable in an event meets certain criteria
LocalVariableFloatConditionChecks if a local float variable in an event meets certain criteria
LocalVariableIntConditionChecks if a local integer variable in an event meets certain criteria
LocalVariableStringConditionChecks if a local string variable in an event meets certain criteria

Each class page in the Advanced section lists the fields of the condition.

Examples ​

You wantConditions
An enemy that heals itself only when hurtEntity: Health Percent (below 40)
A boss phase that starts when two of its three guards are deadEncounter: Group Members Alive (less than 2)
An event that runs once a quest is done and it is nightGeneral: Quest Completed and Game Time
A bonus that applies only against beastsOn the stat effect: Entity: Entity Has Tag (target Opponent, tag Beast)
A buff that heals only while the target stands stillA ticking Condition conditional effect with the Entity condition Movement State (standing still)

See also ​