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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
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}