Use Command / Details Window

Use Command / Details Window v1.03
by Roninator2​

Introduction
A script to give a use command before using items. Also offers a discard command and details command to view information about the item.

Features
- Gives information window for viewing item details - Crazyninjaguy
- Gives discard command to throw away items
- Gives use command for items
- Fixed issue for yanfly item menu compatibility (X2 - another small issue)
- Added option to disable commands. Read options in script

How to Use
Put below ▼ Materials

Images
Spoiler: Images
1633346289698.png
1633345877502.png

1633346447937.png
1633346323463.png

Script
Spoiler: Use Command
Spoiler: Bubs Rename Anything Option
requires Bubs Rename anything script line 91 to look like this
$imported["BubsRenameAnything"] = true

Credit and Thanks
- Roninator2
- Crazyninjaguy - for original code with description window

Issues
- Not compatible with Luna Engine. The window name would need to be changed.

Terms of use
Free for all RPG Maker VX Ace uses
There's an incompatibility issue with Yanfly's Item Menu

line 1136: NoMethodError occurred.
undefined method 'x=' for nil:Nilclass
incompatibility issue
Yanfly's Ace Item Menu has to be below this script.
Yanfly aliases the scene_item. This script overwrites.
I could look into changing that so there would not be a problem if this script was placed below.
*update. done. Changed start to an alias and it's good now.
That was fast.
Thank you.
Thanks mate.
I only noticed it now, but I think this script is still incompatible with Yanfly's one.

The "use" command is always sealed, it only works when I disable Yanfly's item menu. From what I understand both script overwrite the same sections in many places, so it's probably not something that can be fixed easily.

Also, is it possible to have this script version with only "use" and "details"
or just "details" that can be shown by pressing a key (now, that's something that I'm sure isn't easy to get done, so I'm not really expecting to get it), if incompatibility is outside these functions (though it's probably in these functions) then it would fix that problem, at least for me.

Or is there's a script that allows for better item categorization that is compatible with this one.
still incompatible with Yanfly's one
Sorry, yanfly changes the item scene. I just had to figure out how to get the window to know it is items you are looking at.
Should work fine now.
The "use" command is still sealed, even after placing it above Yanfly's core.
I guess these two are just incompatible, so there's no real point in trying to solve this.
I really have to start playtesting the hell out of new scripts,
instead of accidentally discovering bugs a week later while testing something else.

I mainly wanted to use this script for showing things like parameters, special effects, etcetera,
because the previous script that I used for that had a MINOR visual bug, but now I think it would be just better to try to fix that.

Thank you for your work and time anyway.
even after placing it above Yanfly's core.
This script has to go below yanfly's scripts.
You can send me you script file and I'll confirm, if you want.
Who's a lobotomized lobster that can't read? Me.
Thanks, now it works.

Original thread: https://forums.rpgmakerweb.com/threads/use-command-details-window.141008/