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

Homebrew Wild Magic Surge question

1743029611

Edited 1743029859
Howdy, I have a player who wants the WMS to happen more often.  To this end I came up with a formula that makes sense to both of us in that WMS's won't be happening all the time (this player enjoys chaos a liiiitle too much but I don't want to be a dampener of mood soooo) but will happen a lot more often than 1 in 20 times. Basic Formula: A Wild magic Surge will happen if a player rolls EQUAL TO OR UNDER Spell level + Total Number of Spells Cast/Rest (Short or Long) So if you cast a 3rd level Magic Missile (3) and it's the 7th spell you've cast that session prior to resting (7) the Surge triggers on 10 or lower. To achieve this in-game I created this Macro:  /r d20 > ?{Cast at what level?|1|2|3|4|5|6|7|8|9} + [[?{Number of Spells Cast?}]] Which gives us a number to see if the roll beats in one nice little chat box.  Then the player has Macro as a Token Action that calls a Rollable table that rolls the various Surge effects, should they trigger.  Some questions I have about this are: -Is there a way to hide the math? -Why is the second number yellow?  -Is there a way to have the first Macro trigger the second Macro which would then auto-query the rollable table?  I use API's so I can script it out and not rely on macro's but would rather find something that doesn't rely on the Sandbox. Thanks!
Also, for some reason, when I create it as a Token Action it breaks but when I roll it from ether Collections or the linked macro (prior to checking the box that it's done) it works great...
Regarding the second issue, what character sheet are you using? Beacon sheets have issues with saved abilities. Anyway, the output of your rollable table is text, yes? Then try this: &{template:default} {{name=Wild Magic Surge [ ](#" hidden null=) }} {{[0](#" hidden)= }} {{[1](#" hidden)=No surge }} {{[[[1d20<[[?{Cast at what level?|1|2|3|4|5|6|7|8|9}+?{Number of Spells Cast?}]] ]]](#" hidden)= [[1t[your table here]]] }} {{[0](#" hidden)=[ ](#" hidden null=) }} This, assuming your table is valid, will show you the result of the table if the d20 roll is equal or under the combined spell level and the number of spells cast, and if the roll is higher, it'll show the "No surge" text.
Oh sweet, thanks I'll give this a try.  DnD 5e OGL sheet, fwiw. Thanks again!