Relationship System issues

Hihii, I was developing a relationship system in my game, and I was wondering if there was a simple fix for this bug.
So, how I set it up was by creating a party talk mechanic. (It's simple, just press a button then it initiates a common event and in the event, the dialogue changes using a conditional branch) I already have switches and variables set in place for when the story progresses and for when the party needs to react differently, but the thing is that I don't know how to add to the relationship variable without giving the player the ability to spam the party talk in one go and going the easy way down one relationship route... I still want the player to be able to use the talk mechanic just in case they want to read it again or choose a different option after being asked a question, just without changing the relationship variable after the first time.
If it helps anyone understand me better, I wanted it to be something similar to the party talk mechanic in Ib.
One fix I've tried is creating another variable for the relationship variable, but that gave me even more problems to work with, and I was sure in my head that I'll try to come up with something better and easier but I'm stumped. Could it also be the way I set up the system? Sorry if this post is a bit incoherent
without seeing the common event.

do not increase the relation variable inside the event itself,
but increase the variable by points inside the game or resting spots
where you can interact to be able to increase their variable by talking
and choices.

if you increase the variable inside (which can), you can make a switch
in between or cap it before giving more by talking, but it really depends how
its done though.
Use variables/switches to track what's happened, e.g.
  • For dialogue that always occurs in the same order (e.g. plot-related stuff), you could increase a variable each time to keep track of what's already been said. E.g. +10 for each chunk of dialogue. (I prefer to use bigger values like +10 instead of +1 to give me space in case I want to add something in later.)

  • For an optional branch of dialogue (e.g. a book), you could track progress with a separate variable, or a switch if it's a single independent chunk of dialogue.
Then simply check the appropriate variable/switch in each case to see whether the relationship dialogue/variable stuff should be processed.
It could be as simple as sticking your point gain into a conditional branch.

If SWITCH "Character said X points gained" = OFF
Increase "Person X relationship" variable +1
Message: You gained X Points
Turn SWITCH "Character said X points gained" = ON

That way the player can have repeat dialogue however many times they want, but gain points only once.
It could be as simple as sticking your point gain into a conditional branch.

If SWITCH "Character said X points gained" = OFF
Increase "Person X relationship" variable +1
Message: You gained X Points
Tun SWITCH "Character said X points gained" = ON

That way the player can have repeat dialogue however many times they want, but gain points only once.
I ended up going this route because it seemed like the best one for how I formatted the relationship system. ^^

I'll put it here for anyone in the future who has a similar mechanic to mine.

Basic talk mechanic common event and a button press plugin. The party talk is a variable so that it allows for easy changes when the story progresses...

1764819024969.png


Before pressing the talk mechanic...

1764818183791.png


1764818436012.png


After talking...

1764818499047.png


1764818578136.png


And for when the player wants to read the dialogue again, the variable doesn't change after the first time!
The only downside to it is that you have to turn off the love point gain switch every time you want to change the talk button dialogue. It's okay though, it's way simpler than the other times I attempted it! Thank you so much, everyone!

Original thread: https://forums.rpgmakerweb.com/threads/relationship-system-issues.181251/