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

# statistical
 tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Statistical","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was kill ","color":"white"},{"text":"#","color":"aqua"},{"score":{"name":"@s","objective":"total_kills"},"color":"aqua"},{"text":" for ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was kill ","color":"white"},{"text":"#","color":"aqua"},{"score":{"name":"@s","objective":"total_kills"},"color":"aqua"},{"text":" for ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 blocks away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was thrown into the void by ","color":"white"},{"selector":"@s","color":"white"},{"text":", marking kill ","color":"white"},{"text":"#","color":"aqua"},{"score":{"name":"@s","objective":"total_kills"},"color":"aqua"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_statistical] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2012"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"100 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_statistical] unless score @s km_num matches 10 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2012"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Statistical","color":"aqua"}]}}]
execute if entity @s[tag=c_km_statistical] if score @s km_num matches 10 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2012"},"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":"player waz pounced on by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s furriest paws\n\n","color":"white"},{"text":"player iz sniped frum ","color":"white"},{"selector":"@s","color":"white"},{"text":" 10 blocks away uwu","color":"white"},{"text":"\n\n","color":"white"},{"text":"player waz catapulted into da voidz by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_lolcat] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2013"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_lolcat] unless score @s km_num matches 11 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2013"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"lolcat","color":"aqua"}]}}]
execute if entity @s[tag=c_km_lolcat] if score @s km_num matches 11 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2013"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"lolcat","color":"aqua"}]}}]
tellraw @s ""

# brain rot
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Brain Rot","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was rizzed up by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player's gyatt was mewed on by ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 blocks away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was sent to Ohio by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_brain_rot] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2014"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_brain_rot] unless score @s km_num matches 12 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2014"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Brain Rot","color":"aqua"}]}}]
execute if entity @s[tag=c_km_brain_rot] if score @s km_num matches 12 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2014"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Brain Rot","color":"aqua"}]}}]
tellraw @s ""

# medieval
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Medieval","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was decapitated by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was pierced by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s longbow from 10 paces away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was banished to the hells by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_medieval] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2015"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_medieval] unless score @s km_num matches 13 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2015"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Medieval","color":"aqua"}]}}]
execute if entity @s[tag=c_km_medieval] if score @s km_num matches 13 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2015"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Medieval","color":"aqua"}]}}]
tellraw @s ""

# apocalypse
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Apocalypse","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was incinerated by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s flamethrower\n\n","color":"white"},{"text":"player was blown to shreds by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s sawed off shotgun from 10 feet away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was turned into dust by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s hydrogen bomb","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_apocalypse] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2016"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_apocalypse] unless score @s km_num matches 14 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2016"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Apocalypse","color":"aqua"}]}}]
execute if entity @s[tag=c_km_apocalypse] if score @s km_num matches 14 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2016"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Apocalypse","color":"aqua"}]}}]
tellraw @s ""