scoreboard players set .number_max dialog 7


execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Hello again!","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, let`s see what you`ve got.","text_color":"white","duration":30}