#
Conditions
List of all conditions available to use in dungeon scripts.
Tests dungeon ticks. In other words, condition will pass every X dungeon ticks (seconds) defined as Interval value.
tickCount\mod interval = 0
Type: tick_interval
Options:
- Interval - Interval value (in seconds).
Example:
Type: tick_interval
Interval: 5
Rolls a dice to test if Chance value is under it.
Type: chance
Options:
- Chance - Chance value (from 0.0 to 100.0).
Example:
Type: chance
Chance: 25.0
Tests mob provider and mob identifier.
Available for Mob involved events only!
Type: mob_id
Options:
- MobId - Mob Identifier.
Example:
Type: mob_id
MobId: 'ada:zombie'
Tests amount of specific mob in the dungeon.
Types:
alive_mob_amount
- Amount of alive mobs.killed_mob_amount
- Amount of killed mobs.spawned_mob_amount
- Amount of spawned mobs.
Options:
- Operator - Comparison operator. Available:
>
,>=
<
,<=
,=
,!=
. - Value - Amount of dungeon mobs will be compared to this value using the comparasion operator above.
- MobId - Mob Identifier.
Example:
Type: alive_mob_amount
MobId: 'ada:zombie'
Operator: <=
Value: 5
Tests amount of all mobs (of specific faction) in the dungeon.
Types:
alive_mobs_amount
- Amount of alive mobs.killed_mobs_amount
- Amount of killed mobs.spawned_mobs_amount
- Amount of spawned mobs.
Options:
- Operator - Comparison operator. Available:
>
,>=
<
,<=
,=
,!=
. - CheckFaction - Whether to check mob faction or not.
- Faction - Mob Faction. Available:
ENEMY
,ALLY
.
Example:
Type: alive_mobs_amount
Operator: <=
Value: 0
CheckFaction: true
Faction: ENEMY
Tests if spot is (not) in a specific state.
Types:
spot_in_state
- Spot is in a state.spot_not_in_state
- Spot is not in a state.
Options:
- SpotId - Spot identifier of the dungeon.
- StateId - State identifier of the spot.
Example:
Type: spot_in_state
SpotId: gate
StateId: open
Tests stage task identifier.
Available for Task involved events only!
Type: task_id
Options:
- TaskId - Stage Task identifier.
Example:
Type: task_id
TaskId: 'kill_zombies'
Tests if stage task is (not) completed.
Types:
task_completed
- Task is present and completed.task_incompleted
- Task is not present or not completed.
Options:
- TaskId - Task identifier (must present in the config of current dungeon stage).
Example:
Type: task_completed
TaskId: kill_mobs
Tests if stage task is (not) present.
Types:
task_present
- Task is present.task_not_present
- Task is not present.
Options:
- TaskId - Task identifier (must present in the config of current dungeon stage).
Example:
Type: task_present
TaskId: kill_mobs