I want to add "talk" option in battle

Firstly, hello and thank you in advance for your time.

I'll be short. I tried to add the category "Talk" in battles. So then when the player want to try to solve a fight peacefully, it will begin a discussion with the enemy in question.

Problem: It doesn't show up in battle.
I tried everything I could. I did add the category Talk in the menu and also in the other menu "Skills" I also add Talk.
And to be sure that it would work ! I went on the Class menu and made sure that the character learn the skill "Talk" to the level 1 and that on all class so he could be a mage, a warrior, whatever I did that for any class. Aaaand nothing worked. In battle, my character has only the option "Attack" "Guard" and "Object" Nothing else.

That really drive me crazy I'm just really desperate because I have no idea what i can do to add this stupid option talk ! I want the main character to be able to Talk ! Not just being an idiot who kills everything in his way !
Urgh sorry. I really need a break otherwise i'll throw my computer through the window. But just before i take a break on this I want help if you can please.

You can show me a plugin to add this option in battle, or a way to just code it or tell me what i did wrong if it's possible in the game without any plugin I'm open to all solutions ! If you need more details on my situation, well i can show you screenshots in the next replies, but only if you tell me how i put a spoiler thing on the images because apparently it's necessary and I don't know how to do that on this forum.

Again thank you so much for your time you're according me, that you helped me or not, just the fact that you try ! It feels my heart with joy ! It's really cool from you guys and if I did anything wrong on the forum, like not the good subject for posting this thread then I'm sorry I'll try my best to be more careful next time.
Have a nice day !
Okay, short checklist
- create the Skill Type "Talk"
- create a Skill "Talk" or sonething similar
- Verify that this Skill is type of "Talk"
- add Skill Type "Talk" to the Class or Actor
- add Skill "Talk" to the Actor

Without the usage of Plugins, you can add only Skill Types to the Battle Menu (next to Attack, Skills, Guard etc) but not Skills directly.

Tell me if it works for you
So first of all ! THANK YOU ! I needed that break and i want to give you the thanks you deserve for your time !

So let's see your checklist ! ^^ Gosh i'm so happy to receive help from veterans who knows so much more than me x3

- create the skill Type "Talk": Check !
- create a Skill "Talk" or something similar: Check too !
- Verify that this Skill is type of "Talk": Yes it is ! ^^
- Add Skill Type "Talk" to the class or Actor: To the class menu yeah it is !
- Add Skill "Talk" to the Actor: .....Say what now ? you can add... . . . O.O *quickly do check, test some things* =.=

*take a deep breath* PLEASE ACCEPT MY APOLOGIZES !! That worked perfectly ! That was... So stupid ! It was right under my eyes i didn't seen it ! I-I... Oh my gosh. I hope you'll accept my excuses I'm such a big idiot I should have known this ! I just made a stupid and useless thread...

Anyway ! Thank you SO much for this ! I don't know how to thank you except by just... Saying thanks, sorry i can't do anything else ^^'

Hm just I take the opportunity since you helped me I dare to borrow you a bit longer sooo.. I'll try to configure the system of talking by myself. I'll try i promise i won't just ask directly for help. Plus I don't really like ask for help because i'm always scared to disturb people but anyway !
If I need help for coding the talk program or anything like that. Where should i write a thread please ?

Again thank you so much for this !
If you need help with actual code(JavaScript) there is a separate forum for that. If you just need help with eventing and MV in general then ask here.

Don’t worry about asking for help. The people who respond do it because they enjoy helping and solving problems.
Thank you Rugman for your answer !

Yeeeah. When i said that i didn't like to disturb i didn't mentioned it was also because of my ego, but today I have learn that it never hurts to at least ask politely help.
BUT I WILL STILL TRY MY BEST AT FIRST BEFORE ASKING FOR HELP ! If I can do things by myself then i'll do it !!
But it's still very pleasant to see that the community is still super active and never hesitate to help, who knows maybe one day i'll be the one helping others. But anyway i won't talk too much for nothing thank you again for your help and uh... Have a nice day everyone ! ^^
Maybe you already know, you can set a Common Event that runs when a Skill is used. Here you can define messages and dialogs to interrogate with the enemies.

