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

[Script] Instantly create Wild Magic Surge rollable table

Hello. One of my player's recently requested a rollable table for Wild Magic Surges and instead of adding all 50 possibilities manualle, I created a quick script to automatically add them all to a new table. I found this really useful and I thought some of you might as well, so I just wanted to share it with you. To make it work, all you have to do is paste the JavaScript into your browser's developer console, which you can open by pressing F12 and choosing "Console". It won't work if you use Roll20 in another language than English. While it really shouldn't be able to mess anything up, you still&nbsp; use it at your own risk! <a href="https://gist.github.com/tobloef/00e4803937cfb99180738e1aa420c76c" rel="nofollow">https://gist.github.com/tobloef/00e4803937cfb99180738e1aa420c76c</a> I hope someone will find it useful. Enjoy!
this comes in handy thanks... you could look into Api tons of fun there a safer way to share your tables&nbsp; <a href="https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts" rel="nofollow">https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts</a>
if you use the suggested script it would output like this then it is a simple matter of following the parameters edit to your liking and then you could copy and paste this in chat and have the table created for you.&nbsp; !import-table --Wild Magic Surge --show !import-table-item --Wild Magic Surge --Roll on this table at the start of each of your turns for the next minute, ignoring this result on subsequent rolls. --1 -- !import-table-item --Wild Magic Surge --For the next minute, you can see any invisible creature to which you have line of sight. --1 -- !import-table-item --Wild Magic Surge --You cast FIREBALL as a 3rd level spell, centered on yourself. --1 -- !import-table-item --Wild Magic Surge --You cast MAGIC MISSLE as a 5th level spell --1 -- !import-table-item --Wild Magic Surge --Your height changes &lt;%%91%%&gt;&lt;%%91%%&gt;1d10&lt;%%93%%&gt;&lt;%%93%%&gt; inches. You shrink if the number is Odd, grow if the number is even. --1 -- !import-table-item --Wild Magic Surge --You cast CONFUSION centered on yourself. --1 -- !import-table-item --Wild Magic Surge --For the next minute you gain 5hp at the start of each of your turns. --1 -- !import-table-item --Wild Magic Surge --You grow a long beard made of feathers that remains on your face until you sneeze, at which point the beard explodes out from your face. --1 -- !import-table-item --Wild Magic Surge --You cast GREASE centered on yourself. --1 -- !import-table-item --Wild Magic Surge --Creatures have disadvantage on saving throws against the next spell you cast that requires a saving throw in the next minute. --1 -- !import-table-item --Wild Magic Surge --An eye appears in the center of your forehead for the next minute. You gain advantage on Perception checks that involve sight. --1 -- !import-table-item --Wild Magic Surge --For the next minute, all your spells with a casting time of 1 action now have a casting time of 1 bonus action. --1 -- !import-table-item --Wild Magic Surge --You teleport up to 60ft to an unoccupied space of your choice that you can see. --1 -- !import-table-item --Wild Magic Surge --Maximize the damage of the next damaging spell you cast within the next minute. --1 -- !import-table-item --Wild Magic Surge --Your age changes &lt;%%91%%&gt;&lt;%%91%%&gt;1d10&lt;%%93%%&gt;&lt;%%93%%&gt; years. You age if the number is Odd, become younger if the number is even. --1 -- !import-table-item --Wild Magic Surge --You regain &lt;%%91%%&gt;&lt;%%91%%&gt;2d10&lt;%%93%%&gt;&lt;%%93%%&gt; hit points. --1 -- !import-table-item --Wild Magic Surge --You turn into a potted plant until the start of your next turn. While a plant, you are incapacitated and have vulnerability to all damage. If you drop to 0 hit points, your pot breaks and you revert to your form. --1 -- !import-table-item --Wild Magic Surge --For the next minute, you can teleport up to 20ft as a bonus action on each of your turns. --1 -- !import-table-item --Wild Magic Surge --You cast LEVITATE on yourself. --1 -- !import-table-item --Wild Magic Surge --You can't speak for the next minute. Whenever you try, pink bubbles float out of your mouth. --1 -- !import-table-item --Wild Magic Surge --A spectral shield hovers near you for the next minute, granting you a +2 bonus to AC and immunity to MAGIC MISSLE. --1 -- !import-table-item --Wild Magic Surge --You are immune to being intoxicated by alcohol for the next &lt;%%91%%&gt;&lt;%%91%%&gt;5d6&lt;%%93%%&gt;&lt;%%93%%&gt; days. --1 -- !import-table-item --Wild Magic Surge --Your hair falls out, but grows back within the next 24hrs. --1 -- !import-table-item --Wild Magic Surge --For the next minute, any flammable object you touch that isn't being worn or carried by another creature bursts into flame. --1 -- !import-table-item --Wild Magic Surge --You regain your lowest-level expended spell slot. --1 -- !import-table-item --Wild Magic Surge --For the next minute, you must shout when you speak. --1 -- !import-table-item --Wild Magic Surge --You cast FOG CLOUD centered on yourself. --1 -- !import-table-item --Wild Magic Surge --Up to three creatures you choose within 30ft of you take &lt;%%91%%&gt;&lt;%%91%%&gt;4d10&lt;%%93%%&gt;&lt;%%93%%&gt; lightning damage. --1 -- !import-table-item --Wild Magic Surge --You are frightened of the nearest creature until the end of your next turn. --1 -- !import-table-item --Wild Magic Surge --Each creature within 30ft of you becomes invisible for the next minute. The invisibility ends on a creature when it attacks or casts a spell. --1 -- !import-table-item --Wild Magic Surge --You gain resistance to all damage for the next minute. --1 -- !import-table-item --Wild Magic Surge --A random creature within 60ft of you becomes poisoned for &lt;%%91%%&gt;&lt;%%91%%&gt;1d4&lt;%%93%%&gt;&lt;%%93%%&gt; hours. --1 -- !import-table-item --Wild Magic Surge --You glow with bright light in a 30-foot radius for the next minute. Any creature that ends its turn within 5ft of you is blinded until the end of its next turn. --1 -- !import-table-item --Wild Magic Surge --You cast POLYMORPH on yourself. If you fail the saving throw, you turn into a sheep for the spell's duration. --1 -- !import-table-item --Wild Magic Surge --Illusory butterflies and flower petals flutter in the air within 10ft of you for the next minute. --1 -- !import-table-item --Wild Magic Surge --You can take one additional action immediately. --1 -- !import-table-item --Wild Magic Surge --You cast MIRROR IMAGE. --1 -- !import-table-item --Wild Magic Surge --You cast FLY on a random creature within 60ft of you. --1 -- !import-table-item --Wild Magic Surge --You become invisible for the next minute. During that time, other creatures cannot hear you. The invisibility ends if you attack or cast a spell. --1 -- !import-table-item --Wild Magic Surge --If you die within the next minute, you immediately come back to life as if by a REINCARNATE spell. --1 -- !import-table-item --Wild Magic Surge --Your size increases by 1 category for the next minute. --1 -- !import-table-item --Wild Magic Surge --You and all creatures within 30ft of you gain vulnerability to piercing damage for the next minute. --1 -- !import-table-item --Wild Magic Surge --You are surrounded by faint, ethereal music for the next minute. --1 -- !import-table-item --Wild Magic Surge --You regain all expended Sorcery Points! --1 --&nbsp;
1509680900
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If anyone's interested, I have a Google Sheet that parses input for the Aaron's Table Import Script.
keithcurtis said: If anyone's interested, I have a Google Sheet that parses input for the Aaron's Table Import Script. link man :D always like picking up&nbsp; things that could be of use :D&nbsp;
1509731417
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The spreadsheet is to be found here . Make a local copy, duplicate pages as you need more tables and go to town. Just copy the code parsed into the last column and use that with the&nbsp; Aaron's table import script . There are two sheets in it already. One is a list of the trinkets from the Elemental Evil companion, the other is a list of items to be found at random in a giant's bag. Both of these are from publicly available documents released by Wizards of the Coast.
So based on my searches up till now I'm guessing that there is no way to easily copy a table like this without the API. Is that correct?
1510811496
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That is unfortunately correct.