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

Help with automaticly displaying names in macros

Hey guys! i am trying to create an simple macro that works just as a reminder what certan party support spells do and who has been targetet. right now it looks like this: "&{template:default} {{name=Bless}} {{Cleric Name Blessed = Char Name1 Char Name2 Char Name 3}} {{Whenever = Attack Roll Saving Throw}}{{Add = 1D4}}{{Duration = Concentration, up to 1 Minute}}" i tried to implement the "@{selected|token_name}" and it works for 1 token, but not on any more. as far as i read thats on purpose. do you know any other way to auto select the names of the 3 chars the cleric would select in this example? as an alternative i tried to create  an drop down select option, depending on with chars would be chosen, but i couldn't do that either. if you had any suggestions i would be most pleased. best regards!
1621003713
Andreas J.
Forum Champion
Sheet Author
Translator
do this instead: @{targetTarget1|token_name} @{targetTarget2|token_name} @{targetTarget3|token_name} more about how target work: <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#target" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#target</a>
Hey!&nbsp; thx for the tip. i tried that, but even when the tokens are linked to the char sheets i get an error. No character was found for 'targetTarget2' No character was found for 'targetTarget3'
1621006281
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There's a typo above. That should be: @{target|Target1|token_name} @{target|Target2|token_name} @{target|Target3|token_name}
Oh thank you so much! it works fine now.&nbsp; :D