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":"I`m here again.","text_color":"white","duration":40}

execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"Let`s talk.","text_color":"white","duration":40}

execute if score .number dialog matches 3 run item replace entity @s armor.feet with leather_boots[enchantments={levels:{"minecraft:binding_curse":1},show_in_tooltip:false},equippable={asset_id:barrier,equip_sound:"item.armor.equip_leather",slot:"feet",camera_overlay:"custom/overlay/black_screen"}] 1
execute if score .number dialog matches 3.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Time passes by...","bold":false,"italic":true}',"duration":50}

execute if score .number dialog matches 4 run clear @a leather_boots
execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"That`s impressive! You put them to good use.","text_color":"white","duration":40}

execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"I`d say they`re pretty ``handy``.","text_color":"white","duration":30}

execute if score .number dialog matches 6.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"Hah, that`s one way to put it.","text_color":"white","duration":30}

execute if score .number dialog matches 7.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"It was nice talking to you, but it`s time for you to go.","text_color":"white","duration":30}

execute if score .number dialog matches 8.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"I`ll visit you again later.","text_color":"white","duration":30}

execute if score .number dialog matches 9.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"I`ll be waiting.","text_color":"white","duration":30}

execute if score .number dialog matches 10.. run function main:game/condition/win/start