Openkore.com

OpenKore Forums
It is currently 19 Oct 2018, 17:57

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [EventMacro]Doesn't automacro have var state condition?
PostPosted: 24 May 2018, 21:37 
Offline
Human
Human

Joined: 26 Jul 2011, 21:03
Posts: 31
In normal macro,it works.
Code:
automacro mymacro {
    var myvar > 20
    call {
          log mymacro triggers
    }
}

Does eventMacro support it ?


Top
 Profile  
 
 Post subject: Re: [EventMacro]Doesn't automacro have var state condition?
PostPosted: 25 May 2018, 08:50 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 431
Location: Genting Highland, Malaysia
Depends on what you need? I guess.. :?

_________________

iRO server supporter.
Wiki & Google are your best allies.
I'll not give answers, I only show you the way to find it.
Image


Top
 Profile  
 
 Post subject: Re: [EventMacro]Doesn't automacro have var state condition?
PostPosted: 02 Jun 2018, 21:18 
Offline
Human
Human

Joined: 26 Jul 2011, 21:03
Posts: 31
I would like do some state control logic using var condition.
like that
Code:
automacro assistme {
   party /^w([\d+])\+(stop|.*)/
   hp > 10%
   sp > 5%
   timeout 2
   priority 0
   call {
      lock assistmetimer
      $followbuf = 1
      $followlast = @config (followTarget)
      $followst = @config (follow)
      release assistmedo
      release assistmetimer
   }   
}

automacro assistmetimer {
   var followbuf >= 1
   timeout 3
   priority 0
   exclusive 1
   call {
      $followbuf++
      if ($followbuf >= 5) {
         $followbuf = 0
.....
      }
   }
}

automacro assistmedo {
   var followbuf >= 1
   console / Found the master/
   timeout 4
   priority 1
   call {
      pause 0.5
      $followbuf = 0
......
      release assistmedo
   }
}



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group