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

Macro help and questions.

Okay, so I've recently started using lots of macros, and I've come to find they're quite helpful, and I have so many plans for them. More than anything, I find it is the most helpful for determining the loot a party finds at random.  However, now I'm having issues actually MAKING those macros.  The closest I've been able to find so far was one I found in an older thread that I've modified since; rollTreasure (5E DM's Guide, Green boxed 1 = Magic Item, Red Boxed 0 = Cursed Item, can be modified to adjust rarity of items) /w gm &{template:default} {{name=Magic Loot Table}} {{Magic Item=[[1d12cs>11>11]]}} {{Table A - H=[[1d8]]}} {{Magic Item ID=[[1d100]]}} Those who may recognize it may notice that I've made a few edits to my taste, but it still isn't what I'd like it to be... What would probably help me more than anything would be a repository of macro commands/effects.  If one exists, I can't find it on the Macro wiki page, and I would appreciate a link to it if one does exist.   If one doesn't exist, then here are examples of what I'd like to do.  Example 1:  Say I have a die roll that I want to represent something.  Using the above treasure macro as an example, the section with "{{Table A-H=[[1d8]]}}", what if I wanted to make the die roll directly correspond to the letter it represents? (1=A, 2=B, etc.)  I'd also like that to be able to include other values/results, not just limited to letters.  (Ex: 1= "50 Gold Pieces") Example 2:  I'd like a way for all of the previous rolls be combined to create an outcome.  In this instance, (if the previous example is possible/successful,)  {{Magic Item=[[1d12cs>11>11]]}} (1) {{Table A - H=[[1d8]]}} = (4:D) {{Magic Item ID=[[1d100]]}} = (75) If this were to be the results of the roll above, then I'd like it to automatically send a message saying that "a Potion of  Cloud Giant Strength has been found!", or at the very least, list "Potion of Cloud Giant Strength." These are the two immediate examples that I can think of, Though I know I have many other ones that elude me at the moment.  Regardless, Any assistance possible is much appreciated!
1500992301
The Aaron
Pro
API Scripter
Unfortunately, that's not possible with macros. &nbsp;It IS possible with API scripts, and I wrote one for precisely that use case:&nbsp; <a href="https://app.roll20.net/forum/post/4954818/script-u" rel="nofollow">https://app.roll20.net/forum/post/4954818/script-u</a>... The API requires that the game was created by a currently active Pro Subscriber though.