So right now as I have it set up, this ?{Save? | Fort,@{selected|whispertype} &{template:pc} {{name=^{fortitude}}} {{type=save}} {{showchar=@{selected|rollshowchar}}} {{charname=@{selected|character_name}}} {{roll=[[1d20+@{selected|fortitude}[MOD]+(@{selected|saves_condition})[CONDITION]+@{selected|rollmod_save}[QUERY]]]}} {{shownotes=@{selected|rollnotes_save}}} {{notes=@{selected|fortitude_notes}}} {{conditionsflag=[[@{selected|saves_condition}]]}} {{conditions=@{selected|conditions_display}}} | Ref,@{selected|whispertype} &{template:pc} {{name=^{reflex}}} {{type=save}} {{showchar=@{selected|rollshowchar}}} {{charname=@{selected|character_name}}} {{roll=[[1d20+@{selected|reflex}[MOD]+(@{selected|saves_condition})[CONDITION]+@{selected|rollmod_save}[QUERY]]]}} {{shownotes=@{selected|rollnotes_save}}} {{notes=@{selected|reflex_notes}}} {{conditionsflag=[[@{selected|saves_condition}]]}} {{conditions=@{selected|conditions_display}}} | Will,@{selected|whispertype} &{template:pc} {{name=^{will}}} {{type=save}} {{showchar=@{selected|rollshowchar}}} {{charname=@{selected|character_name}}} {{roll=[[1d20+@{selected|will}[MOD]+(@{selected|saves_condition})[CONDITION]+@{selected|rollmod_save}[QUERY]]]}} {{shownotes=@{selected|rollnotes_save}}} {{notes=@{selected|will_notes}}} {{conditionsflag=[[@{selected|saves_condition}]]}} {{conditions=@{selected|conditions_display}}}}
works as intended, using the appropriate template in chat. It's set in the macro tab as a Token Action for all characters. Except, any time I want to adjust something, it reverts all the html to normal text, which messes up the drop-down function. So I have to copy/paste the html version from a document to the macro each time before editing it. If there's a way to make a script that takes this %{@{selected|character_name}|?{Save|Fort,fortitude|Ref,reflex|Will,will}} and calculates the @attribute, then the query, and applies those values to the %attribute before calculating it, it would save me a lot of time when managing all my universal macros. Similarly, it would be really useful for my players' attack Abilities. Right now, I have drop-downs for players who have multiple attacks so that all of their attacks only take up one button in their Token Actions. Since these are only applied on their character windows, I don't need to use any @{selected} any of the actions and the html doesn't get reverted after saving them, but any changes to the attack function have to be manually edited. Being able to do something like this %{<Character Name>|repeating_attacks_?{Attack|<name>,<$id>|<name>,<$id>|<name>,<$id>}_fullattack} would also save me and my players a lot of time. Do you have any suggestions on where I could look to learn how to write a script that could accomplish that?