Template:Exclusive: Difference between revisions
Jump to navigation
Jump to search
(Created page with " <noinclude>This template describes the '''exclusive''' parameter of the automacro eventMacros.</noinclude> ; exclusive <boolean> :* '''exclusive...") |
No edit summary |
||
Line 7: | Line 7: | ||
:* When it's value is 1 the macro can not be interrupted by other automacros. | :* When it's value is 1 the macro can not be interrupted by other automacros. | ||
automacro | automacro MyAuto1 { | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
exclusive 0 | exclusive 0 | ||
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 would probably cause a bug because the automacro would activate every AI cycle since the macro is interruptible. | log This would probably cause a bug because the automacro would activate every AI cycle since the macro is interruptible. | ||
Line 20: | Line 20: | ||
<automacro conditions and parameters (and only them)> | <automacro conditions and parameters (and only them)> | ||
exclusive 1 | exclusive 1 | ||
call | call myMacro2 | ||
} | } | ||
macro myMacro2 { | macro myMacro2 { |
Latest revision as of 20:25, 18 October 2020
This template describes the exclusive parameter of the automacro eventMacros.
- exclusive <boolean>
-
- exclusive is an optional parameter.
- exclusive defines if the macro can be interrupted or not.
- If not used in the automacro the default value will be used, which is: 0.
- When it's value is 0 the macro can be interrupted by other automacros.
- When it's value is 1 the macro can not be interrupted by other automacros.
automacro MyAuto1 { <automacro conditions and parameters (and only them)> exclusive 0 call myMacro1 } macro myMacro1 { <macro instructions (and only them, as this is regular macro)> log This would probably cause a bug because the automacro would activate every AI cycle since the macro is interruptible. } automacro MyAuto2 { <automacro conditions and parameters (and only them)> exclusive 1 call myMacro2 } macro myMacro2 { <macro instructions (and only them, as this is regular macro)> log Since exclusive is 1 the macro is now uninterruptible and will work properly. }