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

[PowerCards] How can I access the number of a table roll?

When I do a standard table roll I get a return of the number rolled: 1t[ShacklesRndWeather] ( 2 Precipitation; fog or rain ; 1-2 ) =2 I would like to put this in a PowerCard and access the number rolled for use in conditionals to access further tables. How can I do this? Thanks
Not currently possible. I never considered using a Roll ID/Conditional with a table result. I'm working on an update that will fix this.
1455891531

Edited 1455892488
<a href="https://gist.github.com/Sky-Captain-13/452330a3d92" rel="nofollow">https://gist.github.com/Sky-Captain-13/452330a3d92</a>... Updated. It only works on single rolls on tables. Otherwise it adds up the table id of each item rolled. To get the number, use Tbl.base and it includes all the weighted values.
Thank you for your prompt reply and added to your awesome PowerCard script. Unfortunately I either misunderstood your explanation or am doing something wrong. The table has weights 55, 10, 15, 13, 4, 2, and 1. I set up to test the first two results as follows: !power {{ --format|encounter --name|Weather --leftsub|Divination --rightsub|Standard Action --Today|![[ [$Tbl] [txt] 1t[ShacklesRndWeather] ]] --?? $Tbl.base &lt; 55 ?? Weather| Normal Weather --?? $Tbl.base &gt;= 55 AND $Tbl.base &lt; 65 ?? Weather| Fog or Rain }} When I run this everything comes out "Normal Weather" What am I doing wrong?
Don't know... I'll take a look in the morning. Atbwork right now.