Does it exist? It's very convenient
There is a way to batch-modify variables with events, isn't there? Or was that just for switches?
Yeah, variables have that ability too.
The only scripting approach would be to make a loop and iterate through a range, like
for i in 1..10
$game_variables[i] = 100
end
$game_map.need_refresh = true
which would set variables 1 through 10 to a value of 100. The game map refresh at the end is needed for events to update their page conditions (you have to do the same thing with switches too).
Works beautifully and I've learned something new again. Thanks KK20 for showing me how & Blizz for stating that it also works with switches.
You can do it like this too.
[1,2,5,6,9,11,44, ..... ].each { |i| $game_variables[i] = 100 }
$game_map.need_refresh = true
Wow, thanks!
That'll be useful as well in the future!