Exclusive

From OpenKore Wiki
Revision as of 22:35, 26 April 2021 by Conversion script (talk | contribs) (Conversion script moved page Exclusive to exclusive: Converting page titles to lowercase)
Jump to navigation Jump to search
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.
}