- Joined
- Aug 5, 2014
- Messages
- 70
- Reaction score
- 2
- First Language
- English
- Primarily Uses
I already figured out how to reset self-switches and variables, but I get an error for resetting normal switches. Here's my code:
$game_switches[1..100] = false
$game_variables = 0
$game_self_switches =
Game_SelfSwitches.new
I attached the error message to this post, and this is where it points at in the script:
#--------------------------------------------------------------------------
# * Set Switch
# switch_id : switch ID
# value : ON (true) / OFF (false)
#--------------------------------------------------------------------------
def []=(switch_id, value)
if switch_id <= 5000
@data[switch_id] = value
end
end
end
I tried $game_switches[1...100], $game_switches[1..5000], and $game_switches[1...5000]. Nothing works.

$game_switches[1..100] = false
$game_variables = 0
$game_self_switches =
Game_SelfSwitches.new
I attached the error message to this post, and this is where it points at in the script:
#--------------------------------------------------------------------------
# * Set Switch
# switch_id : switch ID
# value : ON (true) / OFF (false)
#--------------------------------------------------------------------------
def []=(switch_id, value)
if switch_id <= 5000
@data[switch_id] = value
end
end
end
I tried $game_switches[1...100], $game_switches[1..5000], and $game_switches[1...5000]. Nothing works.


