Hi, I'm trying to impelement this into my project, but run into problems with putting it into my game manager, I'm still learning lua so the code I'm trying to put in game manager is this
-- Rain manager script.
-- Author: Diarandor (Solarus Team).
-- License: GPL v3-or-later.
-- Donations: solarus-games.org, diarandor at gmail dot com.
--[[ Instructions:
To add this script to your game, call from game_manager script:
require("scripts/weather/rain_manager")
The functions here defined are:
game:get_rain_mode()
game:set_rain_mode(rain_mode)
game:get_world_rain_mode(world)
game:set_world_rain_mode(world, rain_mode)
Rain modes: "rain", "storm", nil (no rain).
--]]
-- This script requires the multi_event script and the teleporters meta:
require("scripts/multi_events")
local rain_manager = {}
local game_meta = sol.main.get_metatable("game")
local map_meta = sol.main.get_metatable("map")
--- ECT
in the instructions part, it doesnt say where to put it in game manager. I used to have a bit more lua knowledge last year after you guys showed me how to set up a P2 control and custom entity....