MV How to use skills, items, etc in battle to make battles have more narrative weight?

Because I'm doing a detective game, I feel that using an interrogation system to gather clues/progress the story might be an interesting addition

I'm thinking on revamping the battle system in rpg maker to be more detective oriented, like questioning suspects or have the player answering npc questions, but then I come to a problem

You see the mechanic I'm planning to use will have people deduce the npc's mood from the text description overhead (doesn't disappear until the player's turn is over), and depending on how the player questions the suspect, by either be intimidating, empathic, or logical will progress the interrogation until the suspect spills either lore relevant information, nuggets of info as clues, or maybe even make the condition worse

But instead, the normal rpg mechanic that relies on chance, I was planning on having a string of answers almost like combos that is basically the intended way to get answers from each suspect

If I were to give an example, say a teenager is suspected of drinking, the intended input combination is Intimidate, intimidate, then logic and after they mention that their father is abusing them, fail this combination and they'll ignore the player

Well that's my intended idea, but then I noticed that the attack and defend functions are muddying up the menu (I could make attack as pry, and make it into an almost low risk low reward starter question that shows the mood of the suspects, but I don't know if just the act of attacking and then it results in dialogue is possible, I only know that common events linked to skill usage is possible for dialogue)

Some people also suggested I use eventing instead, because that's where I can have the most control. But to be fair, I'm a bit lost on how to approach this mechanic

Do anyone here have a more streamlined way to implement interrogation mechanics?
Doing it within a combat sounds interesting; you can replace the usual "Attack" and "Guard" commands with something else using Yanfly's Weapon Unleash plugin ( https://www.yanfly.moe/wiki/Weapon_Unleash_(YEP) ) if you have access to that. You could apply states to the detective and suspect during the combat and so on, to track the progress of the "battle" - say, you use a "pry" attack on a suspect with the "wary" state and they become "guarded" which means they'd tell you less, or what have you. Or you could do the whole thing within eventing, which means you wouldn't need to worry about adjusting the current battle system (rewording or hiding all the battle text and UI).
Note that Attack and Guard are just skills (by default, the skills with IDs 1 and 2, respectively), so you can make them do literally anything you want. You can also change their names in the Terms tab of the database. No need for Weapon Unleash if you just want to rename them and change their behaviour. You can totally make the Attack skill trigger a Common Event if you want, for example.
Note that Attack and Guard are just skills (by default, the skills with IDs 1 and 2, respectively), so you can make them do literally anything you want. You can also change their names in the Terms tab of the database. No need for Weapon Unleash if you just want to rename them and change their behaviour. You can totally make the Attack skill trigger a Common Event if you want, for example,
Is there a way to make the dialogue have variety when its againts different enemies?
I experimented with the common events but somehow it played all dialogues at once rather than it be in a certain order
Doing it within a combat sounds interesting; you can replace the usual "Attack" and "Guard" commands with something else using Yanfly's Weapon Unleash plugin ( https://www.yanfly.moe/wiki/Weapon_Unleash_(YEP) ) if you have access to that. You could apply states to the detective and suspect during the combat and so on, to track the progress of the "battle" - say, you use a "pry" attack on a suspect with the "wary" state and they become "guarded" which means they'd tell you less, or what have you. Or you could do the whole thing within eventing, which means you wouldn't need to worry about adjusting the current battle system (rewording or hiding all the battle text and UI).
It can be worth a try
Is there a way to make the dialogue have variety when its againts different enemies?
I experimented with the common events but somehow it played all dialogues at once rather than it be in a certain order
…yes? I have no idea what you did to play them all at once, but all you really need is the LastSubjectActor plugin in the dlc folder. Then the following script call in your common event will return the enemy target index:

JavaScript:
$gameActors.actor(gameVariables.value(42))._lastTargetIndex + 1

Replace 42 with the number of the variable in the LastSubjectActor settings. This returns the enemy index in the troop, a number from 1 to 8. Note: if the skill targets an ally, it'll return a party index instead of an enemy index.

Or, if you want the enemy ID in the database, use this (again, replace 42):

JavaScript:
$gameTroop.members()[$gameActors.actor(gameVariables.value(42))._lastTargetIndex].enemyId()
…yes? I have no idea what you did to play them all at once, but all you really need is the LastSubjectActor plugin in the dlc folder. Then the following script call in your common event will return the enemy target index:

JavaScript:
$gameActors.actor(gameVariables.value(42))._lastTargetIndex + 1

Replace 42 with the number of the variable in the LastSubjectActor settings. This returns the enemy index in the troop, a number from 1 to 8. Note: if the skill targets an ally, it'll return a party index instead of an enemy index.

Or, if you want the enemy ID in the database, use this (again, replace 42):

JavaScript:
$gameTroop.members()[$gameActors.actor(gameVariables.value(42))._lastTargetIndex].enemyId()
Interesting, I think I'll try this

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-skills-items-etc-in-battle-to-make-battles-have-more-narrative-weight.181108/