- 1
- Posts
- 1
- Years
- He/Him
- USA
- Seen Sep 30, 2023
I simply want to change it to 0 if $game_switches[60] is on. I tried doing this in "settings":
But that gives an error (Undefined method [] for nil:NilClass) that implies that game_switches[60] does not exist yet when compiling the scripts. Is there another way I can edit this value to what I want?
Code:
if $game_switches[60]
SAFARI_STEPS = 0
else
SAFARI_STEPS = 600
end
But that gives an error (Undefined method [] for nil:NilClass) that implies that game_switches[60] does not exist yet when compiling the scripts. Is there another way I can edit this value to what I want?