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 .
×

What's wrong with this macro?

/w gm &{template:default} {{name=Gemstones}} {{Gemstones=[10GP](!
#1t[10GPGemstones])}} Hi all. I've been at this for a few hours now and I'm not getting anywhere. Time to ask the pros.  I'm trying to make a macro that makes a whispered clickable table that rolls from a rollable table i made show up. Hope that makes sense hah! I've watched the videos from taking20 again and again and as far as I can see I am doing exactly what he is doing. I can get it to work with the example in the video where he sets up a dice rolling macro clickable table that is whispered but as soon as I try do it with my rollable table I just cant get it to work. Have any of you just got that table already made in a macro like the one I'm looking for? And can you help me understand why my macro isn't working? Thanks in advance for any help.
1592621765

Edited 1592622203
Oosh
Sheet Author
API Scripter
You're really close, you just need your button to link to a macro. Putting commands after a ! is generally an API-only deal, these clickable API buttons are an exception but you need to link to a macro or an Ability macro after your [10GP] label. So make a macro called 10GPGemstones (or whatever you want) with your table roll in it 1t[10GPGemstones] Then change your code to: /w gm &{template:default} {{name=Gemstones}} {{Gemstones=[10GP](!
# 10GPGemstones )} If you're making a bunch of these, I might suggest saving them as ability macros instead of Collections macros. There are some tips in this thread , basically you can avoid cluttering up the Collections tab by splitting macros into character sheets with appropriate names, it'll avoid using HTML replacement in the example above, and when you do need to use HTML replacement it won't get ruined each time you edit the macros.
Thanks! Seems so obvious now that you said I need a macro to link to the table before anything else. I like what you said about putting these types of macros into character sheets to save space. At least this way I can reorder them too.
1592728956
Oosh
Sheet Author
API Scripter
Yep, it also makes your macros easy to export to your character vault to re-use in other games, organised into "modules" if you need.