Hello! I'm trying to do something that might be just 'trying too hard' but I would love some input on whether or not this is possible. I'm on a Plus account currently. I'm in the process of making a bunch of macros for my players that use the DnD 5e templates, mostly because I really like the look of those templates. On attack rolls, I'm a big fan how the Weapon Name {{rname}} uses an ability call to roll damage if desired. (for example: @{wtype} &{template:atk} {{mod=+@{dexterity_mod}}} {{rname=[Shortbow](~Chuck Terry|repeating_attack_$1_attack_dmg)}}
{{rnamec=[Shortbow](~Chuck Terry|repeating_attack_$1_attack_crit)}}
{{r1=[[@{d20}cs>20 + @{pb}[PROF] + @{dexterity_mod}[DEX] ]] }}
@{rtype}cs>20 + @{pb}[PROF] + @{dexterity_mod}[DEX] ]] }}
{{range=80/320}} {{charname=@{character_name}}} ...will display the attack roll and the attack's name, 'Shortbow' in the chat. At that point, you can click on the name of the attack in the chat, "Shortbow" in this case, and r20 will execute that attack's damage stats, as defined in the Character's sheet in the 'Attacks and Spellcasting' section. I want to add a query for Sneak Attack Damage, or maybe I just want to add a query where I can slightly modify the damage roll. I know I can put sneak attack damage (or just another kind of damage) in the 'damage2' field of the actual weapon, and then just have both values displayed when the ability is called in-chat, but I would like a query, and on success, be able to pull the number from the ability roll, and work with it, displaying a single number when done. Not unlike using a function as an argument within a second function. It looks like using the in-chat sheet-ability calls is fairly standalone, without a way to add-to or modify the call. Is it possible to make an ability that uses the 'actual' ability damage roll as a variable, and call that in the chat instead? Lastly, before we talk about doing it as a chat-API: The buttons that result from that are by default giant and magenta, and totally breaks the look of the template. So sub-question-the-second would be, 'if it's not possible to work with the rolls/attributes in repeating_attacks, can I modify the chat-API so it fits with the theme's visuals? Thanks so much in advance for help with my nitpicky question!