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

NPC Statblock Chat Menu for D&D 5e sheet — No API required! (Part 3)

<a href="https://app.roll20.net/forum/post/9183695/npc-statblock-chat-menu-for-d-and-d-5e-sheet-no-api-required-part-2#newtopic" rel="nofollow">https://app.roll20.net/forum/post/9183695/npc-statblock-chat-menu-for-d-and-d-5e-sheet-no-api-required-part-2#newtopic</a> Continuing the discussion from the thread above. Can the stat block be modified from its current form to also output any traits of the selected NPC? For example, a Deep Gnome's Stone Camouflage?
Also - Is this the correct code for spell levels 1 to 9 in the spell block output?&nbsp; Seems like it works for me on test! /w gm &amp;{template:npcaction}&amp;{noerror}{{rname=@{selected|character_name}}}{{name=@{selected|npc_type}}}{{description=**Caster Level: @{selected|caster_level}** **Spell Save DC: @{selected|spell_save_dc}** **Spellcasteing Ability Mod: [[@{selected|spellcasting_ability}@{selected|pb}]]** **Level 1** [@{selected|repeating_spell-1_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$0_spellprepared}prep|repeating_spell-1_$0_spell) [@{selected|repeating_spell-1_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$1_spellprepared}prep|repeating_spell-1_$1_spell) [@{selected|repeating_spell-1_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$2_spellprepared}prep|repeating_spell-1_$2_spell) [@{selected|repeating_spell-1_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$3_spellprepared}prep|repeating_spell-1_$3_spell) [@{selected|repeating_spell-1_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$4_spellprepared}prep|repeating_spell-1_$4_spell) [@{selected|repeating_spell-1_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$5_spellprepared}prep|repeating_spell-1_$5_spell) [@{selected|repeating_spell-1_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$6_spellprepared}prep|repeating_spell-1_$6_spell) [@{selected|repeating_spell-1_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$7_spellprepared}prep|repeating_spell-1_$7_spell) [@{selected|repeating_spell-1_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$8_spellprepared}prep|repeating_spell-1_$8_spell) [@{selected|repeating_spell-1_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-1_$9_spellprepared}prep|repeating_spell-1_$9_spell) **Level 2** [@{selected|repeating_spell-2_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$0_spellprepared}prep|repeating_spell-2_$0_spell) [@{selected|repeating_spell-2_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$1_spellprepared}prep|repeating_spell-2_$1_spell) [@{selected|repeating_spell-2_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$2_spellprepared}prep|repeating_spell-2_$2_spell) [@{selected|repeating_spell-2_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$3_spellprepared}prep|repeating_spell-2_$3_spell) [@{selected|repeating_spell-2_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$4_spellprepared}prep|repeating_spell-2_$4_spell) [@{selected|repeating_spell-2_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$5_spellprepared}prep|repeating_spell-2_$5_spell) [@{selected|repeating_spell-2_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$6_spellprepared}prep|repeating_spell-2_$6_spell) [@{selected|repeating_spell-2_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$7_spellprepared}prep|repeating_spell-2_$7_spell) [@{selected|repeating_spell-2_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$8_spellprepared}prep|repeating_spell-2_$8_spell) [@{selected|repeating_spell-2_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-2_$9_spellprepared}prep|repeating_spell-2_$9_spell) **Level 3** [@{selected|repeating_spell-3_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$0_spellprepared}prep|repeating_spell-3_$0_spell) [@{selected|repeating_spell-3_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$1_spellprepared}prep|repeating_spell-3_$1_spell) [@{selected|repeating_spell-3_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$2_spellprepared}prep|repeating_spell-3_$2_spell) [@{selected|repeating_spell-3_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$3_spellprepared}prep|repeating_spell-3_$3_spell) [@{selected|repeating_spell-3_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$4_spellprepared}prep|repeating_spell-3_$4_spell) [@{selected|repeating_spell-3_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$5_spellprepared}prep|repeating_spell-3_$5_spell) [@{selected|repeating_spell-3_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$6_spellprepared}prep|repeating_spell-3_$6_spell) [@{selected|repeating_spell-3_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$7_spellprepared}prep|repeating_spell-3_$7_spell) [@{selected|repeating_spell-3_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$8_spellprepared}prep|repeating_spell-3_$8_spell) [@{selected|repeating_spell-3_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-3_$9_spellprepared}prep|repeating_spell-3_$9_spell) **Level 4** [@{selected|repeating_spell-4_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$0_spellprepared}prep|repeating_spell-4_$0_spell) [@{selected|repeating_spell-4_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$1_spellprepared}prep|repeating_spell-4_$1_spell) [@{selected|repeating_spell-4_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$2_spellprepared}prep|repeating_spell-4_$2_spell) [@{selected|repeating_spell-4_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$3_spellprepared}prep|repeating_spell-4_$3_spell) [@{selected|repeating_spell-4_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$4_spellprepared}prep|repeating_spell-4_$4_spell) [@{selected|repeating_spell-4_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$5_spellprepared}prep|repeating_spell-4_$5_spell) [@{selected|repeating_spell-4_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$6_spellprepared}prep|repeating_spell-4_$6_spell) [@{selected|repeating_spell-4_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$7_spellprepared}prep|repeating_spell-4_$7_spell) [@{selected|repeating_spell-4_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$8_spellprepared}prep|repeating_spell-4_$8_spell) [@{selected|repeating_spell-4_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-4_$9_spellprepared}prep|repeating_spell-4_$9_spell) **Level 5** [@{selected|repeating_spell-5_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$0_spellprepared}prep|repeating_spell-5_$0_spell) [@{selected|repeating_spell-5_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$1_spellprepared}prep|repeating_spell-5_$1_spell) [@{selected|repeating_spell-5_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$2_spellprepared}prep|repeating_spell-5_$2_spell) [@{selected|repeating_spell-5_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$3_spellprepared}prep|repeating_spell-5_$3_spell) [@{selected|repeating_spell-5_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$4_spellprepared}prep|repeating_spell-5_$4_spell) [@{selected|repeating_spell-5_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$5_spellprepared}prep|repeating_spell-5_$5_spell) [@{selected|repeating_spell-5_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$6_spellprepared}prep|repeating_spell-5_$6_spell) [@{selected|repeating_spell-5_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$7_spellprepared}prep|repeating_spell-5_$7_spell) [@{selected|repeating_spell-5_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$8_spellprepared}prep|repeating_spell-5_$8_spell) [@{selected|repeating_spell-5_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-5_$9_spellprepared}prep|repeating_spell-5_$9_spell) **Level 6** [@{selected|repeating_spell-6_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$0_spellprepared}prep|repeating_spell-6_$0_spell) [@{selected|repeating_spell-6_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$1_spellprepared}prep|repeating_spell-6_$1_spell) [@{selected|repeating_spell-6_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$2_spellprepared}prep|repeating_spell-6_$2_spell) [@{selected|repeating_spell-6_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$3_spellprepared}prep|repeating_spell-6_$3_spell) [@{selected|repeating_spell-6_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$4_spellprepared}prep|repeating_spell-6_$4_spell) [@{selected|repeating_spell-6_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$5_spellprepared}prep|repeating_spell-6_$5_spell) [@{selected|repeating_spell-6_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$6_spellprepared}prep|repeating_spell-6_$6_spell) [@{selected|repeating_spell-6_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$7_spellprepared}prep|repeating_spell-6_$7_spell) [@{selected|repeating_spell-6_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$8_spellprepared}prep|repeating_spell-6_$8_spell) [@{selected|repeating_spell-6_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-6_$9_spellprepared}prep|repeating_spell-6_$9_spell) **Level 7** [@{selected|repeating_spell-7_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$0_spellprepared}prep|repeating_spell-7_$0_spell) [@{selected|repeating_spell-7_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$1_spellprepared}prep|repeating_spell-7_$1_spell) [@{selected|repeating_spell-7_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$2_spellprepared}prep|repeating_spell-7_$2_spell) [@{selected|repeating_spell-7_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$3_spellprepared}prep|repeating_spell-7_$3_spell) [@{selected|repeating_spell-7_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$4_spellprepared}prep|repeating_spell-7_$4_spell) [@{selected|repeating_spell-7_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$5_spellprepared}prep|repeating_spell-7_$5_spell) [@{selected|repeating_spell-7_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$6_spellprepared}prep|repeating_spell-7_$6_spell) [@{selected|repeating_spell-7_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$7_spellprepared}prep|repeating_spell-7_$7_spell) [@{selected|repeating_spell-7_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$8_spellprepared}prep|repeating_spell-7_$8_spell) [@{selected|repeating_spell-7_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-7_$9_spellprepared}prep|repeating_spell-7_$9_spell) **Level 8** [@{selected|repeating_spell-8_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$0_spellprepared}prep|repeating_spell-8_$0_spell) [@{selected|repeating_spell-8_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$1_spellprepared}prep|repeating_spell-8_$1_spell) [@{selected|repeating_spell-8_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$2_spellprepared}prep|repeating_spell-8_$2_spell) [@{selected|repeating_spell-8_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$3_spellprepared}prep|repeating_spell-8_$3_spell) [@{selected|repeating_spell-8_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$4_spellprepared}prep|repeating_spell-8_$4_spell) [@{selected|repeating_spell-8_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$5_spellprepared}prep|repeating_spell-8_$5_spell) [@{selected|repeating_spell-8_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$6_spellprepared}prep|repeating_spell-8_$6_spell) [@{selected|repeating_spell-8_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$7_spellprepared}prep|repeating_spell-8_$7_spell) [@{selected|repeating_spell-8_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$8_spellprepared}prep|repeating_spell-8_$8_spell) [@{selected|repeating_spell-8_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-8_$9_spellprepared}prep|repeating_spell-8_$9_spell) **Level 9** [@{selected|repeating_spell-9_$0_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$0_spellprepared}prep|repeating_spell-9_$0_spell) [@{selected|repeating_spell-9_$1_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$1_spellprepared}prep|repeating_spell-9_$1_spell) [@{selected|repeating_spell-9_$2_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$2_spellprepared}prep|repeating_spell-9_$2_spell) [@{selected|repeating_spell-9_$3_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$3_spellprepared}prep|repeating_spell-9_$3_spell) [@{selected|repeating_spell-9_$4_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$4_spellprepared}prep|repeating_spell-9_$4_spell) [@{selected|repeating_spell-9_$5_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$5_spellprepared}prep|repeating_spell-9_$5_spell) [@{selected|repeating_spell-9_$6_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$6_spellprepared}prep|repeating_spell-9_$6_spell) [@{selected|repeating_spell-9_$7_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$7_spellprepared}prep|repeating_spell-9_$7_spell) [@{selected|repeating_spell-9_$8_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$8_spellprepared}prep|repeating_spell-9_$8_spell) [@{selected|repeating_spell-9_$9_spellname}&amp;nbsp;](~@{selected|character_name}|err@{selected|repeating_spell-9_$9_spellprepared}prep|repeating_spell-9_$9_spell) }}
1617770763
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Scott R. said: <a href="https://app.roll20.net/forum/post/9183695/npc-statblock-chat-menu-for-d-and-d-5e-sheet-no-api-required-part-2#newtopic" rel="nofollow">https://app.roll20.net/forum/post/9183695/npc-statblock-chat-menu-for-d-and-d-5e-sheet-no-api-required-part-2#newtopic</a> Continuing the discussion from the thread above. Can the stat block be modified from its current form to also output any traits of the selected NPC? For example, a Deep Gnome's Stone Camouflage? Traits are demonstrated in a post from the original thread. The sheet itself had a typo in it, that the devs have since corrected, so if you grabbed that code from before, it won't work. I have edited that post to use the new code. Note that you can hide garbage lines using a trick from the original thread , supplied by Oosh.
I think I've finally got this working so there's no Stylus required. But be warned... it's ugly.&nbsp; Caveat: if you want to put this in a macro, you have to call it from a second macro because the &amp;{noerror} doesn't work from a macro call directly. This should work for all Actions, Traits, Reactions, and Legendary Actions if you select an NPC and post it directly into chat. It will only display abilities that exist on the character sheet, and won't display categories that the character doesn't have. /w gm &amp;{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$9_name|max};)[-- Traits --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name}&amp;nbsp;](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$9_name|max};)[-- Reactions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$0_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$1_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$2_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$3_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$4_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$5_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$6_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$7_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$8_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$9_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$9_name|max};)[-- Legendary Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$9_name|max};)}}&amp;{noerror} If you want to use it as a collections macro, first create a macro called 'AbilitiesMacro' with that entire code in it. Then create another macro called 'Abilities' with this: #AbilitiesMacro &amp;{noerror} Here's what the output looks like: I'll work on a spells version next, then a way to make the code prettier/easier to modify, and finally an easy way to call each category individually.
1617807325

Edited 1617807416
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Whew, that's a passle o'code. Nice looking output. When you finish the project, I'll link it in the top post of the original thread.
keithcurtis said: Whew, that's a passle o'code. Nice looking output. When you finish the project, I'll link it in the top post of the original thread. I created a new post , as there's a LOT in it, with some advanced customization options.