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 for Targeting

Hi All! I'm trying to create a button that ask me for target after pressing it, but never work...this is an example: /em &{template:traits} {{name=Scorching Fire}} {{source=Scuola: Invocazione}} {{description= [Level 2](!
%{selected|repeating_attack_$6_attack}!
%{selected|repeating_attack_$6_attack}!
%{selected|repeating_attack_$6_attack}
/fx beam-fire @{selected|token_id} @{target|Bersaglio 1|token_id} 
/fx beam-fire @{selected|token_id} @{target|Bersaglio 2|token_id} 
/fx beam-fire @{selected|token_id} @{target|Bersaglio 3|token_id})[Level 3](!
%{selected|repeating_attack_$6_attack}!
%{selected|repeating_attack_$6_attack}!
%{selected|repeating_attack_$6_attack}!
%{selected|repeating_attack_$6_attack}) }} thanks for your help!.
I don't think you can use the /em with a template.  Try it without the /em.
Thanks for your reply. But the real problem is that roll20 ask me for the target BEFORE choose between the two button the command create. I'm searchg for a method that ask me for the target after i press the chat button created with the command.  
1615387486
Kraynic
Pro
Sheet Author
The order of operations will tell you that it tries to fill in all attribute and ability calls before anything else.&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Order_of_Operations" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Order_of_Operations</a> If you don't want it to do that, then put the actual macro (the complete macro content of the level 2 button) in its own ability, and simply call that ability with the button.&nbsp; Doing things that way also mean you don't need to use the html replacements.&nbsp; There is an explanation of that in the Roll20 Tricks thread.&nbsp; While it is talking about a specific character sheet to hold macros, you can just use your own sheet to do the same thing as a player. <a href="https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=7605679#post-7605679" rel="nofollow">https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=7605679#post-7605679</a>
Thanks. I don t understand very Well because my English. But i try to put the target in ability and use the use the button to choose the level for scorchin ray.&nbsp; Write on this Forum is very funny!&nbsp;
1615400531
Kraynic
Pro
Sheet Author
If you enter this in chat, does it do what you want it to do? !&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}&amp;#13;/fx beam-fire @{selected|token_id} @{target|Bersaglio 1|token_id} &amp;#13;/fx beam-fire @{selected|token_id} @{target|Bersaglio 2|token_id}&amp;#13;/fx beam-fire @{selected|token_id} @{target|Bersaglio 3|token_id})[Level 3](!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack}!&amp;#13;&amp;#37;{selected|repeating_attack_$6_attack} If it doesn't, then you need to make whatever changes are needed to make it work correctly.&nbsp; Instead of putting it in the button, make it an ability macro named (just as an example) ScorchRay.&nbsp; Then in your top macro with the button, you would change the button to simply be [Level 2](~yourcharacternamehere|ScorchRay).&nbsp;