Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Query regarding @{target}

1394392057
Gen Kitty
Forum Champion
On the wiki page for Macros, there's a brief section on using @{target} in macros, with a mention of 'optional flags', but I can't find any list of what these 'optional flags' are. Help?
It's mostly just referring to the optional |max flag. ex: @{target|HP|max} would read in the second column of the HP attribute value instead of the first that it normally uses.
You can also specify an ID for the target so that you can use the value you get more than once. @{target|1st Target|token_name} would grab the name of the token targeted and each time you use @{target|1st Target|token_name} it will use that same name. You can do multiple targeting that way, such as: @{target|1st Target|token_name} @{target|2nd Target|token_name}
1394402027

Edited 1394402062
Gen Kitty
Forum Champion
So, there's only the ONE flag right now? I understand about max, especially given it was the example given in the wiki. :>
There's token_name, character_name, token_id and max.