Adding Gender Properties

You may have realised that I don't like using the "Recover All" command in sleep. There are other states that I don't want removed by sleep.
Just to put it out there, if you asked, it would be pretty trivial to make a little plugin extension that made states that bypass death removal also not get removed by the Recover All event command.

I'm sure you have a single chunk of commands you copy and paste between your inns at this point, but it could've saved you that effort (and similar advice for anyone reading this and considering that route).
You may have realised that I don't like using the "Recover All" command in sleep. There are other states (such as "Poison", "Disease", and "Horny") that I don't want removed by sleep.
Just wanted to make sure we're all on the same page here:

1730009829747.png
You may have realised that I don't like using the "Recover All" command in sleep. There are other states (such as "Poison", "Disease", and "Horny") that I don't want removed by sleep.

I'll take "sentences I could have done without" for 500, please Alex.
Just to put it out there, if you asked, it would be pretty trivial to make a little plugin extension that made states that bypass death removal also not get removed by the Recover All event command.

I'm sure you have a single chunk of commands you copy and paste between your inns at this point, but it could've saved you that effort (and similar advice for anyone reading this and considering that route).
Thank you for the offer. I really appreciate it, but I wouldn't use the "Recover All" editor command for sleep anyway, so unless someone else needs it, you probably have better uses for your time.

I use a common event for sleep to add a lot of HP and MP, remove some (but not all) states, increase time passed, and do things such as apply the "Elated" or "Depressed" states if a party member's approval rating is very high or low.

In the current project, the sleep common event is called from the main menu, but the menu option is hidden unless the party is inside their tent. In the previous project, the player had to pay the barmaid or inn-keeper of whichever inn they were in, which triggers a move-route into the bedroom, then sleep.
Using passive states is probably the best way to go for most circumstances. There are a couple of reasons why I went with states that aren't removed by death as my usual method. Firstly, although I thought it unlikely that I would ever want an actor to change sex mid game, if I did decide to do so, it would be easy to change the actor's gender state.

Secondly, I experimented with having a small number of actors but letting the player select a face (which determines both body and gender), class, and input a name for each party member. For passive states to act as passive states (not be removed by either death or "Recover All"), they have to be assigned by a notetag, or by a notetag of the gender plugin, not during the early stages of play.

You may have realised that I don't like using the "Recover All" command in sleep. There are other states (such as "Poison", "Disease", and "Horny") that I don't want removed by sleep.
You want characters to change sex in the middle of the game? Do you mean sex or gender? If they get a sex change, it means they lose their peepee and get a vayvay, or lose their vayvay for a peepee. A gender change is simply the person identifying as the other sex.

