Reputation System Help (MZ)

I've read as many threads on this as I can find here and on Reddit, but it seems like I'm doing something wrong.

I want to do a basic reputation system. Example: Player says "I like your shirt", Reputation with that character goes up +1. Player says "I hate your shirt", Reputation with that character goes down -1.

I made a variable called Reputation. I set the reputation to increase/decrease during dialogue on the character's event. I made a common event with a conditional branch that says "If Reputation > x show text, show animation, etc." to test.

Nothing.

I tried setting a trigger for the common event and using a switch as well, still nothing. When I did this, I made a switch that would turn on when Reputation > x. I tried having no trigger for the common event as well, still nothing.

On another attempt where I tried an entirely different approach, I made another event page on the character, then set the switch on the character's new 2nd event page to be "When Reputation variable > x".

When I tried this, no matter how many times I rebooted and playtested, the character would now only operate on the 2nd event page, as in if the Reputation was already > x, despite never having talked with them and done the dialogues that +1/-1 the reputations.

I feel like I'm just not understanding common events, or how to operate them, and I am new to variables. I've had some trouble grasping this before. Please help, thanks!

EDIT: I attached screenshots of my plugins. I'm wondering if any of those have some kind of save data feature that's collectively adding the points up from previous test attempts, causing that 2nd event page to always trigger first?
Screenshot (1270).png
Screenshot (1271).png

Screenshot (1267).png
Screenshot (1268).png
Screenshot (1269).png
If your common event doesn't have a trigger it will only fire off when you call it. You also might want to press F9 every time you change game variable 1 and check if game variable 1 is the value you expect it to be.

This plugin may also be of interest to you

If your common event doesn't have a trigger it will only fire off when you call it. You also might want to press F9 every time you change game variable 1 and check if game variable 1 is the value you expect it to be.

This plugin may also be of interest to you


Thanks! Super helpful.

When I did F9 it showed that the Reputation variable was set to 1200 for some reason, and on reducing it to 0, when increased in any way at all and rebooting the game it would jump back up to 1200. Still confused by that but I'm just going to experiment with the plugin you suggested.

I was going for a Baldurs Gate style system which Turan captured perfectly so the plugin should help.

Still weird to me that the variable increases to what ever it wants seemingly arbitrarily but I guess that's a mystery I don't have to solve if the plug in works.
You might want to check if any plugin uses game variable 1 to store any data
I've been messing around with Turan's plugin and running into this issue now.
Spoiler
Screenshot (1272).png
Spoiler
Screenshot (1273).png
Spoiler
Screenshot (1274).png
Spoiler
Screenshot (1275).png
Spoiler
Screenshot (1276).png
Spoiler
Screenshot (1279).png

Using the 'Actor Approval' plugin command semi works, but no matter what value I put to increase or decrease the reputation it shows up as '+/-undefined' in the pop up notification when playtested. Pictured in screenshot 1.

When I use the 'Get Approval' command and set my variable, the game crashes, now saying property 'Id' undefined. Pictured in screenshot 3.

I see in the plugin description a notetag for the Actor, and I'm not sure if I'm supposed to be using that to define what it needs. I've also turned off almost all of my plugins to see if any are interfering. The ones I screenshotted are the only ones on as of the last time I tested.
the reason you get undefined is that you use "GET APPROVAL" which gets
the amount, you have to use the "PARTY APPROVAL".

the GET is for something else, but read the helpfile closely.
make sure the parameter for notification is set to a color or a notetag
inside the ACTOR in the database.
the reason you get undefined is that you use "GET APPROVAL" which gets
the amount, you have to use the "PARTY APPROVAL".

the GET is for something else, but read the helpfile closely.
make sure the parameter for notification is set to a color or a notetag
inside the ACTOR in the database.
Spoiler: Screenshot
Screenshot (1280).png

Like this? I see "Note that approval values are undefined until modified by any of the above functions or plugin commands." in the Scriptcalls section. Do I need to put the script call in the Actor in the database between the <Approval> </Approval Eval> tags?

Sorry I'm reading it over and over and just not getting it. Thank you for helping me
the notetag you set on actors is optional (as it goes to default parameters
if those are missing), if you have 5 actors, you could give them each their own
color to reference the actor more visually if you like).

the party approval actorId points is to give them, the GET is probably used
inside conditional branch to make the actor (if its a leader or elsewhere)
to learn new skills or remove them.

or alter the ending of its kind, so when it gets a lot of -points, something bad
can happen, or if it has a lot of +points, something good.

however you do this is up to you, maybe towards more friendly or more rude.
@wafflesaga I know this was in the context of your discussion, but it's usually best to report bugs with plugins in their actual threads - that way the author is certain to see it.

I've corrected the issues with plugin commands on MZ, please download the current version of the plugin.
@wafflesaga I know this was in the context of your discussion, but it's usually best to report bugs with plugins in their actual threads - that way the author is certain to see it.

I've corrected the issues with plugin commands on MZ, please download the current version of the plugin.
Thanks for taking a look! I wanted to try to solve it myself before bugging you. I'm going to take this over to the plugin thread
Thanks for taking a look! I wanted to try to solve it myself before bugging you. I'm going to take this over to the plugin thread
LOL, ATT_Turan would know his plugin more than I or ShadowDragon would so I don't know why you thought asking the forums in general was better
LOL, ATT_Turan would know his plugin more than I or ShadowDragon would so I don't know why you thought asking the forums in general was better
I was simply responding to you guys because you seemed knowledgeable and didnt know about the plugin until you suggested it or I would have just gone over there. Thanks again for your help.
Did you figure out what was changing your game variable 1? My guess is a plugin parameter for screen size
Did you figure out what was changing your game variable 1? My guess is a plugin parameter for screen size
It appears it was the MZ_VisualNovelChoiceWindow plugin. It has a value of 1200 set for the window width and without being very good with code I'm taking a guess that to set the window with it uses variable 1. That plugin also references a random variable option, so it could be that as well.

Original thread: https://forums.rpgmakerweb.com/threads/reputation-system-help-mz.174624/