scoreboard players set .number_max dialog 5


execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"???","name_color":"red","text":"(It`s cold.. very cold..)","text_color":"white","duration":30}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"???","name_color":"red","text":"(I want to see the sun, but..)","text_color":"white","duration":30}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"???","name_color":"red","text":"(It never shines inside this well.)","text_color":"white","duration":30}
execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Khh...","text_color":"white","duration":30}
execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"This.. cold...","text_color":"white","duration":30}
execute if score .number dialog matches 5 as @a run function main:mechanics/effects/screenshake/start {duration:20,strength:200}