Make an item usable outside of battles?

So I'm making a game, and i want it to be so you could kill a character in the map.
How would I go about making an item to kill it? For example,
You could be walking around and you find an empty house you could rest in, but there's an enemy guarding the door
so I want to make it so you can take a weapon and kill it without having to enter a battle.
Something like the knife effect from Yume Nikki.

Any help would be greatly appreciated. Thank you

(Also sorry if this is in the wrong forum I'm new to this whole RPG Maker thing)
I'm not familiar with Yume Nikki, but for a super simple option, you can make a conditional branch (inside the guard's event) that checks whether item X is in the inventory or whether the first actor has weapon X equipped, and if so, the guard dies. You could also have other conditional branches that check which direction the player is facing, so you can only kill the guard from the side or back, etc.

There's a great script by Tsukihime that makes it so you can use other buttons to interact with events, so that might be something you could look into.
Ah, ok.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/make-an-item-usable-outside-of-battles.89674/