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

Help with a table Macro

So I've been trying to learn Macros to try and make a online game run a little smoother The issue with Rollable tables is they don't seem to do much but display the text (Thats a shame) So I wrote this macro trying to build a rollable table as macro. But 1 and 20 appear in the roll before the actual roll and then the rest of the table &{template:info} {{item=Backfire Table}}  {{Backfire roll=[[1d20]].}} {{1=Mindwipe: The manitou fries a part of the huckster’s mind with energy channeled from the darkest parts of the Hunting Grounds. Her Spellcasting die permanently drops one type.}} {{2–3=Brain Drain: As Mindwipe, but the effect lasts only until the end of the encounter.}} {{4–8=Corruption: The spell is twisted to have the worst possible result for the huckster. Damage-causing spells affect her or her allies, protection aids her foes, information-gathering incantations lie, and so on.}} {{9–12=Overload: Supernatural energy overwhelms the huckster. She’s Distracted, Stunned, and Vulnerable!}} {{13–16=Backlash: The manitou overloads the huckster’s nervous system with eldritch energy. She suffers [[2d6]] damage plus the number of Power Points she needed to successfully activate the power.}} {{17–19=Madness: The manitou drives the huckster insane. Roll on the mad scientist’s Madness Table (page 89). The condition lasts one week.}} {{20=Dirty Dealer: The huckster catches the manitou cheating. Immediately after the hand is resolved, she’s Shaken.}} Is there a way of showing just what the outcome they rolled, or at the very least how do I make the table appear in order? Any suggestion and tips would be handy.
1598750370
GiGs
Pro
Sheet Author
API Scripter
You're a Pro user, so you could install the Recursive Tables script. That allows you to use tables how they should be used, with the ability to roll within the table and have a table trigger rolls on other tables. That said, the issue you are having here is a sorting issue. When roll20 sees what it thinks are numbers before the =, it sorts them in order. Most of your enteries are in the form 2-3, 4-8, etc. That dash in the middle causes roll20 to see them as strings - text, and they dont get sorted as numbers. You can force roll20 to do the same with 1 and 20, buy changing the 1 to 01, and the 20 to 20+, like so:  {{01=Mindwipe: The manitou fries a part of the huckster’s mind with energy channeled from the darkest parts of the Hunting Grounds. Her Spellcasting die permanently drops one type.}}  and {{20+=Dirty Dealer: The huckster catches the manitou cheating. Immediately after the hand is resolved, she’s Shaken.}} However, it doesnt look like these entries have any rolls, so you could just make them a rollable table, and print out the one result that is actually rolled. 
1598752684
Oosh
Sheet Author
API Scripter
You can force roll20 to do the same with 1 and 20, buy changing the 1 to 01, and the 20 to 20+, like so: A   will also do it, if the leading 0 bugs you - so {{  1 = things }}
Okay I grabbed the Recursive Tables script I haven't a clue how to use it but I will have a read up tomorrow.