tag @a remove hub_dialogs

#first dialog ever
execute if entity @a[advancements={main:dialogs/hub/l30/specific/first_encounter=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1","id":first_encounter}

#after unlocking glove rolls
execute if entity @a[advancements={main:progression/other/reroll=true,main:dialogs/hub/l30/specific/reroll_glove=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1","id":reroll_glove}

#on your first death if everything above is false
execute if entity @a[advancements={main:dialogs/hub/l30/specific/no_workshop=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1",id:no_workshop}

#used workshop for the first time
execute if score .workshop_visits progression matches 1.. if entity @a[advancements={main:dialogs/hub/l30/specific/first_workshop=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1","id":"first_workshop"}

#used workshop for the second time
execute if score .workshop_visits progression matches 2.. if entity @a[advancements={main:dialogs/hub/l30/specific/workshop_question=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1","id":"workshop_question"}

#after doing 10 runs
execute if score .runs_started progression matches 10.. if entity @a[advancements={main:dialogs/hub/l30/specific/10_runs=false}] run return run function main:dialog/start {"folder":"hub/l30/specific/","allow_skip":"1","id":10_runs}

#other shit
function main:dialog/choose/choose {"storage":l30,"folder":"hub/l30/regular/"}