weapon damage as a condition

i want an event to trigger when x weapon gets x damage
http://yanfly.moe/2015/10/16/yep-12-item-upgrade-slots/
I think a little more detail might help.
Are you already using a plugin which enables weapons to deteriorate? If you are, please provide a link to the webpage where you got it so that people who need to check something don't have to go hunting.

If not, how are you doing that part of the problem?
they dont deteriorate i have a plugin called item upgrade slots so i can increase the damage with upgrades
Could you clarify your opening post, as that is not what is implied there.

You haven't told us which plugin you are using, nor provided the link to the web page that I asked for. Please include that in your opening post as well.

It would also help if you told us what you want this event to do, and in what circumstances (e.g. in battle, out of battle?) because that will affect any advice you are given.

So far, you have left us to guess every element of the question. Please give as much information as you can, as this enables people to help you. Without it, people can do nothing.
http://yanfly.moe/2015/10/16/yep-12-item-upgrade-slots/
when a weapon gets to x attack i want an event to trigger that changes the weapon into a different weapon but i dont know the script to use in the conditional branch for it to trigger at a specific damage

Original thread: https://forums.rpgmakerweb.com/threads/weapon-damage-as-a-condition.91671/