Macro plugins : onAction

This section is created for developers and non-developers who think that he/she has a good (and realistic) idea that might contribute to the OpenKore community.

Moderator: Moderators

Message
Author
kangtuji
Noob
Noob
Posts: 7
Joined: 19 May 2010, 09:17
Noob?: No

Macro plugins : onAction

#1 Post 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

xlr82xs
Developers
Developers
Posts: 51
Joined: 04 Sep 2013, 19:54
Noob?: No

Re: Macro plugins : onAction

#2 Post 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.

Post Reply