
I've been burning my few last brain cells left trying to make this work, but I'm not even sure it's possible nor if I'm in the right path. My idea is to allow for the user to determine which type of roll will be used through a popup prompt. so far I have these two rolls that work just fine on their own: <button name="roll_spell1" type="roll" value="@{whisper_toggle} &{template:eclipse}{{roll=[[1d100]]}}{{name="test2"}}"> <button name="roll_spell2" type="roll" value="@{whisper_toggle} &{template:eclipse}{{roll=[[4d20]]}}{{name=@{test}}}"> And what I've been trying to do was using the ?{} query to try and nest both of them together. Such as: <button name="roll_spell3" type="roll" value="?{Dice Type | Example 1,@{whisper_toggle} &{template:eclipse}{{roll=[[1d100]]}}{{name=@{test}}} | Example 2,@{whisper_toggle} &{template:eclipse}{{roll=[[4d20]]}}{{name="test2"}} } And according the rules in the wiki, replacing any problematic characters & = &amp and } = &#125;
<button name="roll_spell3" type="roll" value="?{Dice Type | Example 1,@{whisper_toggle} &amp{template:eclipse&#125;{{roll=[[1d100]]&#125;&#125;{{name=@{test}&#125;&#125;|Example 2,@{whisper_toggle} &amp{template:eclipse &#125;
{{roll=[[4d20]]&#125;&#125;{{name="test2"&#125;&#125;}"> But once I try running the code it returns a free-form text field instead of a dropdown filled with: Example 1, 0 &{template:eclipse I feel like I missed something, but I'm not sure what. :/