Permanently change an event's sprite

Hi folks,

I have a game system which requires the sprite image of an event to be changed to a new image. This image change needs to be something that persists through map changes.

I know that you can use the "change image" movement route command to change the sprite until the map is reloaded, but is there a way to change the actual sprite sheet that the event "image" parameter points to?

I'm hoping that there is some obscure script call out there that I don't know about, or that some kind of plugin could manage something like this. It seems odd that I can set an image for the event in its options, but that there would be no way to change that in-game.

Currently, I am using the awkward process and time consuming of running a parallel event to update each one of 200+ events to the sprite sheet they need to be changed to based on a variable, which runs every time the map is loaded and needs to be set as autorun to avoid some not updating properly, which adds a lot of loading time to the map. Just setting a permanent change to the image stored in the event for that page somehow would completely eliminate this loading process.

(Context: These events are for crop plots in a farming game, and they have 13 event pages each to handle different growth stages and other processes. Each of these pages needs to be set to one of around 50 different sprite sheets depending on which type of crops is growing in the plot.)

Thanks!
Have you tried using another event page that is triggered via a conditional switch/variable/local switch?

1738967062550.png



This way, the graph will be permanently changed as long as the condition is met! 👋
Have you tried using another event page that is triggered via a conditional switch/variable/local switch?

View attachment 330906


This way, the graph will be permanently changed as long as the condition is met! 👋

Thanks for the suggestion, but unfortunately, I need more flexibility than I can get out of just event pages.

These events are for crop plots in a farming game, and they have 13 event pages each to handle different growth stages and other processes. Each of these pages needs to be set to one of around 50 different sprite sheets depending on which type of crops is growing in the plot.
Thanks for the suggestion, but unfortunately, I need more flexibility than I can get out of just event pages.

These events are for crop plots in a farming game, and they have 13 event pages each to handle different growth stages and other processes. Each of these pages needs to be set to one of around 50 different sprite sheets depending on which type of crops is growing in the plot.

Oh, I see! Now with some context of the game, I see that it's something even more complex.
I hope you find a way to achieve this, because as far as I know that's the only way I know. Sowy. 😐
In a case like this, I would suggest using a spawn event plugin, so that when you choose what crop to plant, it spawns a new event from a template. You can check out Galv's plugin (https://forums.rpgmakerweb.com/index.php?threads/galvs-event-spawner-mz.127944/), and I believe Visustella's Event and Movement Core can spawn events too (you can also morph events).
In a case like this, I would suggest using a spawn event plugin, so that when you choose what crop to plant, it spawns a new event from a template. You can check out Galv's plugin (https://forums.rpgmakerweb.com/index.php?threads/galvs-event-spawner-mz.127944/), and I believe Visustella's Event and Movement Core can spawn events too (you can also morph events).

I do have Galv's Event spawner, but I've found that it doesn't work well with a robust farming type of system. For example, using the game's time to update the growth status of crop plots while also having the crops be interactable (for watering, planting, hoeing, harvesting) is difficult. I need them to have a parallel process to keep checking the time, or be updated by something external which triggers at midnight, but spawning in an event means not having any consistent event ID I can reference to make changes to it from external processes. Running a parallel process in the event itself to check if it needs to change event pages means not having an interactable event, which makes it hard to allow the player to plant/water/etc. the crop plot event.

Spawning events would be nice in theory, as then the player could spawn a crop plot on any tile (by hoeing the ground etc.) and then it could clear itself eventually by despawning if left unused, but in practice, using fixed events that are set up in the editor has been the only way I've found to have full control over the events, and to allow other events and processes to influence them.

There might be some way I could do it with a "more event page conditions" type of plugin that would let me set event page conditions that compare two variables, so I could check if the day counter has increased and by what amount to set it to the correct growth stage page, but that is getting a bit complicated and might not be worth redoing my entire farming system (which at this point is entangled with many other events and processes in my game).
You can always event morph it instead and it keeps its id. Yanfly/VisuStella Event Morph or Ritter Spawn also has morphing, and I think Triacontane has one too.

Original thread: https://forums.rpgmakerweb.com/threads/permanently-change-an-events-sprite.175240/