class Overnight
def initialize
@maps = []
@farm = 1
map_data = load_data('MapInfos.rxdata')
for i in map_data.keys
@maps.push(load_data(sprintf("Data/Map%03d.rxdata", i)))
end
end
def water_check
for f in 0...@maps[]
@farm = @maps[f]
for e in 0...@farm.events[]
if $game_self_vaiables[[@farm, e, 1]] > 3
if $game_self_switches[[@farm, e, "A"]] == on
$game_self_switches[[@farm, e, "A"]] = off
$game_self_variables[[@farm, e, 1]] += 1
else if $game_self_switches[[@farm, e, "B"]] == off
$game_self_variables[[@farm, e, 1]] = 3
end
end
end
end
end
end
end