scoreboard players set .number_max dialog 13


execute if score .number dialog matches 1 run data modify storage dialog lists.workshop.list append value {id:"storekeeper_1"}
execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"???","name_color":"green","text":"Hey there, champ. Welcome to me little shop!","text_color":"white","duration":40}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"What`s with this sassy lost child?","text_color":"white","duration":40}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"???","name_color":"green","text":"Hey, just because me short doesn`t mean me child.","text_color":"white","duration":40}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Call me Storekeeper. Me offer good items for good price.","text_color":"white","duration":40}
execute if score .number dialog matches 4.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Wait, how did I even got here?","text_color":"white","duration":40}
execute if score .number dialog matches 5.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"You picked up an apple! It tranfers you to me shop.","text_color":"white","duration":40}
execute if score .number dialog matches 6.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"It`s a good business card, heh~","text_color":"white","duration":30}
execute if score .number dialog matches 7.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Weird.","text_color":"white","duration":20}
execute if score .number dialog matches 8.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Anyway. Here are the items me offers to you today.","text_color":"white","duration":30}
execute if score .number dialog matches 9.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Hit the button to let me know which one you buy.","text_color":"white","duration":30}
execute if score .number dialog matches 10.. run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Hope you ain`t broke.","text_color":"white","duration":30}
execute if score .number dialog matches 11.. run function main:dialog/text/text {"name":"L-30","name_color":"blue","text":"(Don`t get scammed, pal.)","text_color":"white","duration":30}
execute if score .number dialog matches 12.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Do what she said -","bold":false},{"color":"gold","text":" hit the button with the pricetag on top. ","bold":true}',"duration":50}
execute if score .number dialog matches 13.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Don`t forget to","bold":false},{"color":"green","text":" pick it up ","bold":true},{"color":"white","text":"after buying, or you can","bold":false},{"color":"light_purple","text":" reroll.","bold":true}',"duration":50}

