So I was wondering how to pull off an item that after a certain amount of steps would automatically change into another item, and play a sound effect and show a message. Specifically, I wanted to have an egg that eventually hatches into a chicken that is related to a quest in my game. My attempts of doing so haven't worked out so well so I was wondering if anyone would be able to help me figure this out.
As a similar example, it would function somewhat similar to how egg hatching does in Pokemon. However, I need it where each egg is on a different step counter.
Thanks in advance for any takers!
You could use a small handmade plugin to check the value of steps from the point you get the egg and add it to a variable.
Or you could try the old way. Use a common event in parallel process activated by a switch. Before turning the switch on, when you get the item, set a variable to current number of steps. Then, in the parallel process, set a second one as the new number of steps and subtract the old number. If result is what you want or bigger, activate a switch that your chicken hatched, call a common event about it and deactivate the event's plugin.
Can't check right now because of pc problems but the idea seems solid.
@Dad3353
It seems like I could easily be able to adapt those events thanks to the way the eggs work, I'd just need to to change the parallel process to a common event as well so it applies to all maps, as long as there is at least one egg in the party. I still won't be able to have each egg on an individual timer from what it seems, but I can have the timer reset each time an egg is hatched at least. If anyone is able to figure out how to run each item on a separate timer, that'd help greatly, with or without a plugin.
Thanks for the help, though! I'll be using this system for now until I can get it working for each individual egg.