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 .
×

Repeating Rows Issue: "No character was found for '{selected'"

1776937944

Edited 1776938205
I'm getting along with figuring how to write a macro for repeating rows, in this case, the repeating_weapon_$0_weapon_attack_roll. However, I'm getting the following error and am not sure what is causing it. Here's a screen shot: The two errors occur after I press one of the weapon buttons, it does not matter which one. They appear at the same time or just before the To Hit Modifier Screen. They do not hold anything up, and afterwards the routine executes as expected as shown. And here is my macro. Note, I will eventually transfer this to an API script with a loop so that I can capture all weapons used by the selected token, but I'd like to get past this issue: &{template:default} {{name=@{selected|character_name}}} {{Attacks= [@{selected|repeating_weapon_$0_weapon_name}](~{selected|repeating_weapon_$0_weapon_attack_roll}) [@{selected|repeating_weapon_$1_weapon_name}](~{selected|repeating_weapon_$1_weapon_attack_roll}) [@{selected|repeating_weapon_$2_weapon_name}](~{selected|repeating_weapon_$2_weapon_attack_roll}) }} &{noerror} Note that when I remove &{noerror}, the error messages stay the same. Thank you for any pointers.
1777008960

Edited 1777095653
vÍnce
Pro
Sheet Author
This shouldn't/wouldn't be a sheet problem per se.&nbsp; Looks like a macro syntax problem.&nbsp;&nbsp; Try this Tim; &amp;{template:default} {{name=@{selected|character_name}}} {{Attacks= [@{selected|repeating_weapon_$0_weapon_name}](~selected|repeating_weapon_$0_weapon_attack_roll) [@{selected|repeating_weapon_$1_weapon_name}](~selected|repeating_weapon_$1_weapon_attack_roll) [@{selected|repeating_weapon_$2_weapon_name}](~selected|repeating_weapon_$2_weapon_attack_roll) }} &amp;{noerror} I removed the curly brackets from the attack roll names. <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a>
1777264240

Edited 1777264664
vÍnce said: This shouldn't/wouldn't be a sheet problem per se.&nbsp; Looks like a macro syntax problem.&nbsp;&nbsp; Try this Tim; &amp;{template:default} {{name=@{selected|character_name}}} {{Attacks= [@{selected|repeating_weapon_$0_weapon_name}](~selected|repeating_weapon_$0_weapon_attack_roll) [@{selected|repeating_weapon_$1_weapon_name}](~selected|repeating_weapon_$1_weapon_attack_roll) [@{selected|repeating_weapon_$2_weapon_name}](~selected|repeating_weapon_$2_weapon_attack_roll) }} &amp;{noerror} I removed the curly brackets from the attack roll names. <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> Thank you, Vince.&nbsp; I had other things I needed to address (see my other flurry of posts here and elsewhere) before I got back to this. Holy crap, I must have been half asleep to leave those curly brackets on, good grief. I will try this. :)