So I am trying to use $game_switches[youFavoriteNumber] in my scripts.
What I get is: NoMethodError occurred. undefined method '[]' for nil:NilClass
Breaking the entire application/making in unplayable.
---
So does the script not know game switches at that point?
Should I start changing the "Main" script?
---
The issue seems to be about changing dynamic constants. That does not work despite their name...
So there are two ways:
(1) Set it before
(2) Change it during run-time
Constants can only do the first. For the second we need to use variables.
But the engine does not know the game_switches before so (1) does not work, changing a constant does not work later so (2) does not work either... 😔
Thanks for any form of help! 😢
What I get is: NoMethodError occurred. undefined method '[]' for nil:NilClass
Breaking the entire application/making in unplayable.
---
So does the script not know game switches at that point?
Should I start changing the "Main" script?
---
The issue seems to be about changing dynamic constants. That does not work despite their name...
So there are two ways:
(1) Set it before
(2) Change it during run-time
Constants can only do the first. For the second we need to use variables.
But the engine does not know the game_switches before so (1) does not work, changing a constant does not work later so (2) does not work either... 😔
Thanks for any form of help! 😢