Topic category: Advanced modding
I'm working on a Saint Seiya armor mod and I would like to add an event, which would be triggered when the Cloth breaks.
This event would add an item (a broken Cloth) to the player's inventory and would display "The (Constellation) (Part of the Armor) is broken!"
So in the code, I have been thinking to check if the durabilty value is zero, but I can't find the name of the variable.
So my question is : How can I detect when a part of the armor breaks?
Thanks for your answer!