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

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

# default
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Default","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was slain by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was shot by ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 blocks","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was thrown into the void by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless score @s km_num matches -1 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2001"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Default","color":"aqua"}]}}]
execute if score @s km_num matches -1 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2001"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Default","color":"aqua"}]}}]
tellraw @s ""

# assassin
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Assassin","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player fell victim to ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s silent blade\n\n","color":"white"},{"text":"player was struck by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s shiv from 10 blocks away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was tossed to the shadows by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_assassin] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2002"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_assassin] unless score @s km_num matches 1 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2002"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Assassin","color":"aqua"}]}}]
execute if entity @s[tag=c_km_assassin] if score @s km_num matches 1 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2002"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Assassin","color":"aqua"}]}}]
tellraw @s ""

# western
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Western","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was gunned down by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player caught a bullet with their name on it from ","color":"white"},{"selector":"@s","color":"white"},{"text":", 10 paces away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was lassoed into the abyss by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_western] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2003"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_western] unless score @s km_num matches 2 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2003"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Western","color":"aqua"}]}}]
execute if entity @s[tag=c_km_western] if score @s km_num matches 2 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2003"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Western","color":"aqua"}]}}]
tellraw @s ""

# trolled
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Trolled","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player got trolled by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player got trolled on by ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 servers away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was shadowbanned by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_trolled] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2004"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_trolled] unless score @s km_num matches 3 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2004"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Trolled","color":"aqua"}]}}]
execute if entity @s[tag=c_km_trolled] if score @s km_num matches 3 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2004"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Trolled","color":"aqua"}]}}]
tellraw @s ""

# mythological
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Mythological","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was struck by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s lightning bolt\n\n","color":"white"},{"text":"player was slain by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s spear from 10 feet away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was thrown to Tartarus by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_mythological] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2005"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_mythological] unless score @s km_num matches 4 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2005"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Mythological","color":"aqua"}]}}]
execute if entity @s[tag=c_km_mythological] if score @s km_num matches 4 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2005"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Mythological","color":"aqua"}]}}]
tellraw @s ""