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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Nesting Abilities

Hi, I'm looking for a macro/ability that is able to make a saving throw, based on a input from the player (drop-down list). I'm trying a nested ability approach, to use need just one input window to show up. That's my "caller" ability: &{template:simple} ?{Atributo|Strength,%{selected|str-save}|Dexterity,%{selected|dex-save}| and go on...}{{charname=@{selected|char_name}}} Then i have an ability for each attribute: {{rname=Saving Throw}}{{mod=Strength}}{{r1=[[1d20+@{selected|strength_save_bonus}]]}}{{always=1}}{{r2=[[1d20+@{selected|strength_save_bonus}]]}} *Obs: I used the HTML entities listed on "Advanced Usage of Roll Queries". But I keep receiving this error message: 'No character was found for 'selected|strength_save_bonus}]]}}{{always=1}}{{r2=[[1d20+@{selected|strength_save_bonus}]]}}' Do you guys know how to solve it? Thanks!
1517324099

Edited 1517324122
A good thing to know is that the Input Window shows up, despite the error, and the roll happens, but without the modifiers...
1517324130
DK Heinrich
Marketplace Creator
Sheet Author
do you have a token (with strength_save_bonus) selected when you click the macro? 
DK Heinrich said: do you have a token (with strength_save_bonus) selected when you click the macro?  Yes! This macros/abilities are token actions...
Can you put in the exact code used in the strength-save ability? To prevent the forum from eating the HTML encoded values replace the & with & My guess is that you are incorrectly encoding the } at the end of @{selected|strength_save_bonus} since attribute calls are exempt from needing to be encoded
I didn't manage to prevent the forum from replacing the entities, so:
Yup, my guess was correct. Replace @{selected|dexterity_save_bonus} with @{selected|dexterity_save_bonus} Attributes and ability calls  are exempt from needing to be HTML encoded.
Hi Lucas, could you possibly be looking for something like this? It is a token action that functions with a drop down menu for all the saving throws and then rolls a selected saving throw twice for adv/disadv. NPC: /w gm &{template:simple} {{mod=?{Save|Strength, [[@{selected|npc_str_save_base}]] (Strength) |Dexterity, [[@{selected|npc_dex_save_base}]] (Dexterity) |Constitution, [[@{selected|npc_con_save_base}]] (Constitution) |Intelligence , [[@{selected|npc_int_save_base}]] (Intelligence) |Wisdom, [[@{selected|npc_wis_save_base}]] (Wisdom) |Charisma, [[@{selected|npc_cha_save_base}]] (Charisma) } }} {{rname=Saving Throw}} {{r1=[[1d20+?{Save}]]}} @{selected|rtype} +?{Save} ]]}} Player: &{template:simple} {{mod=?{Save|Strength, [[@{selected|strength_save_bonus}]] (Strength) |Dexterity, [[@{selected|dexterity_save_bonus}]] (Dexterity) |Constitution, [[@{selected|constitution_save_bonus}]] (Constitution) |Intelligence , [[@{selected|intelligence_save_bonus}]] (Intelligence) |Wisdom, [[@{selected|wisdom_save_bonus}]] (Wisdom) |Charisma, [[@{selected|charisma_save_bonus}]] (Charisma) } }} {{rname=Saving Throw}} {{r1=[[1d20+?{Save}]]}} @{selected|rtype} +?{Save} ]]}}