I want to make a condition that's quick, something like
maps = [1, 2, 4, 7, 9, 10, 15, 16, 17];$game_variables[1] == $game_variables[1].any? {|i| maps.include?(i)}$game_variables[1] being the current map id, to condition if the current map is any of those numbers is the array.
But I'm not really good with inject methods/arrays.
My immediate use would be to have it so that if you're in a forest-based map id, there's a chance that at a passing hour, you'll generate Leaf Essence, and if you're in an earthy map, there's a chance that at a passing hour you'll generate Earth Essence, etc, and instead of going "if map is this or if map is this or if map is this or if map is that... etc" I can just condition an array that I can easily add to if need be.
It doesn't need to be a conditional script branch. It can just be a script call. Doesn't matter.
Might I ask for assistance?