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 figure a wild mage table macro

So I have a wild mage and found this macro from a old forum post from Silvyre a few years ago but all i get is either a zero or a one.I have little idea about how this all works and hoping for a little explanation. Thank you all. Oh and my dm called the table [Wild_Magic_Surge] ] [[ [[1d20=1]]t[Wild-Magic] ]]
It's a boolean statement. If I understand it correctly if the d20 rolls a 1 it outputs 1 otherwise it outputs 0? Not sure how you would work that into a macro for rolling from a table if the d20 rolls a 1. I'm still new to roll20 I've been using it for less than 2 weeks so that's as much as I can tell you about it. Maybe someone more experienced can chime in.
1523212303

Edited 1523212830
Pantoufle
Pro
Sheet Author
Translator
Hello my first guess would be to change the name to the tablename => [[ [[1d20=1]]t[Wild_Magic_Surge] ]] What I understand, but I could be wrong, from your macro : [[1d20=1]] means that when your d20 egals 1 the output is 1, 0 else... so 0t[Wild_Magic_Surge] => pick 0 entrie from the table or 1t[Wild_Magic_Surge] => pick 1 entrie from the table Your issue may be caused by the tablename you have set up doesn't connect with anything.. and the calculation stops after the D20=1 test.
1523214871
The Aaron
Pro
API Scripter
The = modifier is called a Compare Point, you can see it here in the docs:&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Roll_Modifiers" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Roll_Modifiers</a> Pantoufle, you're completely right in your breakdown. Make sure that [[1t[Wild-Magic] ]] gives you a result on it's own, that will let you know if that is the correct table name.
1523623924

Edited 1523661583
using API A pro feature at the GM game creator level you can use a few tricks to make this work best. this would create the table all with equal chance then all you need is a macro to run the table&nbsp;!rt [[1t[Wild Magic Surge]]] one APi Called&nbsp; <a href="https://app.roll20.net/forum/post/1144568/script-t" rel="nofollow">https://app.roll20.net/forum/post/1144568/script-t</a>... and another <a href="https://app.roll20.net/forum/post/2845333/script-r" rel="nofollow">https://app.roll20.net/forum/post/2845333/script-r</a>... both by The Aaron !import-table --Wild Magic Surge --show !import-table-item --Wild Magic Surge --input text here --1 -- !import-table-item --Wild Magic Surge --Repeat as needed --1 --