- Joined
- Feb 16, 2016
- Messages
- 351
- Reaction score
- 238
- First Language
- Finnish
- Primarily Uses
- N/A
Sorry if I ask something quite obvious, but I am trying to achieve that the plugin "Galv Battle Action Info" would disable if game switch 5 is not TRUE. My problem is that I get error when I try to add
I have not yet figured the way to make it that the script cancels when the switch is not true. 
BUT THE BIGGEST PROBLEM is that the game gives me error in the console and says "Cannot read property 'value' of null' and value meaning the one after $gameSwitches
Thank you so much for your help for my past requests and possibly even for this one! I am still very early in learning javascript, and any help you might give would be appreciated for millenniums!
Code:
if ($gameSwitches.value(5) === true) {
return true;
}
BUT THE BIGGEST PROBLEM is that the game gives me error in the console and says "Cannot read property 'value' of null' and value meaning the one after $gameSwitches
Thank you so much for your help for my past requests and possibly even for this one! I am still very early in learning javascript, and any help you might give would be appreciated for millenniums!


