Automacro var condition

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

Moderator: Moderators

Random159753
Noob
Noob
Posts: 3
Joined: 07 Jun 2012, 14:22
Noob?: Yes

Automacro var condition

#1 Post by Random159753 »

Hi all,
I have a doubt about the usage of condition var on automacros.
What vars can I use? Can I use config.txt vars?

I tried:

Code: Select all

automacro Test {
	var @config (attackDistance) > 0
	call {
		log Your attackDistance is greater than 0
		stop
	}
}
but won't work.

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

Re: Automacro var condition

#2 Post by EternalHarvest »

Macro manual refers to macro plugin's own variables when not specified otherwise.
@keywords aren't macro plugin's variables and don't work with automacro conditions currently, however you can check for config values using eval automacro condition (and content of eval is unrelated to macro plugin here):

Code: Select all

eval $config{attackDistance} > 0