(RMMZ)Is it possible to create a skill that allows the player to type during battle to summon an item?

This is my first post, so kinda hoping I found the right place.
I am taking my time learning JS while messing around with RPGMaker, figuring out the Visustella MZ Core stuff, and just creating and testing things right now.

Here's how the idea in question looks:
I can only draw 2 parallels for what it is like; the Empty Scroll in Fear and Hunger, which is an item used outside battle, and Scribblenauts, where the thing typed in appears ready to be used.
The actor whose special skill/skill type it is would be "writing in his notepad" and the player would be typing in keywords to get items/equipment/etc.
Is it possible to get this mechanic onto the battle screen when using a skill? Would I need a plugin, or a combination of them?

I have a workaround idea which destroys the Scribblenauts typing aspect, but I could spend a while and slowly work on an expanded a library of things that keyworded skills can summon:
Skill name: Happy -> Outcome: A pre-selected healing item's effect applied to user/party

This current project is not intended to be a product, more a hobby piece, but I am testing everything I've learned while browsing the forum before registration, and other RMMZ support sites I found. I don't mind doing the workaround bit tbh, because trying to figure things out by reading up and checking the documentation over and over again had been helpful. Got much further than I first thought already, and have plenty of other things to mess around with and learn, so this specific skill is a bit of a backburner thing.
I'm not positive what you're trying to do with the typed information, but if you call a common event from the skill you can use Name Input Processing to store the input into an actor's name, then use other event commands to compare that actor's name to whatever you're trying to get.

You'll need a plugin to allow you to type on that screen - there are several, including one in my signature if you go to the Christmas Plugins list.
The way they described it was like "text box pops up, type in an item, and it will be used/equipped".

With my current knowledge level, I'm trying to shrink the scope a little, so I'm thinking in using it on consumables first.

But, before anything else, I will check out the plugin first! Thank you!
Well, the plugin is of secondary importance - that just lets you type. You can work on doing everything using the regular input screen where you select the letters via clicking/arrow keys. That doesn't have any effect on the rest of it.

I think you'd have to use mostly code for this - it's actually pretty complicated.

Once you've had the player use Name Input Processing on a dummy actor (we'll say actor ID 42), you'd do a Script command box:
Code:
// Get an item ID if it matches the input name and the party has at least 1
var itemId = $dataItems.find(item => item.name.toLowerCase() == $gameActors.actor(42).name().toLowerCase()).id;
itemId = $gameParty.numItems($dataItems[itemId]) ? itemId : 0;

// Store that ID in game variable 69
$gameVariables.setValue(69, itemId);

From there you can use Conditional Branch event commands - if variable 69 is 0, that means the party doesn't have the item the player typed in, give them an error message.

If it's greater than 0, then you have to figure out how to make the player use that item. The most efficient but more coding method might be to use a plugin (I'd recommend my Eval Tags, but you said you're using some VisuStella stuff so VisuStella Battle Core) to call this common event at the beginning of the skill execution, and replace the chosen skill with that item.

If you leave it as a common event attached to the skill, you'd have to make a skill version of every item and use the Force Action command to execute that item's skill version.

I know that's kind of a lot, but it's not a simple thing to try to do when you're new to the engine.

Just as a parting bit of advice, you might want to do some simpler stuff first - spend time on tutorials and making practice games without any plugins. Dealing with content from obfuscated plugins is not going to help you learn JavaScript.
It being complex is the bit I worried about. I'm happy to hear it is possible, just far above my skill level.
Thank you for the code! I'll file it away for when I understand it better.

It's eye-opening to see that I was kinda right to think "this sounds simple, but surely isn't".

I'm gonna take a deep breath and take things slower, but definitely not forgetting this either.
I'll play around more, with and without plugins, while it's still just a hobby project :3

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-is-it-possible-to-create-a-skill-that-allows-the-player-to-type-during-battle-to-summon-an-item.169435/