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

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":"(2/3) ","color":"dark_gray"},{"text":"[⏴]","color":"gray","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1000"},"hover_event":{"action":"show_text","value":"Back"}},{"text":" "},{"text":"[⏵]","color":"gray","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1020"},"hover_event":{"action":"show_text","value":"Next"}}]
tellraw @s ""

# cyber
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Cyber","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" got hacked\n","color":"white"},{"selector":"@s","color":"white"},{"text":" was dragged to the recycle bin"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_cyber] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1006"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_cyber] unless score @s dm_num matches 5 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1006"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Cyber","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_cyber] if score @s dm_num matches 5 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1006"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Cyber","color":"aqua"}]}}]
tellraw @s ""

# kek
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"kek","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" gotrekt and died\n","color":"white"},{"selector":"@s","color":"white"},{"text":" sux lol"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_kek] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1007"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_kek] unless score @s dm_num matches 6 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1007"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"kek","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_kek] if score @s dm_num matches 6 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1007"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"kek","color":"aqua"}]}}]
tellraw @s ""

# pirate
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Pirate","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" died of scurvy\n","color":"white"},{"selector":"@s","color":"white"},{"text":" was sent to Davy Jones' locker"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_pirate] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1008"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_pirate] unless score @s dm_num matches 7 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1008"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Pirate","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_pirate] if score @s dm_num matches 7 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1008"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Pirate","color":"aqua"}]}}]
tellraw @s ""

# not_my_fault
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Not My Fault","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" died but it wasn't their fault\n","color":"white"},{"selector":"@s","color":"white"},{"text":" lagged and as a result fell into the void"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_not_my_fault] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1009"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_not_my_fault] unless score @s dm_num matches 8 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1009"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Not My Fault","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_not_my_fault] if score @s dm_num matches 8 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1009"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Not My Fault","color":"aqua"}]}}]
tellraw @s ""

# brutal
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Brutal","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" innards became outards\n","color":"white"},{"selector":"@s","color":"white"},{"text":" was torn to shreds by the void"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_dm_brutal] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1011"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"50 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_brutal] unless score @s dm_num matches 9 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1011"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Brutal","color":"aqua"}]}}]
execute if entity @s[tag=c_dm_brutal] if score @s dm_num matches 9 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1011"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Brutal","color":"aqua"}]}}]
tellraw @s ""