Can I use the "Name Imput Processing" command mid-battle?

Hello everyone! Good afternoon! Sorry to be bothering you all yet again, but I promise this question is simple!

It's basically the title. I'm trying to make some summon spells in my game, and I'd like to allow for the player to name the creatures they summoned (to help them get attached and whatnot). When I cast the spell outside of combat, it works perfectly, but everytime I test it in a troop test, everything works, except the name input! It's just skipped entirely!

I tried looking this up, but couldn't find anything! Which is why I'm asking you through this post!

Thank you for your time!
first, why do you need to rename the summoned actor every time? it will keep the last name unless you reinitialize on every summon. and you should only initialize an actor on first use as that would reset all data for the actor.

second, have you tested if the command works correctly in a true battle ingame? the database battletest is NOT a valid test for most cases, because it skips large parts of the engine initialization to speed up directly to battle, and that is known to cause problems with plugins and other cases.
It may be one of those event commands that dont work in battle, in which case you need a plugin like this that allows parallel common events in battle

The plugin file has English instructions
As a general rule, event commands that involve transferring the player to a different scene don't work in battle because if they did battles would break horrifically.
first, why do you need to rename the summoned actor every time? it will keep the last name unless you reinitialize on every summon. and you should only initialize an actor on first use as that would reset all data for the actor.

second, have you tested if the command works correctly in a true battle ingame? the database battletest is NOT a valid test for most cases, because it skips large parts of the engine initialization to speed up directly to battle, and that is known to cause problems with plugins and other cases.
Yep! I'm reinitializing! Since my game doesn't use levels, but instead the progression is based on classes, *and* since it'd be good to reset any buffs given to the previous iteration of the summon, since it's a different creature, I felt like it'd be a good idea! But yeah, I didn't yet test ingame battles. Will try that soon!

As a general rule, event commands that involve transferring the player to a different scene don't work in battle because if they did battles would break horrifically.
I'm not trying to change the scene, though? I just want the player to name something mid-battle.

It may be one of those event commands that dont work in battle, in which case you need a plugin like this that allows parallel common events in battle

The plugin file has English instructions
Thanks! I'll check it out!
Yep! I'm reinitializing! Since my game doesn't use levels, but instead the progression is based on classes, *and* since it'd be good to reset any buffs given to the previous iteration of the summon, since it's a different creature, I felt like it'd be a good idea! But yeah, I didn't yet test ingame battles. Will try that soon!


I'm not trying to change the scene, though? I just want the player to name something mid-battle.


Thanks! I'll check it out!
But the name input processing command takes place in Scene_NameInput, which is a different scene from Scene_Battle. There is no name input window in the battle scene.
If Trihan is right, using that command in the plugin I linked will kick you out of battle (or it might freeze/crash the game)
Well, crap. Guess I'll restrict the spell to outside of battle then.

Thanks for the help, though! I really appreciate it!
It doesn't actually crash if you process it in battle, but once you return the battle will start over because battle state isn't something the game retains between scenes.
It doesn't actually crash if you process it in battle, but once you return the battle will start over because battle state isn't something the game retains between scenes.
I do this with an enemy that calls a shop scene during a fight. It's wildin

Original thread: https://forums.rpgmakerweb.com/threads/can-i-use-the-name-imput-processing-command-mid-battle.162238/