repeat: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with "{{Template:Repeat}} Category:EventMacro_Automacros Category:EventMacro_Parameters")
 
m (Conversion script moved page Repeat to repeat: Converting page titles to lowercase)
 
(No difference)

Latest revision as of 22:35, 26 April 2021

repeat <number>
  • repeat is an optional parameter.
  • repeat defines how many times the macro defined by call will be called.
  • If not used in the automacro the default value will be used, which is: 1.
  • Must have a numeric value.
automacro <automacro name> {
    <automacro conditions and parameters (and only them)>
    repeat 3
    call myMacro
}
macro myMacro {
    <macro instructions (and only them, as this is regular macro)>
    log This message will be printed 3 times, because the macro will be called 3 times
}