Site Tools



Function used in mission creation.

Special step that executes a binary test based on the parameters entered. From this point, the script continues on branches based on the result of the test. The script then continues on the yes branch if the result is positive, or on the no branch if it is negative.

More information about mission script structure can be found in the script guidelines reference document.


name : Name of the step, can be used as Jump_to destination and should thus be named as a C++ object (no blank, no special character …)

condition_type : Type of condition to be tested.

test_parameters : Parameters used in the test (skill name and level value, brick name, mission name …)

Conditions Type :

  • test_missions_done
  • test_skills_level
  • test_bricks_known
  • test_sdb
  • test_faction_point
  • test_race
  • test_cult
  • test_civ
  • test_guild_cult
  • test_guild_civ
  • test_guild_fame
  • test_no_trial
  • test_item_in_inv: array of <Item> [quantity] [quality]. Test if the specified items (of at least quality given and in sufficient quantity) exist in the player inventory (bag or mektoubs). If multiple item line specified, the first OK jump to the YES (⇒ OR)
en/primitive/mission/step_if.txt · Last modified: 2016/11/13 14:08 (external edit)