Execute Macro only with specific character?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Fuffzehn
Noob
Noob
Posts: 1
Joined: 18 Sep 2011, 14:34
Noob?: No

Execute Macro only with specific character?

#1 Post by Fuffzehn »

Hi there,
I use a simply automacro to tell my tank/group leader bot to sit down when the healer has no more sp with the following macro:

Code: Select all

automacro sit {
  sp < 20%
  $nick == healer
  run-once 1
  call {
     do pm tank sit
     release standup
  }
}

automacro standup {
  sp > 60%
  $nick == healer
  run-once 1
  call {
     do pm tank stand
     release sit
  }
}
But the $nick == healer does not seem to work, all characters send the tank messages. And the macro needs a bit of modification as the release sit is not executed when the tank is being attacked and forced to stand up (at least i think so, have not seen that ingame yet).
How can I solve those issues (tried searching and looking in the wiki already)

Thanks in advance
Fuffzehn
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Execute Macro only with specific character?

#2 Post by EternalHarvest »

In automacro block, only automacro conditions are allowed. Use "var" automacro condition.