Affinity

Hi, I want to know how I add affinity with characters in RPG maker vx ace. Someone can help me?
Use variables.
What I insert?
What I insert?
Depends a lot on exactly how you want to do it, but a simple way is through event options.

Design a few variables as the "affinity counter"

Whenever the main character interact and does something for the other character that (s)he likes or dislike, call a control variable and add or subtract a value that you deem the action is worth, to the variable you designated for that characters "affinity counter"

Example:

Michelle ask Pete if he likes roses, as she adores them, Pete says no, and Michelle loose 1 affinity to Pete

Affinity.png
Depends a lot on exactly how you want to do it, but a simple way is through event options.

Design a few variables as the "affinity counter"

Whenever the main character interact and does something for the other character that (s)he likes or dislike, call a control variable and add or subtract a value that you deem the action is worth, to the variable you designated for that characters "affinity counter"

Example:

Michelle ask Pete if he likes roses, as she adores them, Pete says no, and Michelle loose 1 affinity to Pete

attachicon.gif
Affinity.png
Thanks, and If I wanted to do learn skills though the affinity?
That is going to require a script. I remember seeing one at one time for this, afraid I don't remember where. Maybe someone else will recall where that was?
There's several ways to do it, most likely a script for it as well.

One way to do it is setting up a common event that will check if the affinity counter is at or above a certain number, then the character will learn the skill.

Affinity Skill.png
There's several ways to do it, most likely a script for it as well.

One way to do it is setting up a common event that will check if the affinity counter is at or above a certain number, then the character will learn the skill.

attachicon.gif
Affinity Skill.png
I'd recommend the script, that common event is going to lag the game like no other if you are not careful. However, if you remove the parallel process step, and call it after every affinity changing event, it could work.
I'd recommend the script, that common event is going to lag the game like no other if you are not careful. However, if you remove the parallel process step, and call it after every affinity changing event, it could work.
Yeah personally I would properly call it at certain times, like at every affinity change as you mention, rather than parallel process, my bad.
So no one remeber the script?

Anyway thanks for your replies

Original thread: https://forums.rpgmakerweb.com/threads/affinity.37789/