scoreboard players set .duration dialog 0
scoreboard players set .ctrl dialog 1
execute as @a run function main:dialog/id/pick with storage dialog

execute unless score .number dialog > .number_max dialog run return run function main:dialog/stop

execute if score .number dialog >= .number_max dialog run function main:dialog/end