scoreboard players set .number_max dialog 1

execute if score .number dialog matches 0 store result score .random dialog run random value 1..6


execute if score .number dialog matches 1.. if score .random dialog matches 1 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Not enough money, pal.","text_color":"white","duration":30}

execute if score .number dialog matches 1.. if score .random dialog matches 2 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"You don`t have enough, pal.","text_color":"white","duration":30}

execute if score .number dialog matches 1.. if score .random dialog matches 3 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"No money - no funny.","text_color":"white","duration":30}

execute if score .number dialog matches 1.. if score .random dialog matches 4 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Pick something of your own wallet.","text_color":"white","duration":30}

execute if score .number dialog matches 1.. if score .random dialog matches 5 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Too expensive for you.","text_color":"white","duration":30}

execute if score .number dialog matches 1.. if score .random dialog matches 6 run function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Thought you could see the pricetag.","text_color":"white","duration":30}