The thing is, if it is going to be a gender change, then not much would change to the characters stats, right? Only the presentation would change (speaking from a dev's POV). You could just change the name and images of that actor.

If it is a sex, then it is in my eyes the best option to just remove the old-sex character, and replace it with the new-sex character.

Like when a man becomes a women, then when you make the sex-change happen, you remove the male character (with the male state and all) and replace it with a similar looking female character (with female state at all).

This has other additional features. Lets say you have a Bruce how later on becomes Caitlyn, you can have a condition in an event checking: "Is Bruce in party" to know it is still a man, or "Is Caitlyn in party" to find out it is after the sex change. It also instantly makes Caitlyn be able to wear after-sex-change-clothing, while Bruce wears his pre-operation-suit. (Like Bruce might wear lumberjack vests, while Caitlyn wears a flower dress and heals.)

I think, replacing the character with a new character during a sex change has 10x as many upsides as trying to change everything about the original character during a sex change.

And somehow it even makes sense: Bruce would be considered dead and Caitlyn would start a new life as a new person.

And I assume this would be only 1 character in the game, that changes their sex, right? If it was more characters, then this might be a hassle... but if you have more characters change their sex in a single story, then it either is a story about sex change, or else it is too many sex changes. 😛 I try to say: If it is not the focus of the game, then don't make it a common thing. 1 sex-change in a game is already woke. And more realistic. A sex-change operation isn't really that common.

---

However... If you still really want your genders to be variable, then instead of binding the states to an actor, bind it to equipment. Lock that equipment (in slots specially made for sex/genders) with the equipcore, also by yanfly.

Simply make a slot called Gender (instead of Weapon, Head, Chest, etc.)
Make equipment for each gender, and bind the state to that equipment. Note that this doesn't have to look like equipment to the player.

Make sure each actor has a gender equiped at the start. Those are locked with EquipCore, so the player can't unequip it. However, you as dev can use event commands to change that equipment, simply changing a man into a woman, or a woman into a man.

If you do it like this, don't forget the unequipped sex/gender to be removed from players inventory right after the sex change. It would seem real weird to the player if they suddenly find a female in their equipment. 😛
Thank you for the offer.
Oh. And, again, in case the OP is considering it or anyone else comes across the thread...that's actually built into the plugin. There's a Bypass Recover All notetag.
You want characters to change sex in the middle of the game?
As I have said, probably not. However, it has been done in RPGs before, so I have considered how to do it. (The first one of the "Might and Magic" series, "Might and Magic Book One: Secret of the Inner Sanctum" allows the player to do that.)

To be frank, I don't understand your point where you appear to be trying differentiate sex and gender. Not sure that I want to either, but each to their own.

Your suggestion that to change sex/gender you swap one actor with another sounds flawed to me. It should be possible replicating current experience, class, learned skills, and current states with a lot of work, but the new actor having a different database number from the original one, would make eventing more complicated, and could easily lead to bugs.

"And I assume this would be only 1 character in the game, that changes their sex, right?" You make a lot of assumptions. I have never been interested in writing games with just one party member. If I did ever use the sex/gender change mechanism (which is a big "if") then why would that ability be limited to just one of the party?

Make your own games however you want, though.
If I did ever use the sex/gender change mechanism (which is a big "if") then why would that ability be limited to just one of the party?
I mean, the reverse can easily be asked as well and still be a valid question. It comes down to individual choice, and perhaps dependant on what kind of story one is telling.
As I have said, probably not. However, it has been done in RPGs before, so I have considered how to do it. (The first one of the "Might and Magic" series, "Might and Magic Book One: Secret of the Inner Sanctum" allows the player to do that.)
Wait, so there is the perfect method, which you desmiss cause it makes swapping Impossible, and you don't even wanna swap?

You were the one saying passive states wouldn't work because you can't swap sex.


"And I assume this would be only 1 character in the game, that changes their sex, right?" You make a lot of assumptions. I have never been interested in writing games with just one party member. If I did ever use the sex/gender change mechanism (which is a big "if") then why would that ability be limited to just one of the party?

Make your own games however you want, though.
Dude, what the hell? I didn't even say that. I spend a lot of time and afford to help you, and you give me attitude? Next time, solve your own problems.
Dude, what the hell? I spend a lot if time trying to help you... which I'll never do again. Solve your own problems.
hes not even the one who started the thread.OP hasnt said anything since friday. the "problem" wasnt Piyan's. You two made off with the thread and have been talking about mechanics the OP hadn't even asked for.

Using passive states is probably the best way to go for most circumstances. There are a couple of reasons why I went with states that aren't removed by death as my usual method
fwiw, its easy to just remove a passive from an actor and add another midgame, or give them multiple and use mutually exclusive conditions to control which is active
hes not even the one who started the thread.OP hasnt said anything since friday. the "problem" wasnt Piyan's. You two made off with the thread and have been talking about mechanics the OP hadn't even asked for.
That that is my mistake. I thought I was helping OP.

Still I take time out of my free weekend to help people, just to get mud and poop thrown back at me.
Sorry for the absence, sort of a busy weekend and didn't think to check here.

States may be the better way to go but I think I'll do a combination of that with notetags. I could probably reference passive states in the same way as notetags but the notetag would allow a quick reference while a passive state would allow resistances to other states. Enemies will be able to use skills that can affect opposite/same/all genders so having a passive state to resist the relevant skill would be the way to go.

I'm not planning on any characters changing gender mid game. There's 4 males and 4 females and the player can choose any 4 at the start of the game. Any combination of genders would have it's advantages and disadvantages tho.

There's also a pair of handlers the player can choose at the start as well. Again male and female. The handlers won't participate in battle but they do give different missions and interact with the party members dependent on all genders chosen. Lastly, there's 4 spotters the player can choose before heading into the dungeon, 2 males and 2 females. Each spotter has their specialized field but also interact with the party in a similar fashion as the handlers.

For interactions between characters I can use notetags and in battle use passive states. I've just looked through the help file for Yanfly's Equip Requirements and it looks like I'll have to use scripting to make gender specific equipment. It may be better to use notetag data to reference the character's gender.
Thanks @Robro33 Let’s all make sure to remain focused on OP’s support request. I am fairly certain OP was not asking about…uh. That?
For interactions between characters I can use notetags and in battle use passive states. I've just looked through the help file for Yanfly's Equip Requirements and it looks like I'll have to use scripting to make gender specific equipment. It may be better to use notetag data to reference the character's gender.
You can implement things in your game however you like. But from a duplication of time and effort standpoint, it really doesn't make much sense to do both.

If you need the differences to have mechanical benefits, you can use passive states - although since you know ahead of time which actors are which gender, any Traits you'd put on a state you can simply put directly onto the actor.

I don't see any point in having both a passive state and a notetag.
If you need the differences to have mechanical benefits, you can use passive states - although since you know ahead of time which actors are which gender, any Traits you'd put on a state you can simply put directly onto the actor.
That's solid advice, idk why I didn't think of it. I'll use notetags to save extra processing, like you mentioned earlier, and any traits they need I'll add directly to the actors.

Just one question. How would I go about having certain enemies mostly/exclusively target actors based on gender? I assume notetags would do the trick but idk how to set it up.
As I said many moons and thousands of miles ago, you'd use Yanfly's Selection Core or Battle A.I. 😛

Which one depends on what you actually, concretely want to do - a skill that exclusively targets females (or the opposite sex) will use selection control, whereas having a targeting preference toward a gender would be Battle A.I.
That's right. I hadn't been long got out of bed when I posted earlier so I didn't think about those plugins. I'll do some research into them to see how I can utilize them.

I believe I've gotten enough info for now so I'm gonna see about closing this thread. Thanks for everyone helping me out.

Edit: Umm... I don't know the actual process of closing a thread. Last time a mod saw my post and did it for me. I saw on the forum rules to report it closed so a mod could close it, but idk where to report it at.
The word Report is on the bottom left of every post in every thread 😉
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/adding-gender-properties.172825/