Hi there,
I am new to plugin development and I am trying to use $gameSwitches.value(x) in an if statement
to turn some features in a plugin on and off. When trying to use $gameSwitches.value(x) outside
of a function, I am getting the error: Uncaught TypeError: Cannot read property 'value' of null
at the line of code referencing the $gameSwitches.value(x) variable. It seems to work fine
within a function. Can anyone explain this behavior to me, and recommend a way I can access
$gameSwitches.value(x) outside of a function ?
I am new to plugin development and I am trying to use $gameSwitches.value(x) in an if statement
to turn some features in a plugin on and off. When trying to use $gameSwitches.value(x) outside
of a function, I am getting the error: Uncaught TypeError: Cannot read property 'value' of null
at the line of code referencing the $gameSwitches.value(x) variable. It seems to work fine
within a function. Can anyone explain this behavior to me, and recommend a way I can access
$gameSwitches.value(x) outside of a function ?