Gardening System Pseudo Script Questions

Hey guys I am messing around in RPMMV using it as a prototyping tool and am wondering if this is a viable tactic to approach adding a gardening mechanic.

  1. Create x events with notetag <gardenplot>
  2. Load room, collect all gardenplot tagged events
  3. Convert into data structure from other notetags. eg <gardenplot tomato 3> (type of seed and days it has been watered)
  4. foreach gardenplot event convert into an event ID and spawn event from other map in place of this event
  5. on leaving the map collect all the farmplots again and apply any changes to them in their notetags so that they are up to date next time I enter

The theory is that I have an event for each stage of a crop. Tomato seed, tomato stage one, tomato ready


Not sure at the moment how to access the notes of an event as it doesn't come up when I run it in debug and peek at the variables of event. Also not 100% sure where to serialise my data. I guess in the save game file?


I'm super new to RPM so may have a really skewed perception on how it all works. Please let me know!
Changes to the notes won't work because when you restart the game, the notes will be reset. You'll have to store all the plant information in a variable that gets inserted into the save files, and is loaded back when opening one. 
Thanks for the heads up.


Can I save the variable as something that contains multiple variables? An object/class off some sort?


And on top of that can I have an array that holds each rooms array which holds each garden plot?


SavedRoomsWithPlots[0].SavedPlots[0].test = "test"
You can, yes. Objects and arrays are both very nice and very saveable containers in Javascript. 
Thanks a lot for your help! I have a clearer idea in my head now. Will come back to this thread if I have any more questions.

Original thread: https://forums.rpgmakerweb.com/threads/gardening-system-pseudo-script-questions.64873/