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

Macros and Loot Tables

I have been scouring a bit, this is tougher than I thought. Here is what I am looking for. macro: &nbsp; &nbsp; Player runs a skill check say perception &nbsp; &nbsp; If the modified roll is 10-17 there is a 2d6 table1 that results in what they got. &nbsp; &nbsp; If the modified roll is 18+ then they roll 1d6 table2 that results in what they got I see some posts about linking the tables, but I haven't messed with them.&nbsp; Can I do this with macros?&nbsp; Possibly a button in a Handout or from Token Macro Bar? ( I read through this, but I think its assuming some prior knowledge lol)&nbsp; <a href="https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api#post-5638504" rel="nofollow">https://app.roll20.net/forum/post/5636784/nesting-roll-tables-to-create-random-encounter-slash-loot-tables-without-using-the-api#post-5638504</a> I thought maybe this, but not sure how to branch of to each table.&nbsp; This seemed a bit better... <a href="https://app.roll20.net/forum/post/5659079/look-up-tables/?pageforid=5659200#post-5659200" rel="nofollow">https://app.roll20.net/forum/post/5659079/look-up-tables/?pageforid=5659200#post-5659200</a> Any thoughts?&nbsp;&nbsp; TIA
1584240997
GiGs
Pro
Sheet Author
API Scripter
There's no way to do conditional branching through macros, nor can you embed dice rolls in rollable tables, so there's no way to do what you want. With the API (a Pro subscriber perk) you could do this, but someone would have to write the needed custom script.
1584242342

Edited 1584242375
ok, messing with queries to maybe ask player if they rolled 10-17, but it asks before the roll... maybe i can add as buttons in the handout, in order, that may help
1584245697
Kraynic
Pro
Sheet Author
Create your 2 tables.&nbsp; Create a macro for each table that just calls the table (maybe in a roll template).&nbsp; Then create your macro for the roll you mentioned above with a chat menu button for each of your tables.&nbsp; You could label them for the result ranges where each would be rolled.&nbsp; Then people make their roll, and then click the applicable button to call the correct table.
Yea I went with that, but now I cant get the image to show in the template... I have this, but how do I put image in there? &nbsp;&amp;{template:default} {{name=@{selected|token_name} foraged a }} {{[[1t[2-HerbsSpecial]]] = imageHere}}
1584248507
Kraynic
Pro
Sheet Author
I'm not sure if you can do that.&nbsp; You should be able to get whatever text entry you have on the table, but images in tables generally are used for multi-sided tokens, not for output in chat (though they do put out a tiny image if you randomly choose a side while a rollable table token is out on the map).&nbsp; I suspect that if you want the image to show on a table roll that will be in the realm of needing a pro subscription and an api script to make it possible.&nbsp; If there is another way, hopefully someone will post it.
Hmm, was hoping someone would just says its easy lol well hopefully someone will chime in, thanks for the help, i appreciate it