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

Button Style for repeating Action not work

HI All&nbsp; i'm writing a macro to show repeating Spell with a button to cast &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{@{selected|repeating_spell-cantrip_$0_spellname}=[🌀](`~selected|repeating_spell-1_$0_spell)}} How this link&nbsp; <a href="https://wiki.roll20.net/Chat_Menus" rel="nofollow">https://wiki.roll20.net/Chat_Menus</a> &nbsp;describe i try to change button lok with " `", but without success. If i use a Script in the button like !ammo the button change style and work correctly but with&nbsp;&nbsp; `~selected|repeating_spell-1_$0_spel (or similar it not workng) someone know how i can solve or if i made som mistake? thanks
You don't need the backtick for Ability Command Buttons. Also the Roll20 Forums strip out most emojis and non-standard characters, so I replaced it with an 'X': &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{@{selected|repeating_spell-cantrip_$0_spellname}=[X](~selected|repeating_spell-1_$0_spell)}} You might also consider using the spellname itself for the link (and then you can double up on spells per line): &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{[@{selected|repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-1_$0_spell)=[@{selected|repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-1_$1_spell)}} Lastly, you might be interested in a Universal Macro Menu approach instead. Since you have a Pro subscription and it appears you're using the 'D&amp;D 5E by Roll20' sheet, you could have it working for all spells in a few minutes.
Thanks for all informations but my question is another. Why the button not work but the roll20 link twll differently?&nbsp;
HT said: Thanks for all informations but my question is another. Why the button not work but the roll20 link twll differently?&nbsp; I don't understand your question. If you have a macro that isn't working, please post the whole macro here, along with screenshots, and someone might be able to help troubleshoot.
1682714746

Edited 1682715053
HT
Pro
I ve this command in a macro &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{@{selected|repeating_spell-cantrip_$0_spellname}=[X](`~selected|repeating_spell-1_$0_spell)}} The macro create a Button [X] that run a cantrip. I Want use a simplified button how is described&nbsp; in this link&nbsp; <a href="https://wiki.roll20.net/Chat_Menus" rel="nofollow">https://wiki.roll20.net/Chat_Menus</a> at paragraph named: change button look, using&nbsp; the&nbsp; " `" character. IT Not work , why?
1682715944

Edited 1682716274
You have to remove the backtick " ` " character: &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{@{selected|repeating_spell-cantrip_$0_spellname}=[X](~selected|repeating_spell-1_$0_spell)}} You can't use the backtick for Ability Command Buttons . You only need backticks to call a Collections Macro (which starts with a #) and other Roll Commands &nbsp;(such as /roll). Examples: Yes:&nbsp; [Spell Name](~selected|repeating_spell-1_$0_spell) No: [Spell Name]( `~selected|repeating_spell-1_$0_spell) Yes: [Macro Name](`#Macro) No: [Macro Name](#Macro) Yes:&nbsp;[Roll 1d6](`/roll 1d6) No: &nbsp;[Roll 1d6](/roll 1d6) Also, make sure you are using the correct "backtick" character: which is ` not ' .
Thanks&nbsp;
There is a method to change Appaerance of Ability command button?&nbsp;
HT said: There is a method to change Appaerance of Ability command button?&nbsp; Yes, but it is not easy.&nbsp; <a href="https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=9119412#post-9119412" rel="nofollow">https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=9119412#post-9119412</a> Here's an example: &amp;{template:default}{{name=**Incantesimi di @{selected|character_name}**}} {{Cantrips= ∞}}{{@{selected|repeating_spell-cantrip_$0_spellname}=[Cast Spell](~selected|repeating_spell-1_$0_spell" style="text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; font-size: 13px; color: blue; )}}
Thanks again for your precious support! Have a nice roll!