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

Trying to condesnse travel into a chat table for a rogue

In my group, we have a rogue who now has Reliable Talent which doesn't let them roll below 10 in skill check they are proficient in. Whilst travelling on a ship we have to make daily checks to see if we encounter something, (Water Vehicle check using wisdom). For sake of ease and not having to roll multiple separate checks and then having to figure out what day what encounter happens, I went to make an ability macro to roll a table, which works fine, but when I tried looking into creating drop downs and ability command buttons to paste different length tables I ran into many problems. So what I'm looking for is an easy way to be able to select 1-10 days and post an appropriate table. I could make 10 different ability macros on the characters sheet but I was wondering if anyone knew a better way since I had no luck with drop downs or buttons This is the table with 1 day of travel &{template:default}{{name=Sailing}}{{Day 1=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}}
1634051626

Edited 1634058887
timmaugh
Pro
API Scripter
You could create a mule of the 10 options you want, and tell each to retrieve the next-lesser value. Where you start from (by picking the number of days) determines how many rows you have in your output. Here are options where I ran it for 4 days and then again for 6 days: The Mule ability is named ReliableMule  on my character named Kokoro , and it looks like this: 1={{Day 1=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} 2={{Day 2=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.1 3={{Day 3=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.2 4={{Day 4=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.3 5={{Day 5=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.4 6={{Day 6=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.5 7={{Day 7=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.6 8={{Day 8=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.7 9={{Day 9=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.8 10={{Day 10=[[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]] [[{1d20,0d20+10}k1+@{wisdom_mod}[WIS] + @{pb}[PROF]]]}} get.ReliableMule.9 Then the usage ability on Kokoro's sheet is just this: !&{template:default}{{name=Sailing}} get.?{How many days of travel?|1|2|3|4|5|6|7|8|9|10}/get {&mule Kokoro.ReliableMule}{&simple} REQUIRED SCRIPTS: ZeroFrame, Muler, SelectManager (not absolutely required for this implementation, but needed for other functions once you have ZF installed) You could do an even more flexible arrangement of this if you wanted to be able to produce other outputs of variable length rows. I'll post a second response with that configuration, just so it's clear where you could do one or the other. EDIT: The other configuration got to be too much of a rabbit hole for me to pursue at the moment. If there is a call for it, maybe I can return to it later.