The "switch: number," setting should be optional you shouldnt get any error when not using it.
I will rewrite the whole code from scratch like I currently do with the weather part of the addon and make everything easier to use and easier to setup, but I have much other things to do atm so this will happen sometime in the future.
@nio kasgami
thanks your system is just awesome just Feature optio you can add
CHanging tileset by Season like winter have snow tiles e.c.t it is just a suggestion D:
Just make a common event for every season like this:
:autumn => { priority: 1, time: :all, days: :all, months: {"September" => :all, "October" => :all, "November" => :all}, years: :all, switch: 12, weathers: { :no_weather => 35, :weak_rain => 15, :normal_rain => 10, :strong_rain => 10, :long_rain => 10, :weak_storm => 10, :normal_storm => 5, :strong_storm => 5, }, common_event: 12, # added },This would call common event 12 every time the autumn phase starts.
In that common event you could put a tileset swap event command.
*edit*
Have looked at my code and yeah I havent made the switch part optional if you want to have it optional change this:
def update_condition(name) status = check_condition(name) return if @all_phases[name] == status $game_switches[TPS_PHASES::CONDITIONS[name][:switch]] = status status ? add_phase(name) : remove_phase(name) start_common_event(name) if status endto this:
Code:
def update_condition(name) status = check_condition(name) return if @all_phases[name] == status if TPS_PHASES::CONDITIONS[name][:switch] $game_switches[TPS_PHASES::CONDITIONS[name][:switch]] = status end status ? add_phase(name) : remove_phase(name) start_common_event(name) if status end