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 .
×
Create a free account

Need assistance with complicated query imbedded macro.

I want my players to be able to click a single macro that will ask them two questions. The first question is what monster type you are harvesting, and the second is which stat are you using to make the check.  I have created 12 macros for this that are all as shown below: Ex1 &{template:default} {{name=Carving}} {{Dragon = [[d20+ @{selected|survival_prof} + ?{which stat|STR, @{selected|strength_mod}|DEX,@{selected|dexterity_mod}} ]] | [[d20+ @{selected|survival_prof} + ?{which stat|STR, @{selected|strength_mod}|DEX,@{selected|dexterity_mod}} ]] }} Ex2 &{template:default} {{name=Carving}} {{Undead = [[d20+ @{selected|medicine_prof} + ?{which stat|STR, @{selected|strength_mod}|DEX,@{selected|dexterity_mod}} ]] | [[d20+ @{selected|medicine_prof} + ?{which stat|STR, @{selected|strength_mod}|DEX,@{selected|dexterity_mod}} ]] }} These macros work how I intend them to, asking me which stat I want applied to the roll. The problem I have is with my 'larger' macro that is being used to determine which of the above macros is activate. Current macro shown below. ?{Select Creature Type|Undead, #undead_carve|Dragon, #dragon_carve} When using this macro it prompts me to select Undead or Dragon as intended but the outcome of the selection is #undead_carve or #dragon_carve rather than activating the original macros and prompting the stat question. Any advice on what I'm doing wrong?
1724441674

Edited 1724441739
Gauss
Forum Champion
Hi Parker,  Even if we got the macro call working it wouldn't work without a lot of extra work due to the command characters inside your macro output. That would require HTML substitution which would be very involved.  Instead, use a Chat Menu (note, I haven't tested it) :  &{template:default} {{name=Select Creature Type}} {{select one= [Undead](`#undead_carve) [Dragon](`#dragon_carve)}} You can add a whisper in front of that to whisper it to the player making the choice. 
That is awesome! I didn't know you could do chat menus like that. It worked for me