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

Dropdown Macro and roll template help

January 23 (1 year ago)

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

January 23 (1 year ago)

Edited January 23 (1 year ago)
Maïlare
Pro
Sheet Author
API Scripter

Hello, when I used a lot of macros in the same macros, I have discovered on this forum a good technique. It consist to create a character sheet with the macros save in attributes and abilities, and call this macros in a general macros with a chat menu. See the picture in the link to see how to make this.


https://www.dropbox.com/scl/fi/7iz65lxenhzrnrtfocjqw/example_macro_menu2.png?rlkey=0oy49nf3llwnz2f7gredutcta&dl=0