MV Yanfly Spawned Event Id

Okay so I am not at home, so once I am home I will update with screenshots of my common event!

But basically, I am wanting the event Id for a spawned yanfly event. I’m making a farming game, and so far I have an event that can be spawned when the weapon (labeled as a tool), hoe is equipped and the ok button is triggered. An event spawns in front of the player direction (so basically player x and y are +1 or -1 depending on player direction).

But when I have the weapon watering can equipped, I can have the watering can interact with the event, but I cannot morph the event into a watered event.

I believe this is something to do with the fact that I cannot get the event Id for the spawned event and use it as the morph commands target Id. I know I probably won’t get a response until the images are uploaded, but if anyone has a clue for how to just get a spawned events Id (such as a this event script command) or anything at all, it would be greatly appreciated!!

Cause honestly, I’ve spent the past 3 days researching this extensively, and I cannot get anything to work. I have tried get location, but it doesn’t seem to get the actual Id number (which would be 1000+ based upon the plug-in parameters), but I’m probably overlooking something super obvious.
Does this.eventId() not work correctly?

Aside from that, just from your description, without pictures, it's not clear why you need to morph the event. Why can't you just have a second event page of the watered plant that you change to via a self switch?
there was a hread about farming and using just event pages that trigger the
self switch and or normal switch.

as if you want that effect, you can try to find it as it has a majority how it works.
so you might miss something as spawned event/event morph isn't required.
Does this.eventId() not work correctly?

Aside from that, just from your description, without pictures, it's not clear why you need to morph the event. Why can't you just have a second event page of the watered plant that you change to via a self switch?
Many apologies for not having screenshots, I will update the post in a few hours after my doctor’s appointment (it’s out of town for me), but when I do it will hopefully make more sense!
there was a hread about farming and using just event pages that trigger the
self switch and or normal switch.

as if you want that effect, you can try to find it as it has a majority how it works.
so you might miss something as spawned event/event morph isn't required.
So I want my game to not be like defined plots in the game, I want the user to be able to hoe/till the ground and plant plants wherever hence the spawn/event morph. I want to have a large variety of plants, so having the events morph into new ones will allow for the game to have multiple plants without the limitations of event pages. Again, when I return home, I will update with pictures, I just ran out of time before leaving home to post this.
So I want my game to not be like defined plots in the game, I want the user to be able to hoe/till the ground and plant plants wherever hence the spawn/event morph. I want to have a large variety of plants, so having the events morph into new ones will allow for the game to have multiple plants without the limitations of event pages. Again, when I return home, I will update with pictures, I just ran out of time before leaving home to post this.
If you want the same seed to be able to sprout into different plants depending on the environment/soil or something it would make sense to use an event morpher. If the seed has a linear progression of corn seed>corn sprout>corn plant you would use event pages.
You could certainly implement it either way, but you don't need to have a linear progression to use event pages. The engine will go to the highest numbered page that meets its conditions, regardless of what's before or after it.

Especially via a plugin for self-variables/expanded self-switches if you need more than the built-in 4.
You could certainly implement it either way, but you don't need to have a linear progression to use event pages. The engine will go to the highest numbered page that meets its conditions, regardless of what's before or after it.

Especially via a plugin for self-variables/expanded self-switches if you need more than the built-in 4.
I guess it is an organizational preference on whether you want all of an event's potential branching sequences stored in one event or separated into different events, and if the branching event can be independent of the original seed event.
@AquaEcho
@ATT_Turan

So i have accidentally solved my own problem with getting the event Id.

Screen Shot 2023-05-01 at 5.40.46 PM.png
Screen Shot 2023-05-01 at 5.40.51 PM.png


I was trying to overcomplicate putting the event id into a variable, so now I am getting the event id. However, when I add the morph script call, it does not transform the event. Is there something I'm missing/doing wrong?

Screen Shot 2023-05-01 at 5.46.16 PM.png

