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

Long Term Madness Macro

I feel like I'm contracting long term madness myself, I've spent ages reading the wkis trying to find an answer and getting nowehere. It's probably devestatingly simple, I just need a nudge in the right direction. So I'm trying to put together a long-term madness macro to simulate the effects of Mad Monkey Mist in Tomb Of Anihilation. I've devised some roll tables for the potion effects and hallucinations, so far so good. I want to now make a macro to roll 1 d100 for the madness effect calling on those two tables, plus maybe a dozen other static effects (such as unconsciousness or paranoia)  if specific ranges of dice results come out. So how do I write the maco so that it selects outcomes on a D100 where 1 -10, does a thing, 11 - 20 does another thing and so on. It's probably something to do with how I weight the roles but I'm super tired and trying to figure this out on my own has me going in literal circles. Yours in befudlement RH.     
1591044778
GiGs
Pro
Sheet Author
API Scripter
You cant do this with a dice roll in roll20. Rolls can only return numbers, and those numbers cant be used to look up values on tables. But as Pro user, you can use scripts like the RecursiveTabels to achieve your goal.  With RecursiveTables you'd basically build whatever tables that mad monkey mist requires, and build the table links into the table. I cant really be more precise because there's not enough information in your post - but It hink that's the best way for you to go.
I am new pro subscriber and still learning my way around how all this is supposed to work.   Where can I crash course how to build a recursive table simply? (the wikis are good but a bit overwhelming I need like a tutortial video or something.) Is this something in the Script Library I can add like an API?
1591046129

Edited 1591046160
GiGs
Pro
Sheet Author
API Scripter
The recursivetable script can be found in the Script Library - its an API. Once you have it installed, it makes rollable tables do more than they can normally. Rollable Tables can be found on your Macros sidebar at the bottom:&nbsp; <a href="https://wiki.roll20.net/Rollable_Tables" rel="nofollow">https://wiki.roll20.net/Rollable_Tables</a> They are supposed to let you roll on tables, but by default, roll20's tables are pretty substandard. RecursiveTables lets you do things you cant normally, like have table entries that roll on other tables. Play around with rollable tables - build a simple one to randomly select a persons hair colour, or tavern names, for instance, just to see how they work. You can roll on a table just like a dice roll, but instead of doing, say /roll 3d6 , you do /roll 1t[table-name] You can also use inline rolls. For dice you'd do [[3d6]] , for tables [[&nbsp; 1t[table-name] ]] &nbsp;(the number of square brackets can get pretty silly.) So, with recursive tables, say you wanted to give a random person's description. You might have several tables, like Male-height, Female-Height, Hair-Color. (No spaces in table names) Then you could have one table to start it, which has two entries: A Man [[ 1t[Male-Height] ]] tall with [[ 1t[Hair-Color] ]] hair. A Woman [[ 1t[Female-Height] ]] tall with [[ 1t[Hair-Color] ]] hair. and when you roll on that table, it rolls on the other tables listed and replaces them in place. So yoy get something printed to chat like A Man 5' 11" tall with blue hair. Normal rollable tables wont roll any subtables, but with recursive tables installed, it happens automatically. You just need to install the script and forget about it. It's covered in a bit more detail here .
Thank you GiGs - I will look into this.