Changing sprite sheet permanently without self-switches

Hi folks,

Is there any way to change an event's sprite sheet permanently via script, plugin command, or some plugin out there?

I am creating a crop system for a farming mechanic, and my "crop" events use a ton of self-variables and event pages to do their thing. I was running common events with movement route commands to change the sprites to the crop's appropriate sprite sheet based on what seed was planted, but I hadn't realized that this resets when the map is reloaded.

As it is, I have a very complex farming system that was totally dependent on changing the event's sprite sheet with commands, and now I don't know what to do.

Literally any way to "Set eventID X to sprite sheet Y" that persists on map reload would completely solve my issue.
you could do that with an event that runs once on map enter, checking and changing every event sprite according to the stored variables.

a plugin might be easier on you, but we don't even know if that is possible because you don't describe how your farming system works, and the plugin would have to be compatible to that.
Not really.

The event image is whatever you specified in the map editor, that's stored in your database files; it's only dynamic while that map is the one that's currently loaded.

To have a change persist the next time you come to the map, you do one of the things you said - have a new event page with a different image; use a conditional branch on the page to determine:
- what index of the character sheet
- which specific cel of the sheet
- or even which completely separate sheet
is being used.

There have been a fair number of threads about crop systems with different images.
you could do that with an event that runs once on map enter, checking and changing every event sprite according to the stored variables.

a plugin might be easier on you, but we don't even know if that is possible because you don't describe how your farming system works, and the plugin would have to be compatible to that.

This is what I've done for now actually, and it seems to be working well enough so far! A good bit of extra work, but now that it is set up, it is simple enough to work with.

Not really.

The event image is whatever you specified in the map editor, that's stored in your database files; it's only dynamic while that map is the one that's currently loaded.

To have a change persist the next time you come to the map, you do one of the things you said - have a new event page with a different image; use a conditional branch on the page to determine:
- what index of the character sheet
- which specific cel of the sheet
- or even which completely separate sheet
is being used.

There have been a fair number of threads about crop systems with different images.

I'll have to look into some of those threads. I've read a few, but not many are working the way mine is.

The simple version of how mine works is that it has a number of "growth stages" stored in a self variable, as well as "watered status" and a "crop type" stored in self variables. Changing these via interactions and timers will increment the growth stage, which includes a sort of "middle stage" which runs a parallel event to update the sprite and change the growth stage to the next full stage, where it will stay until the next growth stage. This also checks for watered status to change the sprite to a watered version.

I now have a map load event that also reverts the crops to their "middle" stages on map load, so it will re-run the commands to update the sprite and load the correct growth stage each time the map is loaded.

I'm not sure how much this varies from usual crop systems, but this allows me a lot of flexibility in terms of interacting with crops.

In hindsight though, the ideal system is probably some kind of event spawner system, where all crops have their own preset event, and the plot just spawns the appropriate crop event based on what seed is used. This would probably be more tricky to update externally, though.

Original thread: https://forums.rpgmakerweb.com/threads/changing-sprite-sheet-permanently-without-self-switches.164598/