Detect whether item is equipped?

Hi, I need my player to have equipped a certain weapon before he leaves the room. If he hasn't got it equipped, a message will pop up saying something like "It wouldn't be safe to leave without equipping your weapon". I've searched around for a way to do this, but haven't found anything so far.
Like this.
Like this.
Doesn't that just detect whether you have that item in your inventory?
I want it to detect whether you've equipped it.
Yes, this method detects if the item has been equipped. See event; equip.png

Original thread: https://forums.rpgmakerweb.com/threads/detect-whether-item-is-equipped.77079/