
This is just a really quick scriptlet useful for campaigns using the D&D 5e (2024) Sheet (Beacon), and which feature a Wild Magic Sorcerer To use this script in your campaign, modify the constand "sorcerers to a comma-separated, quoted list of wild magic sorcerer character names . Three samples are shown. You will also need a rollable table of effects. This one is named " WildMagic2024", but if you already have such a table, just match the name. on("chat:message", function(msg) { if (msg.type !== "api") { const sorcerers = ["Emirikol the Chaotic", "Presto", "Rincewind"]; if (msg.content.match(/dnd-2024/g) && sorcerers.some(name => msg.content.includes(name)) && msg.content.match(/Level [1-9]/g)) { sendChat("Wild Magic", "/w gm &{template:default} {{name=Wild Magic Surge}}{{ =[[1t[WildMagic2024]]]}}"); } } }); Whenever the wild magic sorcerer casts a leveled spell, the result will be whispered to the GM. It's up to the rules on whether or not it is needed, but it's available if so.