I've been adapting one of my macros for secret checks to account for Lore skills. I think I've just about got it, but am hoping someone with a bit more knowledge might be able to help me clean it up. Here's the code as it stands now: /w gm &{template:rolls} {{header=Secret Skill}} {{roll01=[[1d20cs20cf1 + ?{skill used|Perception,@{selected|Perception}|Acrobatics,@{selected|Acrobatics}|Arcana,@{selected|Arcana}|Athletics,@{selected|Athletics}|Crafting,@{selected|Crafting}|Deception,@{selected|Deception}|Diplomacy,@{selected|Diplomacy}|Intimidation,@{selected|Intimidation}|Medicine,@{selected|Medicine}|Nature,@{selected|Nature}|Occultism,@{selected|Occultism}|Performance,@{selected|Performance}|Religion,@{selected|Religion}|Society,@{selected|Society}|Stealth,@{selected|Stealth}|Survival,@{selected|Survival}|Thievery,@{selected|Thievery}|@{selected|repeating_lore_$0_lore_name},@{selected|repeating_lore_$0_lore}|@{selected|repeating_lore_$1_lore_name},@{selected|repeating_lore_$1_lore}|@{selected|repeating_lore_$2_lore_name},@{selected|repeating_lore_$2_lore}|@{selected|repeating_lore_$3_lore_name},@{selected|repeating_lore_$3_lore}|@{selected|repeating_lore_$4_lore_name},@{selected|repeating_lore_$4_lore}|@{selected|repeating_lore_$5_lore_name},@{selected|repeating_lore_$5_lore}}]]}} {{roll01_type=skill}} It works great if the selected character has exactly TWO lore skills. However, it doesn't work well for anyone with ONE lore skill or more than two lore skills. In the former case, the dropdown menu breaks. In the latter case, the dropdown menu doesn't show the additional lore skills. How do I adjust this so that it ignores repeating lore skills not possessed by the character?