I wanted know if is possible add durability as upgrade in the equipments.
MV Item Upgrade Slots + Item Durability (YEP)
Javascript/Plugin Supportdepends what you mean by that.
but in shorter the answer: yes.
most possible, it require some modification if we know what you mean
durability as upgrade means.
but in shorter the answer: yes.
most possible, it require some modification if we know what you mean
durability as upgrade means.
Like, have compatibility with both plugins.
they work correctly, if they doesn't, you have it in the incorrect order.
use the website or the plugin in my spoiler for the plugin order and
manually set them correct.
if they are in the wrong order, it can crash or does not work how it should.
use the website or the plugin in my spoiler for the plugin order and
manually set them correct.
if they are in the wrong order, it can crash or does not work how it should.
The YF durability plugin doesn't read edits to max durability.
You can use my extension plugin to get around it.
Link
You can use my extension plugin to get around it.
Link
I'm having trouble to find the command to put in the tag note
For the Upgrade slot?
You'd use something like:
JavaScript:
<Upgrade Effect>
Eval: item.durMax += 25;
</Upgrade Effect>
Just make sure you don't add to items that don't break normally.
To make it simple, YF set unbreakable items' Durability to -1.
So if you ever set an item to -1 or change a -1 to a different number, you'll mess it up.
So to fix that, you could use a conditional:
JavaScript:
<Upgrade Effect>
Eval: if (item.durMax != -1) item.durMax += 25;
</Upgrade Effect>
Have a specific order in plugins? For me, is not working.
The first one, is in the note tag of "Upgrade item (test)"
My plugin should be directly under YF durability plugin and you cannot rename it.
EDIT: Also note that it would change the item's CURRENT durability; only the max, which your screen does not seem to display.
To change the current durability, try the below:
That should show the change on your menu there.
EDIT: Also note that it would change the item's CURRENT durability; only the max, which your screen does not seem to display.
To change the current durability, try the below:
Code:
<Upgrade Effect>
Eval: if (item.durMax != -1) item.durMax += 25;
Eval: if (item.durMax != -1) item.durability += 25;
</Upgrade Effect>
Thank you very much!
Happy to help.
One last thing to add.
I just remembered that changing the durability this way will require you to clamp the value so it doesn't ever go past the max.
So, (hopefully) last code edit:
If you need anything more that my plugin helped with, feel free to let me know.
One last thing to add.
I just remembered that changing the durability this way will require you to clamp the value so it doesn't ever go past the max.
So, (hopefully) last code edit:
Code:
<Upgrade Effect>
Eval: if (item.durMax != -1) item.durMax += 25;
Eval: if (item.durMax != -1) item.durability += 25;
Eval: if (item.durMax != -1) item.durability.clamp(0, item.durMax);
</Upgrade Effect>
If you need anything more that my plugin helped with, feel free to let me know.
Original thread: https://forums.rpgmakerweb.com/threads/item-upgrade-slots-item-durability-yep.175562/