Code: Select all
macro myMacro {
log Parameter 1 is $.param1
}
automacro bala {
<some conditions>
call myMacro -- this1st
}
Moderator: Moderators
Code: Select all
macro myMacro {
log Parameter 1 is $.param1
}
automacro bala {
<some conditions>
call myMacro -- this1st
}
Hm, you're right, what the version of OpenKore you are using? If it's not the latest please update.forbbs wrote:I considered it will print "Parameter 1 is this1st".
Code: Select all
automacro changeLocation{
pm Sample Check (.*)
call checkmaster -- $.lastpm $.lastMatch1
}
macro checkmaster {
log Person who pm is: $.param1
log That Person said: $.param2
}
Code: Select all
macro invokepm {
do pm $.param1 Warp and meet me at $.map $.pos
}
Code: Select all
macro invokepm -- Jelly Bean
Code: Select all
automacro warpandmeet {
console /Warp and meet me at (.*) (\d+) (\d+)/
timeout 1
overrideAI 1
call {
do c @warp $.lastMatch1 $.lastMatch2 $.lastMatch3
}
}
Code: Select all
macro invokepm -- Jelly Bean, some-other-parameters, and still some others
I like this idea.. this will make macro more dynamic.. and also a bit user friendly....Dark Airnel wrote:@iMikeLance
If possible, please allow usage of separators which would allow it to accept multi-worded parameters. AFAICR, the plugin treats each word as a parameter which somehow limits it usage.
If I type in console:Code: Select all
macro invokepm { do pm $.param1 Warp and meet me at $.map $.pos }
This will not work if I intend to pm the player "Jelly Bean" to trigger its automacro:Code: Select all
macro invokepm -- Jelly Bean
I hope something like this would work:Code: Select all
automacro warpandmeet { console /Warp and meet me at (.*) (\d+) (\d+)/ timeout 1 overrideAI 1 call { do c @warp $.lastMatch1 $.lastMatch2 $.lastMatch3 } }
Code: Select all
macro invokepm -- Jelly Bean, some-other-parameters, and still some others
Code: Select all
do macro nameOfMacro -- param1 param2 etc
In order to prevent some bugs, macro plugin won't allow you to use "do macro" inside macros.crasherkie wrote: I like this idea.. this will make macro more dynamic.. and also a bit user friendly....
@iMikeLance
Therefore at the mean time all we can do for now is to use something like this.
Instead of calling the call function. we can use the do command.
for example.Code: Select all
do macro nameOfMacro -- param1 param2 etc
am i right? or there is another way?