KayZaman

Brother-Veteran
Veteran
Joined
Jun 26, 2016
Messages
769
Reaction score
1,752
First Language
English & Malay
Primarily Uses
RMMV
Well, it's too soon to ask this question even I need to study how to use variable switch.


I wanna make few events where hero have relationship bond with his/her partner or other character. In the end, one of few characters will having a special event if player reached his relationship goal, like marry,friendship, brotherhood or something.


Example, you,Harold, choose who you wanna talk to. Theresa, Marsha, or Nina. Every event, who you wanna talk, you get relationship point. Like, you talk Theresa more than other, in the end, special event happen between Harold and Theresa. 


Get it?


Well, I need support but you can teach me how to manage variable switch. Thank you
 

Dad3353

Veteran
Veteran
Joined
Mar 9, 2016
Messages
421
Reaction score
111
First Language
English
@KayZaman...


You'd be best served by going through a few tutorials, to get a wider grasp on how all of this stuff works, I'd say. Nevertheless, I'll try to answer your question...


A Switch is a Switch; it's either On or Off. There are no 'Variable' Switches. For doing as you describe, you'll need a Variable in which to accumulate these Relationship Points. At any suitable moment (depending on your game-play...), you'll test the value of this Variable, and if it has reached the threshold required, the Switch should be turned On.


Is this any help to you..?
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,935
Reaction score
14,767
First Language
English
Primarily Uses
RMVXA
@Dad3353 summed it up. You store the value of the relationship in a variable, and increase it (or decrease it) depending on actions, then at the end run  a check to see what the value of the variable is, play the scene based on that value.


You'll also figure out who to handle ties, as those can occur.
 

DTracy3

Veteran
Veteran
Joined
Sep 29, 2016
Messages
44
Reaction score
9
First Language
Luxembourgish
Primarily Uses
I once worked with something similar. Used a variable for Relationship Points that increased or decreased depending on choices and situations. When reaching a certain amount of points, my characters learned a new combo move that they could do together.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG
BCj
Finished another GUI! Turn indicator wasn't made by me.

ff981f8dc50b03cf58038c644334b454.jpg


3cb092fdc00087acfa0a190fd891f0ed.jpg
Added a small refining scene to my game.

It makes sense that you try to focus on the squishy mages at the back of the party first, right? If the mage can out-DPS the enemy DPS before the latter can kill the tank in front, the fight becomes boring.

Forum statistics

Threads
115,236
Messages
1,088,284
Members
149,832
Latest member
gabrieuuu
Top