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 .
×

Token Action Macro to choose a save from a drop down menu

So, I've managed to make macros to select a token and roll a SPECIFIC save, like so: /w gm @{selected|dexterity_save_roll} I also have a Healing Potion macro to choose which one and roll, like so: &{template:atkdmg} {{desc= ?{Choose a Potion of...|Healing, **Potion of Healing**: [[2d4+2]]|Greater Healing, **Potion of Greater Healing**: [[4d4+4]]|Superior Healing, **Potion of Superior Healing**: [[8d4+8]]|Supreme Healing, **Potion of Supreme Healing**: [[10d4+20]]|Keoghtom's Ointment, **Keoghtom's Ointment**: [[2d8+2]] and cured of poison and any disease} }} However, I am unable to write a macro that lets me select a token, and then choose which save to roll from a drop down menu. I've tried combining the above multiple ways with no luck. Anyone have a solution for this?
1794517090
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Rod! What sheet is this for. If you are using either of the Roll20 official D&D sheets, then the Token Action Maker Mod script can create the dropdown save macro for you. You can also dissect it to see how the dropdown is formed, to use for other macros.
Keith, I see the macro, but it seems to have the numbers built into it. I want one that can be used for a selected token. 
1794521632
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The token actions are built for each token. You can do every token on a page in a few seconds. However, if you need a single action that works with any selected token (Stored as a collections macro, usable by All), then let me see if I can ping Gauss. I believe he has a standalone macro. That being said, I highly recommend the Token Action Maker approach, since it also does checks, initiative, saves, spells, attacks, features, and more.
1794532732

Edited 1794532789
Gauss
Forum Champion
Here you go. note: replace the @{selected|wtype} with /w GM if you'd like. Also note that this assumes the 2014 sheet. I don't believe it would work for the 2024 sheet. @{ selected| wtype}&{template:simple}  @{ selected| rtype}?{Saving Throw|Strength, +@{ selected| Strength_save_bonus}@{ selected| pbd_safe}[STR SAVE]]]}} {{rname=Strength Save}&#125 {{mod=@{ selected| Strength_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Strength_save_bonus}@{ selected| pbd_safe}[STR SAVE]]]|Dexterity, +@{ selected| Dexterity_save_bonus}@{ selected| pbd_safe}[DEX SAVE]]]}} {{rname=Dexterity Save}&#125 {{mod=@{ selected| Dexterity_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Dexterity_save_bonus}@{ selected| pbd_safe}[DEX SAVE]]]|Constitution, +@{ selected| Constitution_save_bonus}@{ selected| pbd_safe}[CON SAVE]]]}} {{rname=Constitution Save}&#125 {{mod=@{ selected| Constitution_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Constitution_save_bonus}@{ selected| pbd_safe}[CON SAVE]]]|Intelligence, +@{ selected| Intelligence_save_bonus}@{ selected| pbd_safe}[INT SAVE]]]}} {{rname=Intelligence Save}&#125 {{mod=@{ selected| Intelligence_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Intelligence_save_bonus}@{ selected| pbd_safe}[INT SAVE]]]|Wisdom, +@{ selected| Wisdom_save_bonus}@{ selected| pbd_safe}[WIS SAVE]]]}} {{rname=Wisdom Save}&#125 {{mod=@{ selected| Wisdom_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Wisdom_save_bonus}@{ selected| pbd_safe}[WIS SAVE]]]|Charisma, +@{ selected| Charisma_save_bonus}@{ selected| pbd_safe}[CHA SAVE]]]}} {{rname=Charisma Save}&#125 {{mod=@{ selected| Charisma_save_bonus}}} {{r1=[[@{ selected| d20}+@{ selected| Charisma_save_bonus}@{ selected| pbd_safe}[CHA SAVE]]]}}} {{global=@{ selected| global_save_mod}}} {{type=Save}} {{typec=Save}} @{ selected| charname_output}
1794532802

Edited 1794532840
You will not be able to make a macro that will call those commands from a query because of the Roll20 Order of Operations.  You can either create a macro that ‘rebuilds’ the saving throw roll by calling attributes (that’s what Gauss provided, and which means it’ll work for any character at any level), or you can create a macro that will put a clickable button in the chat window which will then call those saving throw buttons. But you can’t have a macro that has the saving throw commands in the query. 
Thank you, Gauss. That solved it! I am seeing that is is rolling on the GM layer when the sheet has "To GM" selected, and rolls with ADVTG when that options is selected.