TDW Item Use Confirmation

TDW Item Use Confirmation
Version 1.03
by wrigty12
[For RPGMaker MZ]
​

Description:
Adds a confirmation window when you try to use an item or skill (in the Main Menu) that doesn't require selecting an actor.

Functionality:
*Disclaimer* This currently does not work in Battle, only in the Main Menu.

This is plug-n-play plugin!

Installing this allows a Use/Cancel command window to appear when you try to use an item. This helps prevent the user from using an item by accident.

By default, this appears in the middle of the screen. Use X & Y Offsets to change this.

Notetags:
You can add these Notetags to Items or Skills.

You can specify a Use or Cancel label for individual items using notetags:
Code:
<Use Label: put your string here>
<Cancel Label: put your string here>

If you wish for a specific Item/Skill to not use the Confirmation Window, add the following notetag to that Item/Skill:
Code:
<skipConfirmation>

Just put these notetags in an Item/Skill's Note box to change its command from the default.

Examples:
Want drinkable items to say "Drink?" instead of your default?
<Use Label: Drink?>

Want to add flair to an expensive item's Cancel command?
<Cancel Label: No Way!>

Plugin:
https://wrigty12.itch.io/tdw-item-use-confirmation

Credits:
wrigty12

Terms:
Feel free to use in any way you like. No credit required, unless you feel like it!

Notes:
Eventually I'll update this to also work with using items in Battle...

Changelog:
Version 1.03:
- Can now set Items/Skills to skip the confirmation window via notetag.
Version 1.02:
- Fix to prevent error when trying to use a skill in menu out of battle
- Enable the window to be used/configured for skills (out of battle)
Version 1.01:
- Added Use Label and Cancel Label notetags
Version 1.00:
- Initial release
Updated to Version 1.01!

While I was thinking about my items, I realized having specific items show unique Use/Cancel Labels would be great. Thus, I added the ability to add Notetags to Items to allow unique Use/Cancel Labels!
Updated to Version 1.02!

I found that if you tried to use a skill out of battle (like a healing skill), it threw an error when trying to open the confirmation window.

As a result, I added a fix that results in allowing the confirmation window to appear for Skills in the Main Menu (still only outside of battle).
Updated to Version 1.03!

I had a specific skill that I wanted to save a button/mouse click and skip the confirmation for, so I added the ability to set notetag <skipConfirmation> for specific Items/Skills.
Sooo cool! What about another "option" that links to common event instead of using or cancelling, for example we can "inspect" something, etc.
Sooo cool! What about another "option" that links to common event instead of using or cancelling, for example we can "inspect" something, etc.
I can look into it.

What would you use that "inspect" command to do, just curious?

EDIT: @fizzly So I played with it a bit yesterday/this morning, and I can add a secondary command just fine, but if it's linked to a Common Event, the common event won't execute until you completely close out of the main menu. If you can give me a better idea of what you're looking for, I can see if it's worth finalizing this (Since I can just force-close the Main Menu as part of the command).
I can look into it.

What would you use that "inspect" command to do, just curious?

EDIT: @fizzly So I played with it a bit yesterday/this morning, and I can add a secondary command just fine, but if it's linked to a Common Event, the common event won't execute until you completely close out of the main menu. If you can give me a better idea of what you're looking for, I can see if it's worth finalizing this (Since I can just force-close the Main Menu as part of the command).
I though it can be useful for items that have different "options" (not only use), like let's say.... any items in detective-kind-of games, where you can "use/inspect/thro away" or something. I wanted it for a canteen, where you can drink (use), refill or cancel.

Original thread: https://forums.rpgmakerweb.com/threads/tdw-item-use-confirmation.127423/