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

Issues with the &{noerror}

The &{noerror} isn't working for me in the following spellbook macro. I am not sure what I am doing wrong.  Any suggestions would be appreciated. &{template:npcaction}{{rname=@{selected|character_name}}}{{description=**Caster Level: @{selected|caster_level}** **Spell Save DC: @{selected|spell_save_dc}** **Spell Attack Bonus: [[@{selected|spellcasting_ability}@{selected|pb}]]** **Cantrips**  Unlimited Uses [@{selected|repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) [@{selected|repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-cantrip_$1_spell) [@{selected|repeating_spell-cantrip_$2_spellname}](~selected|repeating_spell-cantrip_$2_spell) **Level 1** Total (@{selected|lvl1_slots_total}) *Left (@{selected|lvl1_slots_expended})* [@{selected|repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) [@{selected|repeating_spell-1_$1_spellname}](~selected|repeating_spell-1_$1_spell) [@{selected|repeating_spell-1_$2_spellname}](~selected|repeating_spell-1_$2_spell) [@{selected|repeating_spell-1_$3_spellname}](~selected|repeating_spell-1_$3_spell) [@{selected|repeating_spell-1_$4_spellname}](~selected|repeating_spell-1_$4_spell) [@{selected|repeating_spell-1_$5_spellname}](~selected|repeating_spell-1_$5_spell) [@{selected|repeating_spell-1_$6_spellname}](~selected|repeating_spell-1_$6_spell) }} &{noerror}
1668788569

Edited 1668788595
Gauss
Forum Champion
&{noerror} will not work on the first macro, call the first macro from a second macro and have &{noerror} on the second macro. 
1668790997
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
All that &{noerror} does is suppress error messages outside the results of the roll template. It does not suppress the display of missing fields within the template. You can learn how to suppress empty fields by looking at this thread (or just adopting the pre-built macros there.)
keithcurtis said: All that &{noerror} does is suppress error messages outside the results of the roll template. It does not suppress the display of missing fields within the template. You can learn how to suppress empty fields by looking at this thread (or just adopting the pre-built macros there.) I also have also an updated version of the Universal Macro Mule . The explanation of &{noerror} is here .  Caveat: to use these in a macro, you have to call them from a second macro because the &{noerror} doesn't work from a single macro call directly.  The 'Abilities' macro is used to call the 'AbilitiesMacro' macro, which makes the &{noerror} work.  If you try to use the 'AbilitiesMacro' directly, the &{noerror} doesn't work for some reason, even though &{noerror} is included there.  I don't know why.
1668794141
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Jarren said: keithcurtis said: All that &{noerror} does is suppress error messages outside the results of the roll template. It does not suppress the display of missing fields within the template. You can learn how to suppress empty fields by looking at this thread (or just adopting the pre-built macros there.) I also have also an updated version of the Universal Macro Mule . Thanks. I'll make sure to link to your newer thread.
Thank you both for taking the time to respond to my question.  Applying my macro as noted above worked well and solved my problem-thanks!  I downloaded the macro mule (mm) and it is pretty darn cool..I think I will transition to that.  I have been playing with mm and for some reason the spell book displays spell links at 1st level and above in a grayed on white, which is difficult to read. I chnaged the default color from purple to black and that didn't seem to solve the display issue - what am I missing?
And I just figured out why the spells are showing gray on white. No response needed - thanks again for your assistance!