Yanfly's Durability mod and items?

Hey all,


I've been using Yanfly's Durability mod and want to create an item (a potion in this case) that when used, will restore 5 durability to all of the user's armor (or weapons, depending on the one used). I've used several of the notetags and can't get it to work. When I go to my items in the Main Menu, select the potion, and select the person to use it, it just buzzes and does nothing. Has anyone done this sort of thing and how did you do it?
I've moved this thread to JS/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
You have to make the item do something the engine recognizes as valid for it to work.


Try making the item add a state, but set the chance to add at 0.


That should do it.


(Matter of fact, when I tried it, not only did it work, but it seemed to "overcharge" durability past it's max!)
I used a Common Event with Javascript attached to the item finally to make this work.
That's fine.  Just note that doing it your way pulls you out of the menu by default.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-durability-mod-and-items.65856/