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

Loot drop Rolltable and macro use

<a href="https://app.roll20.net/forum/post/4310430/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/4310430/slug%7D</a> using the above post as an idea i want to make a rolltable of loot that can be found when my party searches a body. i just need to confirm a few items. 1. is it possible with in the Roll table or macro to say [[1d6]] GP and have it roll and add the results to the output text. aka i click the macro that i will setup to call to a tablename1 and Tablename2. Tablename one is a static list of items say various healing potions. so upon search one of the random items + Table 2 Table 2 would be a list of money aka 1d6 GP 3d4 sp and Random gem which would be a third table.&nbsp; i know each table is cable of containing the static items and would when called using a properly formated macro would work. results example : healing potion 2d4 , Gem worth 10gp , the question comes in can it roll the 1d6 to determine the GP and the 3d4 to determine the SP. output healing potion 2d4, Gem worth 10 gp, 2 gp and 6 sp.
1507491232
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
With Aaron's Recursive Tables script, yes this is possible, and is in fact what the script was designed for
found the script now it is a matter of proper implantation unlike most api i found all i found was a link to his&nbsp; Git&nbsp;&nbsp; . but im sure i can sort it out given time
1507496466
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Here's the thread for the most recent update:&nbsp;<a href="https://app.roll20.net/forum/post/4954818/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/4954818/slug%7D</a>
Thanks Scott I think I can tackle this better now.&nbsp; If not I'll be sure to ask for help. I have Arron import export script up and running for tables any good suggestions that would make the work easier
1507556289

Edited 1507557764
sorted it out thank you for the support scott&nbsp; basic test case worked [[1d4]] [[1t[RandPotion] ]] [[1d6]] [[2t[coinage] ]] output perfectly using basic rt !import-table --RandPotion --hide !import-table-item --RandPotion --healing (2d4+2) --60 -- !import-table-item --RandPotion --greater healing (4d4+4) --37 -- !import-table-item --RandPotion --superior healing (8d4+8) --2 -- !import-table-item --RandPotion --supreme healing (10d4+20) --1 -- and&nbsp; !import-table --coinage --Hide !import-table-item --coinage --GP --1 -- !import-table-item --coinage --SP --1 -- !import-table-item --coinage --EP --1 -- !import-table-item --coinage --CP --1 -- Now to sort out weights and add in extras.
1507645293
The Aaron
Pro
API Scripter
lord mage said: i am just wondering what is the proper syntax for the roll to be used in a rt vers using the roll in a macro. i have one currently set up to roll in a macro then combine it with a rt but what i would like to do is. use a macro to trigger table1 that can contain all possible loot for now say 4 elixirs and random sp,cp,gp,ep, random gem of various value. to see the test case example see <a href="https://app.roll20.net/forum/post/5622817/loot-drop-rolltable-and-macro-use" rel="nofollow">https://app.roll20.net/forum/post/5622817/loot-drop-rolltable-and-macro-use</a> fell free to answer there or here. I'm not completely clear on what you mean?&nbsp; Are you saying you'd basically like to have: [[1d4]] [[1t[RandPotion] ]] [[1d6]] [[2t[coinage] ]] some of the time and [[1d10]] [[2t[coinage] ]] some of the time, and then express it all as a rollable table with weights? You'd just need to create another Rollable table with each of the above as rows and set the weights the way you like.
in essence i was attempting to create a loot drop that would pull from one master table say 3 items the 1d4 and 1d10 are examples used. as it is i have 3 separate tables. one for potions one for money and another for gems but none of them have rolls in the table. what id like to do is for example replace coinage and randpotion with something like this !import-table --loot&nbsp;--Hide !import-table-item --loot -- 1d10 GP --40 -- !import-table-item --loot --1d6 SP --30 -- !import-table-item --loot --1d4 EP --1 -- !import-table-item --loot --1d20 CP --60 -- !import-table-item --loot --1d10 healing (2d4+2) --60 -- !import-table-item --loot --1d6 greater healing (4d4+4) --15 -- !import-table-item --loot --1d4 superior healing (8d4+8) --1 -- !import-table-item --loot -- 1d4 supreme healing (10d4+20) --1 -- and have the rolls done inline with the currency and items in question. to create a complete loot table that i could simply make 3 calls to that would pick 3 items without repeats.&nbsp;
1507646067

Edited 1507646134
The Aaron
Pro
API Scripter
Try this: !import-table --loot --Hide !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d10&lt;%%93%%&gt;&lt;%%93%%&gt; GP --40 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d6&lt;%%93%%&gt;&lt;%%93%%&gt; SP --30 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d4&lt;%%93%%&gt;&lt;%%93%%&gt; EP --1 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d20&lt;%%93%%&gt;&lt;%%93%%&gt; CP --60 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d10&lt;%%93%%&gt;&lt;%%93%%&gt; healing (2d4+2) --60 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d6&lt;%%93%%&gt;&lt;%%93%%&gt; greater healing (4d4+4) --15 -- !import-table-item --loot --&lt;%%91%%&gt;&lt;%%91%%&gt;1d4&lt;%%93%%&gt;&lt;%%93%%&gt; superior healing (8d4+8) --1 -- !import-table-item --loot -- &lt;%%91%%&gt;&lt;%%91%%&gt;1d4&lt;%%93%%&gt;&lt;%%93%%&gt; supreme healing (10d4+20) --1 --
1507646389

Edited 1507646483
this was poutput rolling 1t[loot] ( [[1d10]] healing (2d4+2)) = 0&nbsp; each time the inline roll is list and = 0 i checked api is running and loading with out error for your git recursive script&nbsp;
1507646583
The Aaron
Pro
API Scripter
is that rolling it with: !rt [[ 1t[loot]]]
no sir Ty i new i missed something tested and works ty for your time
1507647326
The Aaron
Pro
API Scripter
Sweet!&nbsp;
last question i swear is it also possible to whisper to player or gm the results vs open chat.. something tells me not easily or no.&nbsp;
1507649561
The Aaron
Pro
API Scripter
Sure, anything after the !rt gets sent to the chat, so this will work: !rt /w gm [[ 1t[loot]]]