Hi Keith! Thank you very much for your reply, much appreciated, I was able to adjust the scriptlet you linked to get the correct result for me which is a straight d20 roll with every leveled spell. Pasted below in case anyone in future comes looking for such a script. on("chat:message", function(msg) { if (msg.type !== "api") { const sorcerers = ["INSERT SORCERERS NAME HERE"]; if ( msg.content.match(/dnd-2024/g) && sorcerers.some(name => msg.content.includes(name)) && msg.content.match(/Level [1-9]/g) ) { sendChat( "Wild Magic", "&{template:default} {{name=Wild Magic Check}}{{Roll=[[1d20]]}}" ); } } });