Yarn - change variables during dialog

Hi guys,

I’m facing a little problem right now and was wondering what I’m doing wrong:


I would like to calculate if the NPC is scared (like if the player has a weapon or something). But it seems that the variable “scared” doesn’t change, although I change it with the command “calculatescared”.

Thanks in advance and best regards
MrKittixon