scoreboard players set .number_max dialog 10



execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Oh, we have one of those at home!","text_color":"white","duration":30}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Right now - there is no use for this, but I`ll find one for it later.","text_color":"white","duration":40}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"L-30","name_color":"blue","text":"M-MOTHER!?","text_color":"white","duration":25}
execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"N-","text_color":"white","duration":10}
execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"No, don`t you dare.","text_color":"white","duration":20}
execute if score .number dialog matches 6.. run function main:dialog/text/text {"name":"L-30","name_color":"blue","text":"hehehe >:D","text_color":"white","duration":25}

execute if score .number dialog matches 7.. run function main:dialog/text/text_custom {text:'{"color":"yellow","text":"WORKSHOP ","bold":true},{"color":"white","text":"is used to disassemble certain items and create memory chips.","bold":false}',"duration":50}
execute if score .number dialog matches 8.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"It can offer extra","bold":false},{"color":"red","text":" upgrades ","bold":false},{"color":"white","text":"to classes or even unlock","bold":false},{"color":"red","text":" new ones.","bold":false}',"duration":50}
execute if score .number dialog matches 9.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Currently it","bold":false},{"color":"red","text":" DOES NOT WORK ","bold":false},{"color":"white","text":"because it`s beta and everything is","bold":false},{"color":"red","text":" UNLOCKED.","bold":false}',"duration":50}
execute if score .number dialog matches 10.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Well,","bold":false},{"color":"green","text":" almost","bold":false,"italic":true},{"color":"white","text":". Try beating the game and maybe you`ll get something new","bold":false},{"color":"red","text":" UNLOCKED.","bold":false}',"duration":50}


# execute if score .number dialog matches 1.. run tellraw @a [{"bold":false,"color":"white","text":">>>>"},{"bold":true,"clickEvent":{"action":"run_command","value":"/function main:dialog/stop"},"color":"red","text":"DON`T SKIP"},{"bold":false,"color":"white","text":"<<<<"}]