scoreboard players set .number_max dialog 3


execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Oh hey there. Sorry lad, tough times, prices got higher.","text_color":"white","duration":30}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Darn it. Is it negotiable?","text_color":"white","duration":20}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Nu-uh.","text_color":"white","duration":30}