
Hi there, i'm new to working with macros and such and i'm running into an issue with drop down menus, our group is running a game of the Konosuba TTRP and that has present some intresting issues mostly it has a lot of stacking things you can add to attacks for example, up unitll this point i had been doing rolls in a fairly adhock way using charecter sheet abilities and then basically having them print a line of text with the math explaining what's happening, an expample shown below
/em @{selected|token_name} Casts Heal Restoring [[3d6+[[(@{selected|Character-Level}*3))]]]] Health to @{target|character_name}. /fx bomb-slime @{target|token_id} /fx bubbling-slime @{target|token_id}
however there is a problem with as i said with the stacking you end up with a pile of diffrent permutations of attakcs and end up this as an example
?{Attack type| Normal Attack,/em @{selected|token_name} Deals [[3d6+[[@{selected|Attack-Power}+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]]-@{target|Physical-Defence}]] Physical Damage (A) to @{target|character_name}. | Weapon Rune Attack,/em @{selected|token_name} Deals [[[[(@{selected|Magical-Enhancement}+3)]]d6+[[@{selected|Attack-Power}+(@{selected|Weapon-Rune}*2)+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]]-@{target|Magic-Defence}]] Magic Damage (A) to @{target|character_name}. | Weapon Rune Attack+Follow up,/em @{selected|token_name} Deals [[[[(@{selected|Magical-Enhancement}+3)]]d6+[[@{selected|Attack-Power}+(@{selected|Weapon-Rune}*2)+(@{selected|Follow-Up}*2)+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]])-@{target|Magic-Defence}]] Magic Damage (A) to @{target|character_name}| Weapon Rune Attack+Greater Gem,/em @{selected|token_name} Deals [[[[(@{selected|Magical-Enhancement}+4)]]d6+[[@{selected|Attack-Power}+(@{selected|Weapon-Rune}*2)+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]]-@{target|Magic-Defence}]] Magic Damage (A) to @{target|character_name}. | Weapon Rune Attack+Follow up+Greater Gem,/em @{selected|token_name} Deals [[[[(@{selected|Magical-Enhancement}+4)]]d6+[[@{selected|Attack-Power}+(@{selected|Weapon-Rune}*2)+(@{selected|Follow-Up}*2)+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]]-@{target|Magic-Defence}]] Magic Damage (A) to @{target|character_name}. }
while somewhat janky this has worked for the most part, however i wanted to conver this to a roll template so that it would look nicer and initially example below
/em &{template:default} {{name=Weapon Rune Attack+Follow up+Greater Gem}}{{Hit Check=[[4d6+[[@{selected|Hit-Mod}+@{selected|Dexterity}]]]]}}{{Attack=[[[[(@{selected|Magical-Enhancement}+4)]]d6+[[@{selected|Attack-Power}+(@{selected|Weapon-Rune}*2)+(@{selected|Follow-Up}*2)+(@{selected|Attack-Enhancement}*4)+(@{selected|Character-Level}*@{selected|SV-Cheats})]]]] ``Magic``}}{{Mana Cost=[[3]]}}{{Target=@{target|character_name}}} /fx missile-blood @{target|token_id} /fx burn-magic @{target|token_id}`
i tried just substatuting it in the list as is after the comma of the attack name, that didnt work so i then went to try calling them like this instead because this is currently how i'm calling spells
?{Select spell| Normal Attack,%{selected|2)-Normal-Attack}| Weapon Rune Attack,%{selected|2)-Weapon-Rune-Attack}| Weapon Rune Attack+Follow up,%{selected|2)-Weapon-Rune-Attack+Follow-up}| Weapon Rune Attack+Greater Gem,%{selected|2)-Weapon-Rune-Attack+Greater-Gem}| Weapon Rune Attack+Follow up+Greater Gem,%{selected|2)-Weapon-Rune-Attack+Follow-up+Greater-Gem} }i set up an ability on the sheet with each permutation but this dosent seem to work either so some advice would be very apprecaited