execute as @a run function main:dialog/id/pick with storage dialog

execute if score .duration dialog matches 1.. run scoreboard players remove .duration dialog 1
execute if score .spacebar dialog matches 1.. run scoreboard players remove .spacebar dialog 1

# execute if score .duration dialog matches ..0 if score .number dialog < .number_max dialog run scoreboard players add .number dialog 1
execute if score .duration dialog matches ..0 if score .number dialog >= .number_max dialog run function main:dialog/end


##debug
# scoreboard players remove .duration dialog 10