Next step, when you want different dialogs for each enemy type, take a look at events with Database->enemy troops. Usually you set a Switch as condition for the troop event and the Skill just turns the switch on. Take your time, you can try a lot of things here 😉
I want to thanks Aerosys again for the help, because of him (or you if you're reading this) I did managed to make some turnaround and play with the engine a little. But it did nothing good and I'm sorry to ask for your help again..

Okay i'll continue in this thread, but if I need to create a new one because the problem is slightly not the same please tell me I'll do so right away !

Hm... Problem is. I tried. Like i said i tried and i... sort of did it. With only one message that repeat itself again and again. I'll explain better.

I want the skill "talk" to activate a dialogue. Only for now I want some specific dialogues because it will be a boss fight. Maybe later i'll ask for random dialogues you know for general enemies you encounter.

Here what I did try and it didn't worked.
- I create a common Event. This event I called it "Talk 1" because i'm still at the beginning of my game and I want to test things. In this Common Event, there is the first dialogue between the main character and the boss.
- At first I tried to assign the common Event "Talk 1" to the Skill "Talk" so I did.
I tested the combat and it worked perfectly ! Great ! ^^ But nope... Ooooooh i was wrong to celebrate my victory too soon !

Since it worked, i was like "Hey ! Maybe if i create a new Common Event it will work !"
So !
- I created a common Event called "Talk 2" because it's supposed to be played the second time the player uses the option "Talk" Because he is not forced to "Talk" he can also attack but that's not the problem here.
- I wrote the dialogues.
- I assigned the common Event "Talk 2" to the skill "Talk". So now there is "Talk 1" and "Talk 2" in there.
- I tested it.
Problem: The dialogues of the "Talk 2" common event showed up and the turn ended. And if i did this again well it repeat itself without ever showing the "Talk 1" common event.


The thing is... I know there is a thing with Swtich to be done, depending on the troop and all that stuff.
But it's so hard I don't understand anything ! I don't even know how to make the command talk making show up different dialogues each time the users do it !
I tried watching tuto or google it but i found nothing ! The only thing i found are simple thing like "if the enemy has 50% you can do this or making them say this" that's not what i want. And... Urgh. Seriously you guys who are replying to the problems of everyone and all, you deserve way more recognition and respect that you already have.
I don't know if you folks can help on this one, it's very complex what I ask. And if I want to understand you'll have if you have the courage to explain me each step from the beginning otherwise i'll get lost.
No seriously if you don't want to help me on this one I will totally understand.

So, whatever what decision you will take, thank you for at least reading me, a total idiot who want to make a childish dream come true, complaining about something that for you seems really simple. I appreciate it. Have a nice day.
Just as I said, take your time 😛
First, you need to know how Switches, Variables, Common Event and Troop Events work.

The tutorial about "run events when 50% maxHP" is quite close to what you want. Troop Events have conditions. In the window, where you can set eg 50% maxHP, tick the box that says Switch and call the Switch "do talk".

You want to have multiple rounds of interrogation. I would do that with Variables, not multiple Skills.

So your Skill does this: run Common Event
Your Common Event just turns the Switch on
Your Troop Event has the Switch as Condition and could look like this:

If variable round = 0
..show Dialog Choices
..if good choice
....Variable round +1
..if bad choice
....nothing to do
Else
..if variable round = 1
....show Dialog Choices
....if good choice
......end battle
....if bad choice
......nothing to do

Turn Switch "do talk" OFF

So this is a very simple example of an interrogation system. Be aware that this only works in the Troop that it is defined. When you want to have this function in other Troops you have to copy-paste or find other methods to do so.
okay so first of all thank you for the advice ! I'm progressing but it's not that yet ! ><

So I did set the switch "Do talk"
My skill Run the common event
My common event does turn the switch on
My troop Event as the Switch as Condition

BUT I don't know how you do this:
If variable round = 0
..show Dialog Choices
..if good choice
....Variable round +1
..if bad choice
....nothing to do
Else
..if variable round = 1
....show Dialog Choices
....if good choice
......end battle
....if bad choice
......nothing to do

Turn Switch "do talk" OFF



Could you please tell me which button i need to press to do that ? I tried by myself but i only made a bigger mess... Sorry for the inconvenience once this will be resolved I promised I'll think of something to thank you for your BIG help.
Well I did a lot of pseudo code here. Of course there's no command called "good choice" or "bad choice". You need to know how Dialog Options and Condition Branches work. I use the german version so I don't know the exact english terms, but it should be something like "Condition Branch". It's on Tab 1, left column.

Nethertheless, Conditions and Flow Control in general are one of the most essential tools in eventing. I recommend you to look for tutorials of how Variables and Conditions work. It's not required to be an exclusive RMMV tutorial as the behaviour of these elements is the same for every RPG Maker (2k, XP, VX Ace..).

Because I'm afraid I cannot explain it more simplier without having the knowledge about Conditions.
Ah I knew it ! I was sure it was the Condition Branches ! So i was in the right path but i still need more testing ! It's exciting and exhausting at the same time x3

Yes i tried to watch one but i got lost but i'm not giving up yet !! I'll look more forward to it and i'll keep you updated if i did it or not thank you again !
So I did it, the problem was just that the option where you have three choice: Battle; Turn; Moment. And it was on Battle but all was fixed when I put it on Turn.

Ah there is also the problem i fixed myself if anyone want to know !
When the fight began, before you can do anything, the first dialogue started. So i put nothing to variable 0 except add +1. And then i continued including the dialogues like normal and everything worked perfectly ! ^^

So I want to thanks everyone who helped me ! Aerosys and Rugman ! You are amazing people and thank you so much for your help ! Without you I would still be stuck !

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-add-talk-option-in-battle.126447/