Hello!
Currently I'm trying to avoid the use of 'normal' Switches and instead try to use Self Switches as far as possible, which I set via Script Calls. Now I wonder if there is a way to check if the Self Switch of another event is set to a specific Value (A/B/C/D). In the Conditional Branch window there is an Input field for Scripts, but what do you have to enter?
I tried different syntax, for example
if ($gameSelfSwitches.isValue([$gameMap.mapId(), 002, 'A'] = true))
but apparently none of my variations work.
Could anyone enlighten me, please?
Currently I'm trying to avoid the use of 'normal' Switches and instead try to use Self Switches as far as possible, which I set via Script Calls. Now I wonder if there is a way to check if the Self Switch of another event is set to a specific Value (A/B/C/D). In the Conditional Branch window there is an Input field for Scripts, but what do you have to enter?
I tried different syntax, for example
if ($gameSelfSwitches.isValue([$gameMap.mapId(), 002, 'A'] = true))
but apparently none of my variations work.
Could anyone enlighten me, please?