Creating affection

So I understand about the variable values, and how easy they are to use in the game. What I'm determined to do is make a approach base on affection towards the MC of the story, similar to how Dragon Age and Mass Effect inputs its affection system. I want to utilize this feature under many circumstances, such as relationships between NPC and MC, or encounter choice scenes when the MC may lose a unit perm., but all depends on the affection rating between they and the other NPC. As such, I want a dynamic affection system.


Few things I question about though. First, will this be a common event feature, similar to how Day/Night system applies to common events?


Secondly, is there a way to display affection  occurring while a discussion is ongoing rather than pause and state the obvious before ongoing the convo? Or would it have to be displayed after the convo ends, to inform the player where they're at with that NPC?


I figure this feature would be very neat for an in depth RPG. Mine as such, which revolves around choices, puzzles, and hard life consequences, for it's a dark fantasy RPG.


Thank you in advance!
In most circumstances you would probably branch results (like in a conversation with a character) with a conditional branch that checks if the variable value is less than, greater than or equal to a certain value. You could do this through common events to but it would require using parallel process. Too many parallel process can cause lag issues so don't use too many of those if you don't need to. Unless you need something to happen on any map in the game you don't really need a common event like that.


You can display the value of a variable using the text box command \V[n] going along with this you can display an Icon as well with \I[n]. n would be equal to the id number of what you want to use.
Well, if you want the affection to apply to a conversation with a character, for example, if the player has more than 100 affection, then the character kisses you or something, you would probably need to use conditional branches to check the variable that you have set, then implement whatever you want to happen if the player has the certain amount of affection. Just use a conditional branch whenever there is something happening in the event (common event or not) that is dependent upon the affection.


For displaying affection, there are many ways to do it, and none of them are easy. You could have variations of portraits with a certain amount of hearts or something to show how much affection you have, you could use up a line of text in every single message to display the affection with /V[name], you could display a picture overlay above the message with "Show Picture" every time the conversation starts, or you could try and use a plugin that allows you to attach a picture/small window to the message box. There are a lot of different ways to do it, you just have to decide which way to go with first.
Basically what RubbyDukky said. Tell us where and how you want the affection to be displayed. Depending on how you want it displayed, I have a handful of solutions.
Thank you all for the helpful ideas. Seems like common event is needed much after all!


I want the affection displayed at the bottom right corner, where it typically would show in Dragon Age or Mass Effect
this is for VX Ace, but I have found that alot of these tuts can translate to MV as well... hope this helps..

Original thread: https://forums.rpgmakerweb.com/threads/creating-affection.69490/