How to make grow machanic(like plant grow) still running, when player go to other scene or map?

Godot Version

4.3

Question

how to make grow machanic(like plant grow) still running, when player go to other scene or map?
for example i have map that i that i grow plant
plant requiment to grow

  1. must get water ( every 12 hour plant need to be watering )
  2. plant will die if season is change to season that not match plant_requiment to grow
  3. some plant wont die when season change but just stop growing on that season.
  4. when raining , get watering

here the problem.

  1. when player go to another map(change scene) , for example 10 ~ 20 day .
  2. while player on other map(change scene) , event like season change, and get raining is happend
  3. when player go back to map that player plant that tree ,
  4. how to match all plant requiment to grow.
  • some plant should die ,
  • because the season change,
  • some should stop grow.
  • some alreay full grow and ready to harvest

i do have data for plant like
save date when player plant the tree - example plant is plant at 1440 minute game world. so when i go back to map that have plant . i can compare how long plant is being plant. so i can make it grow up when load the map. but i dont know how to match other event like season and weather.

all machanic and event work fine when player in same map with plant. i just dont know to make it work when go to other map then come back. save and load also no problem if im in same map.

so how to keep all plant keep grow/running while player on ther map(scene)?
or how to load plant data to match all event that happen to plant?

Keep track of time, keep track of state. When you enter back into the map, compare how much time has elapsed for the things in your state store and do the calculations/logic needed based on those factors.