
execute if score buy_1 b matches 2 run scoreboard players set buy_1 b 1
execute unless score buy_1 b matches 1 run function app/7/buy_1


#
scoreboard players set @initiator b 0

scoreboard players operation @initiator b = buy_1 b

dialogue open @e[tag=panel_7] @initiator[scores={b=1}] panel_7_02_1
dialogue open @e[tag=panel_7] @initiator[scores={b=2}] panel_7_02_2
dialogue open @e[tag=panel_7] @initiator[scores={b=3}] panel_7_02_3

scoreboard players set @a b 0