The card structure is fine I think. I don't see any unescaped line breaks or anything like that. So I still don't know what's going on with the border. !script {{ --#title|Testing Stuff --#whisper|self --#emoteState|Hidden --#debug|Yes --:ChooseShop| --~|array;define;ShopID;-OOeMNvZK7n3tM3yj2jo;-OPQn4vBM67LXY84vQ1Q4;-OOebGL-vLjZPEpvBL-Y4 --%ShopName|foreach;ShopID --+|Shop ID [&ShopName] --+|[t][tr][td width=96px][F:Contrail One:16][i][c][*[&ShopName]:character_name][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] --%| --X| }} I changed the 2nd and 3rd stores attributes to match the 1st store and it still has the same errors. I looked at the debug log and it is weird. The loop tag substitution works fine for the first iteration, but then doesn't do anything for the subsequent ones. It's like it doesn't even try to pull the attribute from the sheet or if it just didn't exist at all. I've deleted and recreated the attibutes with still no joy. "Line Counter: 5, Tag::ChooseShop, Content:" "Line Counter: 6, Tag:~, Content:array;define;ShopID;-OOeMNvZK7n3tM3yj2jo;-OPQn4vBM67LXY84vQ1Q4;-OOebGL-vLjZPEpvBL-Y4" "Line Counter: 7, Tag:%ShopName, Content:foreach;ShopID" "ScriptCards: Info - Beginning of loop ShopName" "ContentIn: Shop ID [&ShopName] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "Line Counter: 8, Tag:+, Content:Shop ID -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][*[&ShopName]:character_name][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle]<a href="https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current" rel="nofollow">https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current</a> Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle]<a href="https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current" rel="nofollow">https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current</a> Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle]<a href="https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A" rel="nofollow">https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A</a> tavern run by the red dragonborn Tyrath. General store items, some potions/elixirs.[br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle]<a href="https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A" rel="nofollow">https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A</a> tavern run by the red dragonborn Tyrath. General store items, some potions/elixirs.[br][u][i]Current Approval Rating:[br][/u] Rank 0 ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOeMNvZK7n3tM3yj2jo" "Line Counter: 9, Tag:+, Content:[t][tr][td width=96px][F:Contrail One:16][i][c]The Dragon's Roost[/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle]<a href="https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A" rel="nofollow">https://files.d20.io/images/438319966/6TavkQ3ypccV8AZP56I4ew/original.png[/img]::ShopHere;-OOeMNvZK7n3tM3yj2jo[/rbutton][/c][/td][td][f:12][c][br]A</a> tavern run by the red dragonborn Tyrath. General store items, some potions/elixirs.[br][u][i]Current Approval Rating:[br][/u] Rank 0 (0% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t]" "Line Counter: 10, Tag:%, Content:" "ContentIn: Shop ID [&ShopName] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "Line Counter: 8, Tag:+, Content:Shop ID -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][*[&ShopName]:character_name][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OPQn4vBM67LXY84vQ1Q4[/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OPQn4vBM67LXY84vQ1Q4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OPQn4vBM67LXY84vQ1Q4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OPQn4vBM67LXY84vQ1Q4" "Line Counter: 9, Tag:+, Content:[t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OPQn4vBM67LXY84vQ1Q4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank (% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t]" "Line Counter: 10, Tag:%, Content:" "ContentIn: Shop ID [&ShopName] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "Line Counter: 8, Tag:+, Content:Shop ID -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][*[&ShopName]:character_name][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][*[&ShopName]:image_url][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;[&ShopName][/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OOebGL-vLjZPEpvBL-Y4[/rbutton][/c][/td][td][f:12][c][br][*[&ShopName]:store_desc][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OOebGL-vLjZPEpvBL-Y4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank [*[&ShopName]:approval] ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "ContentIn: [t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OOebGL-vLjZPEpvBL-Y4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank ([*[&ShopName]:approval^]% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t] Match: [&ShopName], vName: ShopName, replacement -OOebGL-vLjZPEpvBL-Y4" "Line Counter: 9, Tag:+, Content:[t][tr][td width=96px][F:Contrail One:16][i][c][/c][/i][/F][c][rbutton][img width=64 height=64 text-align=center vertical-align=middle][/img]::ShopHere;-OOebGL-vLjZPEpvBL-Y4[/rbutton][/c][/td][td][f:12][c][br][br][u][i]Current Approval Rating:[br][/u] Rank (% Discount)[/i][br][br][/f][/c][br][br][/td][/tr][/t]" "Line Counter: 10, Tag:%, Content:" "ScriptCards: Info - End of loop ShopName" "Line Counter: 11, Tag:X, Content:"