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 Macro inside a Template

1592689427

Edited 1592689765
Helo guys! I'm not talented at coding, but I'm trying to create a macro from a rollable table of random encounters, with a determined template. The macro, the rollable table and how I want it to look like:
1592690405

Edited 1592690491
Well, I got some progress..  It goes /w gm&{template:npcaction} {{attack=1}}{{dmg1flag=1}}  {{name=Random Encounters}}{{rname=Whorlstone Tunnels}}{{dmg1=test}} {{description=#Roll_WTEncounter }} I imagine if there's any way to get that 1d4 Quasit rolled...
1592691268
David M.
Pro
API Scripter
Without using an API script (Pro only, but there is one already written called RecursiveTable), you could maybe try something like this? <a href="https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api" rel="nofollow">https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api</a>
David M. said: Without using an API script (Pro only, but there is one already written called RecursiveTable), you could maybe try something like this? <a href="https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api" rel="nofollow">https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api</a> Whoa! thanks mate.. definitely gonna take a close look at it
1592692500

Edited 1592692539
David M.
Pro
API Scripter
I also just happened to run across this: <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones#post-8848641" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones#post-8848641</a> Scroll down to Eric B's post titled: "Inline Rolls in Rollable Tables". Looks like there are some weird formatting quirks, though, so YMMV.