character dialogue trees

Ok so I have been eventing a dialogue tree for characters to share some of their backstories and talk to the player outside of the rough and tough mission or quest via the use of a fort type base. Although I ran into a problem along the way. First let me explain the system. 


* every time a character battles with your main character or in the party with someone else they will gain +1 to their friendship with that character with the use a variables. I'm using the variables to keep track of milestones and every time the player hits a milestone an optinal dialogue is obtained when you talk to the character at your base. Very fire emblem genealogy of the holy war like. 


* [the problem] if the player gains too many points in the variable as in they battle with the character a lot or just decided not to talk to one of the characters that had a dialogue sequence the event skips to the next milestone's event. How would I stop the variable from going up until you talk to the character in question?
Use two variables for each actor, one to determine the earned points and one to determine the next text sequence. And at the beginning of the talk sequence, compare them and reduce the counter if it would skip a sequence.


For more details, we would need to know more about your event code - perhaps by screenshot or so.
To make it stop going up, you could set up a conditional branch. Set up your variable for friendship to turn on the 'conversation available' switch at X count.  Then for the conditional, have it say IF switch 'conversation available' is on>nothing. Else>+1 Friendship.  


This way when they hit that threshold, they can't gain more until they talk. Just remember to turn off the switch in the conversation so they can gain again. 

Original thread: https://forums.rpgmakerweb.com/threads/character-dialogue-trees.60396/