Earlier this evening I was prepping the Token/Sheet for a brand new player. Normally, I use Token Action and I did so for this one. I noticed something that I is different (I must have missed it before). TA now creates a chat menu for spells. This is great and it inspired me to try my hand at creating one for Melee weapons. After examing the code and taking careful notes of it and the Abilities (I am using the D&D 5e Roll20 sheet), the return was an utter failure. Here is the code that TA created for this 5th Level Cleric Spell list in Chat: /w @{character_name} &{template:atk} {{desc=**Cantrips:** [Guidance](~repeating_spell-cantrip_-NJakXCCSu4rAlXryfjd_spell) | [Light](~repeating_spell-cantrip_-NJak5bPezSt3hD3QDQi_spell) | [Mending](~repeating_spell-cantrip_-NohyC3IvKsVxP66LYq5_spell) | [Sacred Flame](~repeating_spell-cantrip_-NJakUnf0G84pTJngI3V_spell) **1st:** [Bless](~repeating_spell-1_-NJakk-1EXLJrsspbQps_spell) | [Cure Wounds](~repeating_spell-1_-NJaknvmqRh4n1clvrru_spell) | [Guiding Bolt](~repeating_spell-1_-NJalRks2IZe8FqvkOij_spell) | [Healing Word](~repeating_spell-1_-NJaluizjNui9MvpOSRj_spell) | [Shield of Faith](~repeating_spell-1_-NJalktz1oh6fqhd24eU_spell) **2nd:** [Hold Person](~repeating_spell-2_-NX6sgUqWxeRhhCpURzo_spell) | [Prayer of Healing](~repeating_spell-2_-NlKu7jaM8jg2l-AWyHA_spell) | [Silence](~repeating_spell-2_-NX6slN9TILYkSoGSFcW_spell) | [Spiritual Weapon](~repeating_spell-2_-NtDm3Q1yZMdJevtXwKS_spell) **3rd:** [Dispel Magic](~repeating_spell-3_-NtDltTAY9p8x88nOnMZ_spell) | [Remove Curse](~repeating_spell-3_-NtDmyQlCY0Q8fhBJ0dS_spell) | [Revivify](~repeating_spell-3_-NtDi7MYfDelhrE23mjn_spell) }} Here is my first attempt (only doing one category and making sure to include the final brackets). /w @{character_name} &{template:atk} {{desc=**Melee** [Dagger](%{-McAGGfrbaMJ7rqgtyse|repeating_attack_-NJb-q7wQ1YxhvORNJIx_attack})
| [Crossbow](%{-McAGGfrbaMJ7rqgtyse|repeating_attack_-NJau8e1Gc68MCiOzfmQ_attack})
| [Quarterstaff](%{-McAGGfrbaMJ7rqgtyse|repeating_attack_-NJanooaK-yWBhiCHMRN_attack}) }} Here is my second attempt - after noting that the beginning was shortened to ~before the "repeating" and the absence of internal brackets inside. /w @{character_name} &{template:atk} {{desc=**Melee** [Dagger](~repeating_attack_-NJb-q7wQ1YxhvORNJIx_attack) | [Crossbow](~repeating_attack_-NJau8e1Gc68MCiOzfmQ_attack)
| [Quarterstaff]( ~repeating_attack_-NJanooaK-yWBhiCHMRN_attack) }}
I tried other changes (one at a time) to no avail. Each time i received this return: TypeError: Cannot read properties of undefined (reading 'substring') I am really not sure where my mistake is. Any ideas or fixes?