Page 1 of 1

Macro plugins : onAction

Posted: 23 Aug 2013, 09:21
by kangtuji
May I suggest if next revision of macro can support condition similiar like onAction ?
In a case I want the macro triggered only when attack / route / sitting (or anything that showed when I input 'aiv' or 'ai print', I know the list are in http://www.openkore.com/index.php/OnAction but I usually only use what showed in aiv or ai print)

I have try something like this, but failed

Code: Select all

automacro onAction {
eval $::char->attack != 0 
   call {
      do e ?
   }
}
Image

Re: Macro plugins : onAction

Posted: 20 Sep 2013, 08:52
by xlr82xs

Code: Select all

if (AI::is("attack"))
is how you would check for this if you were coding a plugin rather than a macro, you would have to check what calls are available to the macro system I guess. I never really got into it, and I'm too lazy to pull it down just to look.