I am a newbie mostly trying to figure out, How should a common event look. For a function like the above. The player will be able to choose their gender in the beginning and Romances/Their Scenes are Gender Locked.
Protagonist Choice and Gender Locked Romances help
Visual Novel Maker SupportIf they pick their gender at the beginning of the game, there's no need for a common event. You just needs your set of gender choices and assign a number to a variable based on what choice they make (which likely goes alongside the character creation process).
Would this work for a Romance system as well?
The romance system just checks the variable to see if the character in question is willing to romance the protagonist. That's the simple part, how a romance system works is inherently complicated and this is just one part.
Can you please confirm that you are using Visual Novel Maker, and not RPG Maker?
regardless of engine, you should be better off from the start by writing the possible matches in advance.
say, the player decides to pick Male, there would be a fixed number of Female NPCs they can possibly court, ever.
if that's too limiting, there's another way: write a set of fixed responses to the player's courtship attempt, regardless of pairing.
if the character engages, the responses will be the same, in the same order (although you can customize it to pick one out of a selection every time, but the important thing is the staggered progression of the courtship).
when attempting a courtship, the target NPC would be interested, not interested, or outright not available.
it all boils down to a problem of sets: how many pairings you have, and how many NPCs are available (if an NPC is simply not available for courtship, there should be no possibility of beginning a courtship, ever, regardless of gender, and that's another variable to consider)
write it as a set formula, and it'll be much easier.
say, the player decides to pick Male, there would be a fixed number of Female NPCs they can possibly court, ever.
if that's too limiting, there's another way: write a set of fixed responses to the player's courtship attempt, regardless of pairing.
if the character engages, the responses will be the same, in the same order (although you can customize it to pick one out of a selection every time, but the important thing is the staggered progression of the courtship).
when attempting a courtship, the target NPC would be interested, not interested, or outright not available.
it all boils down to a problem of sets: how many pairings you have, and how many NPCs are available (if an NPC is simply not available for courtship, there should be no possibility of beginning a courtship, ever, regardless of gender, and that's another variable to consider)
write it as a set formula, and it'll be much easier.
I have both engines but yes I am using VN Maker
The matches have been predetermined early on
then it should be a question of whether or not it's possible to make that pair happen, if the player is willing.
simple yes/no conditional.
if there is a progression to be explored by the player, you'll need a variable (or a set of variables, one for each NPC) that'd tick up after each good interaction.
once the variable reaches it's target, the match will happen.
that depends on the writing though, because you can make that happen during or after the dialogue, but it boils down to that: score points, check maximum, and resolve.
Oops, my bad for not checking, I was talking RPG Maker. The concept likely still works, but I don't know the exact mechanics.
I know I've considered going back to rpg maker lol
Mechanically, it's an easy thing to do. You make a "Show Text" that says "Pick your Gender" or whatever. You give the player a choice ("Add Choice") "Male" or "Female" (your two label names.) Then you set up two labels, one called Male and one called Female. Then set a switch you've named "gender" to being on or off, for male or female, respectively. Every time you want to change something for the different genders, you'd just do a conditional check to see if the switch was on or off, and then you would need to write two different paths for the character, depending on which gender they chose. Here's where it gets tricky, but not from a programming standpoint: It seems to me that you would need to write two sets of dialogue for every interaction and and what actions happen, etc. Because something like gender isn't a simple change to who you can romance. Men act differently around men than they do around women, and women act differently around women. They also tend to act and react differently to situations As for romance, just use variables for each character that add a point for doing something that character likes. You can then compare the totals at the end to decide who the player ends up with. Of course, since you've scripted different scenarios for male and female, you've scripted all the encounters so there's no chance of romances happening that you the game designer don't want to see happen. If you don't actually want to have to write the game twice for different genders, you could always just section off the parts of the game that feature romance behind a conditional check on whether the gender switch is on or off.
[edit: if you are unsure of how to use VN Maker, I'd suggest watching this person's tutorial series on it as I found it to be the easiest to understand (this link is only to the first in the series, but if you already know the basics, you should skip ahead to the one she does about choices):
[edit: if you are unsure of how to use VN Maker, I'd suggest watching this person's tutorial series on it as I found it to be the easiest to understand (this link is only to the first in the series, but if you already know the basics, you should skip ahead to the one she does about choices):
Original thread: https://forums.rpgmakerweb.com/threads/protagonist-choice-and-gender-locked-romances-help.134263/