じ☆ve冰风 发表于 2026-7-12 12:56:32

Create Relationship System with Variables

Hey my name is Skyfrid, that's Sky- as in blue and -Frid as in fridge.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7  Have you ever had a crush on a game character, only to have her repeat the same thing, every time you speak to her/him. That would be a major set off for anyone. Well look​
no further, because I'm here to teach you how to set of a relationship system using variables!​


Relationship/Friendship System:

​What the character said, and certain events can be triggered if the required amount of Friendship is high enough. This is set up by variables and will look like this:


[*]Acquaintance: 0-99
[*]Friendship: 100-199
[*]Best Friends: 200-299
[*]Love: 300-400


Step 1: Defining Variables
In order to fully understand this guide, you must understand the basic of Variable Click Here!
Once you understand that, all there is to set it up. Create a Variable name Relationship : . This will set the relationship for the character.


http://i.imgur.com/Y7LnRD5.png


Step 2: Defining Relationships

This step has several stages listed above, but you can skip around if you need.Every time you talk, to that person will increase the variable . The amount may vary, if you decide to change the value.

Acquaintance:

SpoilerThis stage is set up when the Relationship Variable you set up, is between 0-99.


[*]This stage includes when the character introduces, him/her to you. Plus their normal conversion. This stage will not require the need of setting up a variable. The Relationship Variable will increase by 5 each time you speak to them.
The first thing you should do is to set up the text, when the character meets the player. Then create a switch, leading to the normal text.


http://i.imgur.com/A6cSPA3.png

http://i.imgur.com/InpSbTY.png



http://i.imgur.com/RhaIp0y.png

http://i.imgur.com/jTmYyUj.png





Friendship:

SpoilerThis is the next stage of the relationship. It is defined when the Relationship Variable is 100-199. This requires the use of a variable condition.
http://i.imgur.com/7lniRjI.png



http://i.imgur.com/hdIkQPM.png





Best Friends:

SpoilerAfter the Friends Stage, is the Best Friends Stage. It is defined when the Relationship Variable is 200-299.
http://i.imgur.com/w7KReWN.png



http://i.imgur.com/Dmh0Gz2.png




Love:

SpoilerThe last stage is the most important of them all! It is defined when  the Relationship Variable is 300-400.
http://i.imgur.com/4geIznO.png



http://i.imgur.com/uqkAXdw.png





With that your done! You can customize it how ever you like, and this system can also be used to trigger "certain" events!


本贴来自国际rpgmaker官方论坛作者:Skyfrid处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/create-relationship-system-with-variables.24818/
页: [1]
查看完整版本: Create Relationship System with Variables