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 .
×

Setting up a table with rolled spells as results?

1649781879

Edited 1649783984
TL :DR,  mouthing off to a dragon gets you a hindering item, to teach you a lesson, Mechanically speaking, is it possible to set up a rollable table, that will output a spell with caster's stats as a result?  Say I wanted whenever an evocation spell was cast, it would roll on a table to determine first if the spell would cast sucessfully, or if on a "failure" the spell would be replaced by a different spell from the same school/Spellslot level. Is it possible, if say guiding bolt was set as one of the entries, for it to roll an attack with guiding bolt using the players Spell casting stats automagically, or would the closest i could come be to give me a result then have the player cast that spell "Manually" If it is, is it possible to have it querry what school and slot level it was to determine what table to roll from?
1649783745

Edited 1649784118
(the TL;DR doesn't seem to link anywhere, if it was meant to) Apologies, this isn't an answer per se, but I am super intrigued by this so this is me adding my +1 Interest to this question! If it were me, I'm not sure it would even occur to me to try and automate this through Roll20's functionalities, but I'd be fascinated to know if it's possible and if so, how! A couple clarifying questions, with another apology if this was covered in what the TL;DR was to link to... Does this system you have in mind account for upcasting in any way? If a caster bearing this unfortunate requirement tried to cast a Spell-Level-3 Guiding Bolt, but the bolt came out as a different spell, could the actual spell be an upcast-to-3 1st-level Evocation spell, or a 3rd-level evocation spell? What about a 2nd-level Evocation spell upcast to 3? Also, how important is it to you that this be a one-click or two-click machine? The stickiest part to me seems to be setting up the interface with the character's sheet so the spell is cast using all the appropriate modifiers, etc. (The evillest/awesomest thing about this is that schools ≠ intent of effect, so imagine casting a Level-5 Guiding Bolt only to have it come out as a Level-5 Healing Word... heh heh heh)
I dunno if its possible for you specifically but I do just this with my rollable tables but all of the commands to call it use recursive tables API, so I dunno if you need that API to do it or not.  I just always use !rt for my table calls to be on the safe side.  
@Ellie. No, it is stictly for spells of a school with the same slot requirement. However, an upcast spell will be treated as the level of spell it is cast at. So a third level healing word, will be treated as a third level spell, not a first level upcast to three. @Dm Eddie. Recursive was actually what got me started on this train of thought =D I just got into it today, and have given myself so much "DM'S Monkey" work because of it....