When I use if-call more than once consecutively, it has this tendency to skip the next line. Although It seems there is no problem when I use call alone. (without if)
Code: Select all
macro test{
$true1 = 1
$true2 = 2
$true3 = 3
call one
call two
call three
if ($true1 == 1) call one
log SKIP ME
if ($true2 == 2) call two
log SKIP ME
if ($true3 == 3) call three
log SKIP ME
if ($true1 == 1) call one
if ($true2 == 2) call two
if ($true3 == 3) call three
}
macro one{
log one
}
macro two{
log two
}
macro three{
log three
}
Code: Select all
[macro log] one
[macro log] two
[macro log] three
[macro log] one
[macro log] two
[macro log] three
[macro log] one
[macro log] three
To reproduce:
- Download clean openkore r7820 and macro plugin
Dump the macro code above into macro.txt
Run openkore start.exe
After logging into the game, run macro test