or's symbol/ letter/ number for automacro's conditions

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

Moderator: Moderators

inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

or's symbol/ letter/ number for automacro's conditions

#1 Post by inv »

Is there an or symbol/ letter/ number for automacro's conditions?
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: or's symbol/ letter/ number for automacro's conditions

#2 Post by Raider »

inv wrote:Is there an or symbol/ letter/ number for automacro's conditions?
Comma-separated arguments are treated as OR conditions
Multiple lines are treated as AND conditions

http://wiki.openkore.com/index.php/Macro_plugin
inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

Re: or's symbol/ letter/ number for automacro's conditions

#3 Post by inv »

Comma is for spell, status etc, but for player isn't comma, it didn't say comma, and I've tested using comma, but it didn't work. For others like player, there's no function to do it?
ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: or's symbol/ letter/ number for automacro's conditions

#4 Post by ptcarino »

inv wrote:Comma is for spell, status etc, but for player isn't comma, it didn't say comma, and I've tested using comma, but it didn't work. For others like player, there's no function to do it?
Openkore Macro Plugin Help wrote:player ("<player name>" | /<regexp>/) [, <distance> ]
Triggers when <player name> is on screen and not more than <distance> blocks away.
Multiple lines are treated as AND conditions.
there's no OR condition for players unfortunately.

i suggest you should download the help file of macro plugin for reference

Openkore Macro Plugin Help:
http://forums.openkore.com/viewtopic.php?f=32&t=8927
Image
inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

Re: or's symbol/ letter/ number for automacro's conditions

#5 Post by inv »

Why do I need to reference the no ors for macro plugin?
iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG

Re: or's symbol/ letter/ number for automacro's conditions

#6 Post by iMikeLance »

Use regex:
player /(Playername1|Playername2|PlayerName3)/
inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

Re: or's symbol/ letter/ number for automacro's conditions

#7 Post by inv »

I've just tried player /(player1|player2)/, /("player1"|"player2")/, /"player1"|"player2"/, /player1|player2/, (player1|player2), ("player1"|"player2"), "player1"|"player2", player1|player2, all don't work