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

Gnome Cunning Macro (Saving Throws)

D&D 5e OGL Sheet This macro is used as a token action and functions well (it works both if I've put Always roll advantage, or toggle), but... @{selected|wtype}&{template:simple} @{selected|rtype}+?{Choose Saving Throw|Strength,[[@{selected|strength_save_bonus}+@{selected|pbd_safe}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|strength_save_bonus}]]]]}} {{mod=[[@{selected|strength_save_bonus}]]}}{{rname=STRENGTH SAVE}} {{type=Save}} |Dexterity,[[@{selected|dexterity_save_bonus}+@{selected|pbd_safe}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|dexterity_save_bonus}]]]]}} {{mod=[[@{selected|dexterity_save_bonus}]]}}{{rname=DEXTERITY SAVE}} {{type=Save}} |Constitution,[[@{selected|constitution_save_bonus}+@{selected|pbd_safe}]]]]}}{{r1=[[@{selected|d20}+[[@{selected|constitution_save_bonus}]]]]}} {{mod=[[@{selected|constitution_save_bonus}]]}}{{rname=CONSTITUTION SAVE}} {{type=Save}} |Intelligence,[[@{selected|intelligence_save_bonus}+@{selected|pbd_safe}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|intelligence_save_bonus}]]]]}} {{mod=[[@{selected|intelligence_save_bonus}]]}}{{rname=INTELLIGENCE SAVE}} {{type=Save}} |Wisdom,[[@{selected|wisdom_save_bonus}+@{selected|pbd_safe}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|wisdom_save_bonus}]]]]}} {{mod=[[@{selected|wisdom_save_bonus}]]}}{{rname=WISDOM SAVE}} {{type=Save}} |Charisma,[[@{selected|charisma_save_bonus}+@{selected|pbd_safe}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|charisma_save_bonus}]]]]}} {{mod=[[@{selected|charisma_save_bonus}]]}}{{rname=CHARISMA SAVE}} {{type=Save}}} {{global=@{selected|global_save_mod}}} @{selected|charname_output} The issue is Gnome have the ability Gnome Cunning and always have advantage on saving throws from magic. I want that to be added to the macro. I was thinking about creating a drop-down menu inside the current drop-down. [[ ?{Gnome Cunning|No, 1|Yes, 2}d20kh1 + [[@{selected|intelligence_save_bonus}]] ]] When I insert ” ?{Gnome Cunning|No, 1|Yes, 2 } d20kh1 ” into the {{r1=}} instead of the ” @{selected|d20} ” the drop-down is cosmetically correct but it also now gives the options "No and Yes”. Is there a trick for the drop-down not to add "Yes/No" options since they’re only relevant to the ”d20k1” ?? I have tried using html entities (changing everything into HTML entities but I cannot make it work). TL;DR: I want the macro in the top to ask for ”Gnome Cunning” when I roll Intelligence, Wisdom or Charisma Saving throws, and if I select ’yes’ it shall roll 2d20kh1 (and 1d20 when I select ’no’). Thanks in advance.
1611278686

Edited 1611279710
Jordan C.
Pro
API Scripter
Edited: It sounds like you can change the "rtype" to a query and do {{always=1}} {{r2=[[1d20 as the advantage response for example. I may need to take a deeper look but that's my first instinct. Edit 2: Nevermind - try changing the "@{selected|rtype}" to {{query=1}} {{normal=1 }} {{r2=[[0d20
The problem with changing it to "r1" and "r2" then the macro will not be compatible for players who have "Always Roll Advantage" or "Toggle advantage". It will always only roll normal, where rtype "reads the sheet". - I'll give it a go later!
1611281033

Edited 1611281084
Jordan C.
Pro
API Scripter
I think the part confusing me is you are essentially recreating the "toggle advantage" so it seems reading the sheet wouldn't provide any additional value. For instance if someone had toggle advantage they would then have to answer the question twice if they were a gnome with advantage.
Jordan I cannot get your macro to work. Could you please write it for me, because I have no idea how to input following into the macro. {{query=1}} {{normal=1 }} {{r2=[[0d20
1611417822

Edited 1611428979
Jordan C.
Pro
API Scripter
Sorry for the delay, I had to find some free time to rebuild it and I gave an incorrect solution; my bad! For the macro, I rebuilt it and this is what I came up with @{selected|wtype}&{template:simple} {{r1=[[@{selected|d20}+?{Choose Saving Throw|Strength,@{selected|strength_save_bonus}]]}}{{rname=Strength Save}}{{mod=@{selected|strength_save_bonus}}}|Dexterity,@{selected|dexterity_save_bonus}]]}}{{rname=Dexterity Save}}{{mod=@{selected|dexterity_save_bonus}}}|Intelligence,@{selected|intelligence_save_bonus}]]}}{{rname=Intelligence Save}}{{mod=@{selected|intelligence_save_bonus}}}|Constitution,@{selected|constitution_save_bonus}]]}}{{rname=Constitution Save}}{{mod=@{selected|constitution_save_bonus}}}|Wisdom,@{selected|wisdom_save_bonus}]]}}{{rname=Wisdom Save}}{{mod=@{selected|wisdom_save_bonus}}}|Charisma,@{selected|charisma_save_bonus}]]}}{{rname=Charisma Save}}{{mod=@{selected|charisma_save_bonus}}}} ?{Advantage?|Normal,{{normal=1}} |Advantage,{{advantage=1}}{{r2=[[@{selected|d20}+?{Choose Saving Throw}]]}}|Disadvantage,{{disadvantage=1}}{{r2=[[@{selected|d20}+?{Choose Saving Throw}]]}}} {{global=@{selected|global_save_mod}}}@{selected|charname_output} You can obviously change any questions or styling but I did it this way since someone could have disadvantage and advantage on saving throws and applies to things other than just gnome cunning. If you just want it as gnome cunning option that gives advantage on YES or flat roll on NO you can use this version: @{selected|wtype}&{template:simple} {{r1=[[@{selected|d20}+?{Choose Saving Throw|Strength,@{selected|strength_save_bonus}]]}}{{rname=Strength Save}}{{mod=@{selected|strength_save_bonus}}}|Dexterity,@{selected|dexterity_save_bonus}]]}}{{rname=Dexterity Save}}{{mod=@{selected|dexterity_save_bonus}}}|Intelligence,@{selected|intelligence_save_bonus}]]}}{{rname=Intelligence Save}}{{mod=@{selected|intelligence_save_bonus}}}|Constitution,@{selected|constitution_save_bonus}]]}}{{rname=Constitution Save}}{{mod=@{selected|constitution_save_bonus}}}|Wisdom,@{selected|wisdom_save_bonus}]]}}{{rname=Wisdom Save}}{{mod=@{selected|wisdom_save_bonus}}}|Charisma,@{selected|charisma_save_bonus}]]}}{{rname=Charisma Save}}{{mod=@{selected|charisma_save_bonus}}}} ?{Gnome Cunning?|Yes,{{advantage=1}}{{r2=[[@{selected|d20}+?{Choose Saving Throw}]]}}|No,{{normal=1}}} {{global=@{selected|global_save_mod}}}@{selected|charname_output} Let me know if any issues arise, I didn't test extremely thoroughly. I also took out pbd_safe since its a rare use-case but it can be added back in easily. Also the {{type}} parameter I excluded since I didn't see a difference with it gone. Edit: realizing the caveat of it asking for gnome cunning for all throws, I'll see if I can figure out how to make it only for Wis, Int, and Cha.
1611430947
Jordan C.
Pro
API Scripter
Here's the version where it only prompts on the three abilities for gnome cunning -  @{selected|wtype}&{template:simple} {{r1=[[@{selected|d20}+?{Choose Saving Throw| Strength, @{selected|strength_save_bonus}]]}}{{rname=STRENGTH SAVE}}{{mod=@{selected|strength_save_bonus}}} {{normal=1}}| Dexterity, @{selected|dexterity_save_bonus}]]}}{{rname=DEXTERITY SAVE}}{{mod=@{selected|dexterity_save_bonus}}} {{normal=1}}| Constitution, @{selected|constitution_save_bonus}]]}}{{rname=CONSTITUTION SAVE}}{{mod=@{selected|constitution_save_bonus}}} {{normal=1}}| Intelligence,?{Gnome Cunning?|Yes, @{selected|intelligence_save_bonus}]]}}{{rname=intelligence Save}}{{mod=@{selected|intelligence_save_bonus}}}{{r2=[[@{selected|d20}+@{selected|intelligence_save_bonus}]]}}{{advantage=1}} |No, @{selected|intelligence_save_bonus}]]}}{{rname=INTELLIGENCE SAVE}}{{mod=@{selected|intelligence_save_bonus}}}{{normal=1}} }| Wisdom,?{Gnome Cunning?|Yes, @{selected|wisdom_save_bonus}]]}}{{rname=Wisdom Save}}{{mod=@{selected|wisdom_save_bonus}}}{{r2=[[@{selected|d20}+@{selected|wisdom_save_bonus}]]}}{{advantage=1}} |No, @{selected|wisdom_save_bonus}]]}}{{rname=Wisdom Save}}{{mod=@{selected|wisdom_save_bonus}}}{{normal=1}} }| Charisma,?{Gnome Cunning?|Yes, @{selected|charisma_save_bonus}]]}}{{rname=charisma Save}}{{mod=@{selected|charisma_save_bonus}}}{{r2=[[@{selected|d20}+@{selected|charisma_save_bonus}]]}}{{advantage=1}} |No, @{selected|charisma_save_bonus}]]}}{{rname=CHARISMA SAVE}}{{mod=@{selected|charisma_save_bonus}}}{{normal=1}} } } {{global=@{selected|global_save_mod}}} @{charname_output}
Thank you so much Jordan! I appreciate your time. I will look into the macros another day, I have a lot of work these days.