# repeat 2
# ダウンロード　cool 

execute if score dl_cool b matches 1.. run scoreboard players remove dl_cool b 1


execute if score dl_cool b matches 15.. run titleraw @a actionbar { "rawtext": [{ "translate": "app_dl.text", "with": ["\n"] }] }

# 初期値移動
execute if score dl_cool b matches 7 run tp @a 1 66 30 270 0
execute if score dl_cool b matches 6 run stopsound @a
execute if score dl_cool b matches 5 run playsound random.toast @a
execute if score dl_cool b matches 1 run playsound c.vo8 @a
# 設計
execute if score dl_cool b matches 3 if score dl_next b matches 1 run function app/set/2
execute if score dl_cool b matches 3 if score dl_next b matches 2 run function app/set/3
execute if score dl_cool b matches 3 if score dl_next b matches 3 run function app/set/4
execute if score dl_cool b matches 3 if score dl_next b matches 4 run function app/set/5
execute if score dl_cool b matches 3 if score dl_next b matches 5 run function app/set/6
execute if score dl_cool b matches 3 if score dl_next b matches 6 run function app/set/7
execute if score dl_cool b matches 3 if score dl_next b matches 7 run function app/set/8
execute if score dl_cool b matches 3 if score dl_next b matches 8 run function app/set/9
execute if score dl_cool b matches 3 if score dl_next b matches 9 run function app/set/10
execute if score dl_cool b matches 3 if score dl_next b matches 10 run function app/set/11
execute if score dl_cool b matches 3 if score dl_next b matches 11 run function app/set/12
execute if score dl_cool b matches 4 if score dl_next b matches 11 positioned 30 64 30 run fill 7 ~3 7 53 ~4 53 stone
execute if score dl_cool b matches 3 if score dl_next b matches 12 run function app/set/1
execute if score dl_cool b matches 3 if score dl_next b matches 99 run function z/story/story_end
#
execute if score dl_cool b matches 2.. run inputpermission set @a movement disabled
execute if score dl_cool b matches 1 run inputpermission set @a movement enabled
execute if score dl_cool b matches 1 run scoreboard players set bgm_loop b 362
# 有権者
execute if score dl_cool b matches 9 run function app/z/reqruit_tp_end
# 霧
execute if score dl_cool b matches 9 run fog @a remove fog1
