How to assign a prefix to a weapon?

Is there a way I can add a prefix to a weapon to alter its stats non-randomly from an event (not having the player do it through a menu) using a plugin such as Yanfly's Item Core or DreamX's plugin?


Alternatively, how can I get an independent item's id with Yanfly's script? I think I can figure out the rest.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-assign-a-prefix-to-a-weapon.57729/