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

Multiple choice query for attacks

1449197073

Edited 1449197133
I'm fairly new to Roll20. We're setting up a Pathfinder game and have started to fill character sheets, and I also started dabbling with macros to add to the quick bar. Using the example I found in the Pathfinder-specific wiki page, I made single macros that prompt for the choice of which skill checks to roll, and same for saving throws. They work fine, but I can't seem to set up similar macros for attacks Here is the code for saving throw macro: &{template:pf_generic} {{character_name=@{selected|character_name}}} {{name=Saves}} {{?{Saves| Fort, Fort= [[ 1d20+ [[ @{selected|fort} ]] ]] | Ref, Ref= [[ 1d20+ [[ @{selected|ref} ]] ]] | Will, Will= [[ 1d20+ [[ @{selected|will} ]] ]]}}} Now, to do the same for the attacks entered in the character sheet, I tried using: &{template:pf_generic} {{character_name=@{selected|character_name}}} {{name=Attacks}} {{?{Attacks| Atk0, Atk0 = [[ @{selected|repeating_weapon_0_Attack} ]] | Atk1, Atk1 = [[ @{selected|repeating_weapon_1_Attack} ]]}}} But that kind of syntax doesn't work. What should I use? Optional: instead of adding every single attack to the macro, isn't there a way to take the full list of attacks automatically, with their names displayed in the prompt?
1449205096

Edited 1449205132
vÍnce
Pro
Sheet Author
You currently can't use repeating section macro names inside other macros or drag and drop their buttons to the quick bar.  With the next Roll20 update, that will change.  Currently on the Dev server the update is being tested and the sheets are also being adjusted to compliment the new improvements to repeating section attributes, sheet worker js, and more.  Very cool stuff.
Alright, thanks for the reply, looking forward to that.