I'm only doing this because I want a lot of crop options, so I figured morphing into new seed events with self variable respawn/grow days would work. This is specifically for turning the event into a watered tile, but it would also be the basis for how the seed planting would work (event x is in the tool indicator spot right in front of the player, and it would then check what seed the player has and transform into crop y from there). Unless someone has a better way of doing a crop cycle for games like Harvest Moon, Stardew Valley, etc where the player can choose where the tilled earth is and interact with events from a spot away, then I am more than happy to listen. Also, if you need any other common events such as the hoe equip/use hoe event, I am more than happy to take screenshots of those too!
I'm only doing this because I want a lot of crop options, so I figured morphing into new seed events with self variable respawn/grow days would work. This is specifically for turning the event into a watered tile,
Unless you're doing some kind of Tamagotchi/Digimon-style morphing evolution tree where a seed can turn into a variety of other plants just put the watered tile on a new event page and use self switches.
Unless you're doing some kind of Tamagotchi/Digimon-style morphing evolution tree where a seed can turn into a variety of other plants just put the watered tile on a new event page and use self switches.
I guess I'll have to try that and if I need more pages, perhaps I can use the yanfly call event plugin? Again, I was just wanting flexibility/ease of going through all of the events. If I can basically check the event and ensure that the events grow correctly, then I can live with it.
I guess I'll have to try that and if I need more pages, perhaps I can use the yanfly call event plugin? Again, I was just wanting flexibility/ease of going through all of the events. If I can basically check the event and ensure that the events grow correctly, then I can live with it.
Using Event Morpher or Call Event will make it more complicated because now you have to keep track of what event is referencing which page where, instead of all the plants' growth stages/event pages being in one event using self switches. If you need more self switches just use Yanfly Self Switches and Variables.
Using Event Morpher or Call Event will make it more complicated because now you have to keep track of what event is referencing which page where, instead of all the plants' growth stages/event pages being in one event using self switches. If you need more self switches just use Yanfly Self Switches and Variables.
It's not an issue of self switches/self variables, it's an issue of having enough event pages for all the different plants. I really do not want to limit myself to crops, and even if it was something dividing them into certain seasons/crops, I feel I would need at least 2-3 events worth of pages. Not to mention that changing the crop image for each growth stage.
It's not an issue of self switches/self variables, it's an issue of having enough event pages for all the different plants. I really do not want to limit myself to crops, and even if it was something dividing them into certain seasons/crops, I feel I would need at least 2-3 events worth of pages. Not to mention that changing the crop image for each growth stage.
Each plant species should be its own event. If different plants have similar growth patterns, just a difference in the number of days between each stage, make a common event and call that common event on the event page.
Each plant species should be its own event. If they have similar growth patterns make a common event and call that common event on the event page.
That's what I'm trying to do. My issue lies in making a tilled earth event into an event with the species.


Like if I am holding corn seeds, I would like the tilled earth (regardless of it being watered or not) to become either a dry tilled plot with seeds or a watered tilled plot with seeds. That's why I was trying to morph my events because I am unsure how else to go about it. If you can explain fully how I make one event into a different one, or if I can change a spawn event (as yanfly spawn events cannot go on top of each other), then I am all ears and would appreciate it. I have been turning the gears in my head for the past 3 days, so if there's a simple way, I'm probably missing it.

Not to mention I'm not exactly a pro at rmmv or javascript, so i'm being pretty ambitious with it.
That's what I'm trying to do. My issue lies in making a tilled earth event into an event with the species.


Like if I am holding corn seeds, I would like the tilled earth (regardless of it being watered or not) to become either a dry tilled plot with seeds or a watered tilled plot with seeds. That's why I was trying to morph my events because I am unsure how else to go about it. If you can explain fully how I make one event into a different one, or if I can change a spawn event (as yanfly spawn events cannot go on top of each other), then I am all ears and would appreciate it. I have been turning the gears in my head for the past 3 days, so if there's a simple way, I'm probably missing it.

Not to mention I'm not exactly a pro at rmmv or javascript, so i'm being pretty ambitious with it.
Does Galv Simple Crops not do what you want? This is a solved problem
Does Galv Simple Crops not do what you want? This is a solved problem
I guess this will have to do, it just might take some tweaking to get it exactly how I want it. Thanks.
I guess this will have to do, it just might take some tweaking to get it exactly how I want it. Thanks.
You can use either Galv's system or manually build up your own one piece at a time, but it's going to require other plugins like a tile changer and event spawner and timers and a lot of work.

Instead of the tilled tile being an event you morph, it's just a region Id with a changed graphic from using a tile changer, and then you can use an event spawner to spawn the plant event you actually want when you plant the seed.
You can use either Galv's system or manually build up your own one piece at a time, but it's going to require other plugins like a tile changer and event spawner and timers and a lot of work.

Instead of the tilled tile being an event you morph, it's just a region Id with a changed graphic from using a tile changer, and then you can use an event spawner to spawn the plant event you actually want when you plant the seed.
I'm more than willing to put in the work! I really want animated plants if possible, and I know it's possible via an event where you can manually set the autonomous movement. The art is also no problem as well, and I have a day/night system as well as a year, month, day system that I've created in a different farming game attempt that works perfectly.

I figured the "growth" cycle would be similar to yanfly's foraging system where you can harvest a plant over and over again, but I would just have it grow and then harvest (save for a few plants that are reharvestable like trees or bushes).

I have never used a tile changer plugin before! Do you have a recommend one that would be compatible with Yanfly plugins?
I'm more than willing to put in the work! I really want animated plants if possible, and I know it's possible via an event where you can manually set the autonomous movement. The art is also no problem as well, and I have a day/night system as well as a year, month, day system that I've created in a different farming game attempt that works perfectly.

I figured the "growth" cycle would be similar to yanfly's foraging system where you can harvest a plant over and over again, but I would just have it grow and then harvest (save for a few plants that are reharvestable like trees or bushes).

I have never used a tile changer plugin before! Do you have a recommend one that would be compatible with Yanfly plugins?
You can use Shaz's one. It's similar to event morphing except you're swapping out a tile and its region id instead of an event. You can use it to change one tile at a time or an area of tiles.

You would use this to change out a regular dirt tile to a tilled earth tile. Then you can spawn the plant event you want on it.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-spawned-event-id.157126/