"Rotten" Items

Hello,

I'm looking for a plug-in that will allow items to "rot" or transform into another items after a certain number of steps or a certain amount of time has passed after receiving the item.

For instance, if you have healing item that's a fruit, after you take, say, 250 steps, it would become a rotten piece of fruit that wouldn't heal as much anymore. It could even heal the same amount, but cause the person who eats it to become sick or something.

This could be used in a variety of ways.

I'm thinking the easiest way to implement something like that could be through notetags, adding a note tag to the item that says

<item transform X Y>

Where X is the item that it would turn into, and Y is the number of steps it would take. Maybe.

For Compatibility, I can't think of anything essential other than yanfly scripts.

Thanks for reading through my thread!
cool idea; i will take a swing at this for you.
Thank you! I know I’m VX Ace there was a similar script that accomplished this. I’ll have to find the details on that.
don't worry about that; i have already established which direction i am going to go in for this plugin. i will let you know when it is complete.
Okay, that sounds great!

This could be a really useful script for others as well!
i have a few other projects going on right now, but i have made significant progress on this request; it has a small bug i have to fix, but it is well on its way to completion.
I'd thought about implementing this in my game, but probably won't go ahead with it. I had a couple of very specific uses for rotten fish 🙂

One thought I came up with was, if it's a perishable item and you have several of them, you'll have to take into consideration when some are consumed, when more are obtained, and how many rot as a result - if you consume, will it be the ones you've had the longest, that are closest to going rotten? Is there a point at which it's not rotten, but not good enough to eat?
I have a feeling this will only work with instance items.
I honestly don't see how it could be done without some sort of Instance Item Plugin.
I had a couple of very specific uses for rotten fish.
this made me laugh, haha.

@Shaz i admit; when i first accepted this request, i did not see the entire picture. as a result, i find that i am investing much more time into this request than i want to, but i said i would do it, so i am putting forth the effort. i quickly realized all of the concerns you mentioned above; none of them have proven overly difficult, but all of them have proven time consuming.

@Maliki79 you are not wrong. at first glance, i assumed all items the party contained were instances of Game_Item and that i could make all necessary changes to that class, but i knew i was in for a ride when it was not that simple. after taking a closer look, i realized that the party's inventory is a collection of database entries returned on demand. that much eluded me at first, but i have found a way to make this work without having to build a custom class and populate an array with instances of it, so we will see how this turns out.
Cool! Can't wait to see the results.
i think i just achieved the "move of the fight," haha. i am on the home stretch.
I'd thought about implementing this in my game, but probably won't go ahead with it. I had a couple of very specific uses for rotten fish 🙂

One thought I came up with was, if it's a perishable item and you have several of them, you'll have to take into consideration when some are consumed, when more are obtained, and how many rot as a result - if you consume, will it be the ones you've had the longest, that are closest to going rotten? Is there a point at which it's not rotten, but not good enough

Really good points.

There are actually a lot of ideas I had that this script could use if you have it enough ideas. For example, it doesn't necessarily have to be used for "rotten items"

Could be used kinda in a Pokemon way, where if you had an "egg" after a certain number of steps it could hatch into a chicken or something. Or maybe, if you have milk, it would turn into rotten milk which wouldn't heal as much. However, the rotten milk could turn into yogurt, which would heal much more than the regular milk you originally bought....

That make not make a lot of real world sense, but could fit certain game environments.

Anyway, I'm excited to see where people can take this idea.
if you had an "egg" after a certain number of steps it could hatch into a chicken or something

That is exactly another use I was thinking of for my game. 😀
Awesome! Great minds really think alike!

I'm trying to think of a better term that "Rotten" items... Maybe like Transformable items or something like that...
i named this plugin "PerishableItems".
"Timed Item Transformation" is a good term. At least it's what I would call the plugin. I was thinking of uses like Items hardening into weapons or accessories or weapons rusting into powder that can be used to craft something! Who knows?
@Lonewulf123 i disagree; in my opinion, your suggestion implies transformation over time (frame count), rather than distance (step count). i think i will make an enhanced version of this plugin called "MutableItems", which simply indicates an item's ability to change. i will include functionality for both time and distance forced alterations. that will be the plugin i release to the community, but i will give you a copy of "PerishableItems" when i complete it, in order to give you an idea of how i approached this.
"Timed Item Transformation" is a good term. At least it's what I would call the plugin. I was thinking of uses like Items hardening into weapons or accessories or weapons rusting into powder that can be used to craft something! Who knows?

That’s another good use! Great idea!
@Lonewulf123 i disagree; in my opinion, your suggestion implies transformation over time (frame count), rather than distance (step count). i think i will make an enhanced version of this plugin called "MutableItems", which simply indicates an item's ability to change. i will include functionality for both time and distance forced alterations. that will be the plugin i release to the community, but i will give you a copy of "PerishableItems" when i complete it, in order to give you an idea of how i approached this.

Sure, however you want handle! I think both can be handy!
i am happy to report that i have finally uploaded this to the community. it is awaiting moderation; i will contact you when it clears.
Awesome! Thanks for all your help! Can’t wait to see how it works!

Original thread: https://forums.rpgmakerweb.com/threads/rotten-items.86718/