FG Spreadshirt Swag
Page 1 of 6 123 ... Last
  1. #1

    Automatic Wild Magic Surge Extension

    Forge Page:
    https://forge.fantasygrounds.com/shop/items/740/view

    Description:
    This D&D 5E extension allows you to easily roll a Wild Magic check when using a spell by clicking or dragging the "spell cast" button next to a spell on the actions tab of your character sheet.
    It will only work for spells of 1st level or higher (customizable) and only when you have the Wild Magic Surge feature on your character sheet.



    It will roll a d20 and if the result is a 1 then it will automatically roll on the Wild Magic Surge table (PHB required).



    The functionality is totally customizable from in-game. By changing certain parts of the Wild Magic Surge feature's description on the abilities tab of your character sheet you can change what table it rolls on, what level spell triggers a check, what number or threshold needs to be rolled on the check, and what die or dice are rolled for the check.



    Here is what can be customized in the feature's text (presented in usage statement syntax):
    Code:
    Once per turn, the DM can have you roll [a | an] <ROLL> immediately after you cast <a | an> [sorcerer | SCHOOL] <cantrip | spell of #[st|nd|rd|th] level> [or higher | or lower]. If you roll <a | an> # [or higher | or lower], roll on the <TABLE NAME> table to create a magical effect.
    or, for a saving throw rather than a roll:
    Code:
    Once per turn, at the DM's discretion, you must make a DC # <ABILITY> saving throw immediately after you cast <a | an> [sorcerer | SCHOOL] <cantrip | spell of #[st|nd|rd|th] level> [or higher | or lower]. On a failure, roll on the <TABLE NAME> table to create a magical effect.
    and for more complicated DC calculations:
    Code:
    Once per turn, at the DM's discretion, you must make <a | an> <ABILITY> saving throw immediately after you cast <a | an> [sorcerer | SCHOOL] <cantrip | spell of #[st|nd|rd|th] level> [or higher | or lower]. The DC [for this [save | saving throw]] equals # [+|-] [[twice | half] the spell's level | your <ABILITY> modifier]. On a failure, roll on the <TABLE NAME> table to create a magical effect.

    "[ ]" are optional terms, "< >" are required terms, choices are separated by a pipe " | ".
    "#" in this case represents any number.
    "SCHOOL" can be up to 8 comma-separated schools of magic (i.e. "transmutation, illusion, or necromancy" or just "evocation").
    "ROLL" can be up to 3 different dice or values added or subtracted from each other (i.e. "2d6+2-1d4").
    "ABILITY" must be the full name of an ability score (i.e. "Dexterity").
    "TABLE NAME" is the name of the table you wish to roll on upon successfully triggering a surge. The table name is case-sensitive and must be loaded by the client that is casting the spell. (i.e. "Scroll Mishap")

    Here are some example customizations of the feature that are correctly parsed.
    They can be prefaced however you'd like ("Once per turn, at the DM's discretion, you...", "Whenever you...", etc) and the order of the sentences don't matter:
    ... roll a d20 immediately after you cast an evocation spell of 1st level or higher. If you roll a 1, roll on the Wild Magic Surge table to create a magical effect.
    ... When you cast a cantrip, roll 7d8. If you roll a 50 or higher, roll on the Drunk Effect table to create a magical effect.
    ... roll a d6 after casting a spell of 9th level. If you roll a 3 or lower, roll on the Wizard Spells table to create a magical effect.
    ... roll 1d4+1d8+6 after casting an illusion or necromancy spell of 3rd level or lower. If you roll an 8, roll on the Teleport Mishap table to create a magical effect.
    ... must make a DC 15 Constitution saving throw after casting a spell of 1st level or higher. On a failure, roll on the Teleport Mishap table to create a magical effect.
    ... must make a Dexterity saving throw after casting a spell of 2nd level or higher. The DC equals 10 + half the spell's level. On a failure, roll on the Teleport Mishap table to create a magical effect.
    You can have multiple Wild Magic Surge features on your character sheet with different descriptions (like spell levels, save DCs, spell schools, tables) and each one will be evaluated whenever a spell matching its description is cast.


    As of version 1.4.0 you can also specify the spell's level as the roll trigger or save DC:
    ... If you roll the spell's level, roll on the Wild Magic Surge table to create a magical effect.
    ... If you roll the spell's level or lower, roll on the Wild Magic Surge table to create a magical effect.
    ... If you roll higher than the spell's level, roll on the Wild Magic Surge table to create a magical effect.
    ... The DC equals the spell's level.
    ... The DC equals twice the spell's level.
    ... The DC equals half the spell's level.


    Here is a short video showcasing the feature:
    https://i.imgur.com/DF6lCEl.mp4

    Limitations:
    This currently does not work for limited-use (checkbox) spells. It would be trivial to add this functionality, but it would require creating a copy of the entire power_counter.lua script just to add a single line of code to it, which would mean this extension would likely conflict with any future update to the 5E ruleset that changes the power_counter.lua script.

    Compatibility:
    This extension does not overwrite any base functionality, which means it should be future-proof and compatible with any other extension (unless something modifies the icon_usepower template <script> tag).

    Changelog:
    - Updated to v1.4.1
    - Fixed prof bonus not being applied to saves.
    - Updated to v1.4.0
    - Can now specify the spell's level as the wild magic surge roll's trigger.
    - Updated to v1.3.4
    - Feature name now only needs to start with the phrase "wild magic surge" and can have other text after it.
    - Updated to v1.3.3
    - Fixed issue causing first level spells to be considered cantrips. Added compatibility with Combat Automation extension.
    - Updated to v1.3.2
    - Added support for multiple Wild Magic Surge features on the same character.
    - Updated to v1.3.1
    - Fixed issue with ability modifier not being applied to Wild Magic Surge saving throw.
    - Updated to v1.3
    - Added ability to specify schools of magic to trigger Wild Magic Surge checks.
    - Updated to v1.2.1
    - Added support for 5E ruleset update 2023-02.
    - Updated to v1.2
    - Added support for saving throws in place of Wild Magic Surge checks.
    Attached Files Attached Files
    Last edited by GEONE; June 4th, 2023 at 12:19. Reason: Updated to 1.4.1

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,242
    Blog Entries
    9
    Well done! You might wish to consider getting setup with a Forge account so that if/when you have updates users will get them along with all the other updates. If you need more info: https://www.fantasygrounds.com/forum...Forge-Overview

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    Quote Originally Posted by LordEntrails View Post
    Well done! You might wish to consider getting setup with a Forge account so that if/when you have updates users will get them along with all the other updates.
    Thanks, I'll put it on the forge when I'm a Crafter!

  4. #4
    Hey mods, I'm new to this whole extension-sharing thing. Can I get this thread moved to Armory > Extensions please?
    and also delete the duplicate thread I made over there.

    Can you also move my other extension over there too. I wasn't aware the Armory was the correct place to share finished extensions.
    https://www.fantasygrounds.com/forum...-NPC-Variables

    Thank you
    Last edited by GEONE; August 11th, 2022 at 17:39.

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Quote Originally Posted by GEONE View Post
    Hey mods, I'm new to this whole extension-sharing thing. Can I get this thread moved to Armory > Extensions please?
    and also delete the duplicate thread I made over there.

    Can you also move my other extension over there too. I wasn't aware the Armory was the correct place to share finished extensions.
    https://www.fantasygrounds.com/forum...-NPC-Variables

    Thank you
    Done. Thanks for sharing your extensions with the community!
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6

  7. #7
    Hi,

    it is possible to have a DC check also like : Save Con DC10 + level of spell?

    regards

  8. #8
    Quote Originally Posted by plap3014 View Post
    Hi,

    it is possible to have a DC check also like : Save Con DC10 + level of spell?

    regards
    I just updated it so you can do that now.
    Something along the lines of this should do the trick:
    Once per turn, at the DM's discretion, you must make a Constitution saving throw immediately after you cast a spell of 1st level or higher. The DC equals 10 + the spell's level. On a failure, roll on the Wild Magic Surge table to create a magical effect.
    It can be further customized. The ability score can be changed to whatever you like. And it also supports "half the spell's level", "twice the spell's level", "your <Ability> modifier", and optionally subtracting them instead of adding them too.

    If you want a static DC, it can do that too:
    ... after casting a spell of 1st level or higher, you must make a DC 15 Constitution saving throw. On a failure, roll on the Wild Magic Surge table to create a magical effect.
    Last edited by GEONE; August 12th, 2022 at 02:12.

  9. #9

  10. #10
    Cool extension. I was just messing around with it and the Wild Magic Surge table doesn't trigger if using "Manual" dice rolls.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in