scoreboard players set @a b 0

scoreboard players set talk b 2
execute if score app_9 b matches 3 run scoreboard players set talk b 3
scoreboard players operation @a b = talk b

dialogue open @e[tag=panel_9] @a[r=3,scores={b=2}] panel_9_02
dialogue open @e[tag=panel_9] @a[r=3,scores={b=3}] panel_9_03

scoreboard players set @a b 0
