Template:Op flow control

Flow control
call_script = 1
 * Calls specified script with or without parameters. Maximum number of parameters you can pass with the operation is 16.
 * Calls specified script with or without parameters. Maximum number of parameters you can pass with the operation is 16.

try_begin = 4
 * Opens a conditional block.
 * Opens a conditional block.

else_try = 5
 * If conditional operations in the conditional block fail, this block of code will be executed.
 * Works also within try_for_agents and try_for_range. Each loop will execute code block after else_try if code block before failed. There can be multiple else_try in the loops.
 * Works also within try_for_agents and try_for_range. Each loop will execute code block after else_try if code block before failed. There can be multiple else_try in the loops.

else_try_begin = 5
 * Deprecated form of (else_try).
 * Deprecated form of (else_try).

try_end = 3
 * Concludes a conditional block or a cycle.
 * Concludes a conditional block or a cycle.

end_try = 3
 * Deprecated form of (try_end),
 * Deprecated form of (try_end),

try_for_range = 6
 * Iterates from the to < -1>. is the variable iterated in the loop, which always increments to the next value at the end of the loop. Break the loop by lowering the upper bound.
 * Iterates from the to < -1>. is the variable iterated in the loop, which always increments to the next value at the end of the loop. Break the loop by lowering the upper bound.

try_for_range_backwards = 7
 * Iterates from < - 1> to the . is the variable iterated in the loop, which always decrements to the next value at the end of the loop. Break the loop by increasing the lower bound.
 * Iterates from < - 1> to the . is the variable iterated in the loop, which always decrements to the next value at the end of the loop. Break the loop by increasing the lower bound.

try_for_parties = 11
 * Runs a cycle, iterating all parties on the map.
 * Runs a cycle, iterating all parties on the map.

try_for_agents = 12
 * Runs a cycle, iterating all agents on the scene.
 * The reference  is active untill the next mission or scene is loaded. So don't check agent_is_active. It will always return true.
 * Optional parameters allow to check agents only within specific radius around certain position.
 * Avoid using pos0. This will pass zero to the second argument and radius and position will be skipped. Like optional arguments were ommited.
 * Radius can be used to break loop if assigned to 0.
 * Radius can be used to break loop if assigned to 0.

try_for_prop_instances = 16
 * Version 1.161+. Runs a cycle, iterating all scene prop instances on the scene.
 *  refers to  or .
 * If  and  is not given, it loops through all instances.
 * Bug: When iterating all instances sometimes it returns not valid zero instance. Zero instance usually refered to "spr_inventory". This bug is fixed in the WSE.
 * For object types see list of "somt_" in module_constants.py.
 * To iterate without  pass 0. Wich refers to invalid item or prop. I.e. itm_no_item = 0, spr_invalid_object = 0.
 * Example
 * Example

try_for_players = 17
 * Version 1.165+. Iterates through all active players in a multiplayer game. Set optional parameter to 1 to skip server player entry.
 * Version 1.165+. Iterates through all active players in a multiplayer game. Set optional parameter to 1 to skip server player entry.