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":"(My king was a good man...)","text_color":"white","duration":30}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"???","name_color":"red","text":"(I once hailed him and followed his command...)","text_color":"white","duration":40}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"???","name_color":"red","text":"(I wish I had a better judgement back then..)","text_color":"white","duration":40}
execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Hgnn...","text_color":"white","duration":30}
execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"So that`s your past..","text_color":"white","duration":30}