scoreboard players set .number_max dialog 13



execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"Welcome back!","text_color":"white","duration":30}

execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Hey! Adam is probably pissed because I keep intruding this place.","text_color":"white","duration":40}

execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"Adam","name_color":"light_purple","text":"You are breaking every single possible interpretation of common sense.","text_color":"white","duration":40}

execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Adam","name_color":"light_purple","text":"Eden was not made for f#cking prison visits.","text_color":"white","duration":40}

execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"Despite that, Diann follows rules of getting to Eden.","text_color":"white","duration":40}

execute if score .number dialog matches 6.. run function main:dialog/text/text {"name":"Adam","name_color":"light_purple","text":"The worst part is that it`s legal.Well whatever.","text_color":"white","duration":40}

execute if score .number dialog matches 7.. run function main:dialog/text/text {"name":"Adam","name_color":"light_purple","text":"Keep your conversation short. You ain`t got much time left, Diann.","text_color":"white","duration":40}

execute if score .number dialog matches 8.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Was that a threat?","text_color":"white","duration":40}

execute if score .number dialog matches 9 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 9.. 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 10 run clear @a leather_boots
execute if score .number dialog matches 10.. run function main:dialog/text/text {"name":"Dad","name_color":"gray","text":"Well, time to go, Diann.","text_color":"white","duration":30}

execute if score .number dialog matches 11.. 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 12.. 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 13.. run function main:game/condition/win/start