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

# brief
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Brief","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"selector":"@s","color":"white"},{"text":" 🗡 player\n\n","color":"white"},{"selector":"@s","color":"white"},{"text":" 🏹 player from 10 blocks","color":"white"},{"text":"\n\n","color":"white"},{"selector":"@s","color":"white"},{"text":" ⚠ player","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_brief] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2006"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_brief] unless score @s km_num matches 5 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2006"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Brief","color":"aqua"}]}}]
execute if entity @s[tag=c_km_brief] if score @s km_num matches 5 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2006"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Brief","color":"aqua"}]}}]
tellraw @s ""

# alien_abduction
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Alien Abduction","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was beamed up by ","color":"white"},{"selector":"@s","color":"white"},{"text":"’s UFO\n\n","color":"white"},{"text":"player was probed by ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 light years away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was teleported into the void by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_alien_abduction] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2007"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_alien_abduction] unless score @s km_num matches 6 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2007"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Alien Abduction","color":"aqua"}]}}]
execute if entity @s[tag=c_km_alien_abduction] if score @s km_num matches 6 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2007"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Alien Abduction","color":"aqua"}]}}]
tellraw @s ""

# origami
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Origami","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was folded into defeat by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was struck by ","color":"white"},{"selector":"@s","color":"white"},{"text":"'s paper airplane from 10 yards away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was creased into nothing by ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_origami] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2008"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_origami] unless score @s km_num matches 7 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2008"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Origami","color":"aqua"}]}}]
execute if entity @s[tag=c_km_origami] if score @s km_num matches 7 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2008"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Origami","color":"aqua"}]}}]
tellraw @s ""

# hairstyler
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Hairstyler","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was trimmed by ","color":"white"},{"selector":"@s","color":"white"},{"text":"’s sharp scissors\n\n","color":"white"},{"text":"player was hair-sprayed by ","color":"white"},{"selector":"@s","color":"white"},{"text":" from 10 blocks away","color":"white"},{"text":"\n\n","color":"white"},{"text":"player got a buzz cut from ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_hairstyler] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2009"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_hairstyler] unless score @s km_num matches 8 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2009"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Hairstyler","color":"aqua"}]}}]
execute if entity @s[tag=c_km_hairstyler] if score @s km_num matches 8 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2009"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Hairstyler","color":"aqua"}]}}]
tellraw @s ""

# time_travel
tellraw @s ["",{"text":"[","bold":true,"color":"yellow"},{"text":"Time Travel","bold":true,"color":"white","hover_event":{"action":"show_text","value":["",{"text":"player was erased from history by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player was sent 10 years back in time by ","color":"white"},{"selector":"@s","color":"white"},{"text":"\n\n","color":"white"},{"text":"player disappeared from the timeline due to ","color":"white"},{"selector":"@s","color":"white"}]}},{"text":"] ","bold":true,"color":"yellow"}]
execute unless entity @s[tag=c_km_time_travel] run tellraw @s ["",{"text":"[Buy]","color":"green","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2011"},"hover_event":{"action":"show_text","value":["",{"text":"Cost: ","color":"green"},{"text":"60 Credits","color":"aqua"}]}}]
execute if entity @s[tag=c_km_time_travel] unless score @s km_num matches 9 run tellraw @s ["",{"text":"[Select]","color":"dark_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2011"},"hover_event":{"action":"show_text","value":["",{"text":"Click to Select: ","color":"yellow"},{"text":"Time Travel","color":"aqua"}]}}]
execute if entity @s[tag=c_km_time_travel] if score @s km_num matches 9 run tellraw @s ["",{"text":"[Selected]","bold":true,"color":"light_purple","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2011"},"hover_event":{"action":"show_text","value":["",{"text":"Currently Selected: ","color":"light_purple"},{"text":"Time Travel","color":"aqua"}]}}]
tellraw @s ""
