$execute store result storage pctf:$(x) page.num int 1 run scoreboard players set @s c_page 3

tellraw @s {"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"}
tellraw @s ["",{"text":"Death Messages ","bold":true,"color":"yellow"},{"text":"(3/3) ","color":"dark_gray"},{"text":"[⏴]","color":"gray","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1010"},"hover_event":{"action":"show_text","value":"Back"}}]
tellraw @s ""

# noble
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Noble","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"Fair warrior ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s heart hath ceased it's beat\n","color":"white"},{"text":"Into the endless night, "},{"selector":"@s","color":"white"},{"text":" drifts away"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_noble] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1012"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_noble] unless score @s dm_num matches 10 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1012"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Noble","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_noble] if score @s dm_num matches 10 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1012"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Noble","color":"aqua"}]}}]
tellraw @s ""

# statistical
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Statistical","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" just experienced ","color":"white"},{"text":"Death #","color":"aqua"},{"score":{"name":"@s","objective":"total_deaths"},"color":"aqua"},{"text":"\n","color":"white"},{"selector":"@s","color":"white"},{"text":" has fallen into the void ","color":"white"},{"score":{"name":"@s","objective":"total_void_falls"},"color":"aqua"},{"text":" times","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_statistical] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1013"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"80 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_statistical] unless score @s dm_num matches 11 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1013"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Statistical","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_statistical] if score @s dm_num matches 11 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1013"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Statistical","color":"aqua"}]}}]
tellraw @s ""

# lolcat
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"lolcat","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"Oh noes! ","color":"white"},{"selector":"@s","color":"white"},{"text":" haz died!\n","color":"white"},{"selector":"@s","color":"white"},{"text":" iz lost in da void, nya!"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_lolcat] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1014"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_lolcat] unless score @s dm_num matches 12 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1014"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"lolcat","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_lolcat] if score @s dm_num matches 12 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1014"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"lolcat","color":"aqua"}]}}]
tellraw @s ""

# sarcastic
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Sarcastic","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" died? Riveting...\n","color":"white"},{"selector":"@s","color":"white"},{"text":" fell into the void? Never seen that one before..."}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_sarcastic] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1015"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_sarcastic] unless score @s dm_num matches 13 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1015"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Sarcastic","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_sarcastic] if score @s dm_num matches 13 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1015"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Sarcastic","color":"aqua"}]}}]
tellraw @s ""

# existential
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Existential","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":"'s moment has passed\n","color":"white"},{"selector":"@s","color":"white"},{"text":" exited the stage of reality"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_existential] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1016"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_existential] unless score @s dm_num matches 14 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1016"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Existential","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_existential] if score @s dm_num matches 14 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1016"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Existential","color":"aqua"}]}}]
tellraw @s ""