Template:CheckOnAI: Difference between revisions
Jump to navigation
Jump to search
(Created page with " <noinclude>This template describes the '''CheckOnAI''' parameter of the automacro eventMacros.</noinclude> ; CheckOnAI :* '''CheckOnAI''' is an opti...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template describes the '''CheckOnAI''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude> | <noinclude>This template describes the '''CheckOnAI''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude> | ||
; CheckOnAI | ; CheckOnAI [auto, manual, off] | ||
:* '''CheckOnAI''' is an optional parameter. | :* '''CheckOnAI''' is an optional parameter. | ||
:* '''CheckOnAI''' defines in which AI states the automacro can activate. | :* '''CheckOnAI''' defines in which AI states the automacro can activate. | ||
Line 8: | Line 8: | ||
:* It's values can be a combination of auto, manual and off, separated by comma. | :* It's values can be a combination of auto, manual and off, separated by comma. | ||
automacro | automacro MyAuto1 { | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
CheckOnAI manual | CheckOnAI manual | ||
call | call myMacro1 | ||
} | } | ||
macro | macro myMacro1 { | ||
<macro instructions (and only them, as this is regular macro)> | <macro instructions (and only them, as this is regular macro)> | ||
log This macro will only be called by MyAuto when AI is manual | log This macro will only be called by MyAuto when AI is manual | ||
Line 21: | Line 21: | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
CheckOnAI manual, off | CheckOnAI manual, off | ||
call | call myMacro2 | ||
} | } | ||
macro myMacro2 { | macro myMacro2 { |
Latest revision as of 23:00, 9 September 2020
This template describes the CheckOnAI parameter of the automacro eventMacros.
- CheckOnAI [auto, manual, off]
-
- CheckOnAI is an optional parameter.
- CheckOnAI defines in which AI states the automacro can activate.
- The default value for this parameter can be set in the config key eventMacro_CheckOnAI Configuration files.
- If not used in the automacro the default value will be used, which is the config key eventMacro_CheckOnAI.
- If eventMacro_CheckOnAI is not set in the config the default value will be used, which is: auto
- It's values can be a combination of auto, manual and off, separated by comma.
automacro MyAuto1 { <automacro conditions and parameters (and only them)> CheckOnAI manual call myMacro1 } macro myMacro1 { <macro instructions (and only them, as this is regular macro)> log This macro will only be called by MyAuto when AI is manual } automacro MyAuto2 { <automacro conditions and parameters (and only them)> CheckOnAI manual, off call myMacro2 } macro myMacro2 { <macro instructions (and only them, as this is regular macro)> log This macro will only be called by MyAuto2 when AI is manual or off }