Set up reusable templates for general condition checks.
General condition templates are found in System > General Condition Templates.
If you often have to check for the same general conditions, set up General Condition Templates. The templates can be used in other general conditions for an easy setup and also allow creating more complex conditions by combining All and One conditions being required to be valid.
General Conditions #
General conditions are used throughout ORK framework and can check for many different conditions.
You can create custom general conditions by extending from the BaseGeneralCondition class.
Condition Types #
The following condition types are available.
Area #
Check the current area.
Area Type #
Check the current area’s content type.
Chance #
The condition is valid based on a defined chance.
Check Value #
Compares a value with a different value.
Combatant Status #
Check status conditions of a combatant.
Difficulty #
Check the game’s difficulty.
Game State #
Check if game states are active or inactive.
General Condition Template #
Check a general condition template.
Using a template within a general condition allows creating more complex conditions.
Has Tagged Component #
Checks if an object has a component with ‘Tag’ start type with defined tags.
Quest #
Check quest status conditions.
Quest (Any) #
Check if the player has at least one quest (with status/type limitations).
Quest Task #
Check quest task status conditions.
Quest Type #
Check quest content type status conditions.
Quest Variable #
Check quest variable conditions.
Variable #
Check variable conditions.
Example #
Template 1 checks for a combatant’s health lower than 50% or a negative status effect being applied.
Template 2 checks for the being in area A or in area B.
Combining them (either in another template or a single general condition) needing All to be valid:
The condition is valid if the combatant has below 50% health or a negative status effect while being in area A or B.
Or (semi-programming language):
(health < 50% || negative effect applied) && (area A || area B)

