Adding Gender Properties

This has probably been discussed before but I have no idea how to search for this specifically.

I have an idea for a game where you can choose between 8 actors to make a party of 4 at the start of the game. There are 4 males and 4 females. What I'm wanting to do with that is make it to where certain states or enemies affect the actors based on gender, as well has having some gender locked equipment. A similar thing was done in Final Fantasy 12 were a certain boss would target females most often. Also, in the Pokemon series, the move attract would only work on pokemon of the opposite gender.

Some of Yanfly's plugins can make equipment depend on actors or classes so I can cover that part. But are there any tips or advice on how to handle the battle aspects?
Just check the actor ID and see if it's one for a male or female.

The Pokémon example can be done with Yanfly's Selection Core, and the Final Fantasy would be in his Battle A.I.

You can get fancier by putting a <male> and <female> notetag onto the different actors and referencing that - so, for example, instead of looking at target.actorId(), you'd check target.actor().meta.female.

For anything more specific than that, you'd need to give a specific example of something you want to do and how it should mechanically, mathematically work.
there might be a few plugins for this, and can have <male> and <female> tag
on equipment, if the actor has this tag, it can be equiped, else it cannot.

if an equipment doesn't have anything, it works on both.

you can try to look for "gender plugins rpg mv" and see what pops up.
there might be a few plugins for this, and can have <male> and <female> tag...
you can try to look for "gender plugins rpg mv" and see what pops up.

for the equipment, they wouldnt have to look at all. if they did as Turan said, they can use yanfly's equipment requirements plugin to so that the actor needs the notetag to be able to use it. I assume OP already had in idea it could do that based on them mentioning it, but it just requires a custom requirement notetag
for the equipment, they wouldnt have to look at all...they can use yanfly's equipment requirements plugin
Yeah. I've seen a few plugins that were about adding gender, and...I guess it's cute, or whatever, but not super point-ful.

Whatever they're doing is just adding a middle layer that would function identically to checking the actor ID, class ID, notetag, however you have it set up.
Yall were fast! Thanks for the quick responses.

You can get fancier by putting a <male> and <female> notetag onto the different actors and referencing that - so, for example, instead of looking at target.actorId(), you'd check target.actor().meta.female.
I didn't know notetags could be referenced directly. As long as I can use it effectively, this opens up a whole world of possibilities.

Yeah. I've seen a few plugins that were about adding gender, and...I guess it's cute, or whatever, but not super point-ful.
Could you point me in direction of those plugins? I may not be able to get much use out of them but it'd be interesting to look them over.

for the equipment, they wouldnt have to look at all. if they did as Turan said, they can use yanfly's equipment requirements plugin to so that the actor needs the notetag to be able to use it. I assume OP already had in idea it could do that based on them mentioning it, but it just requires a custom requirement notetag
Yes, Yanfly's plugin can restrict equipment based on actor ID.

Thanks for the help. I'll keep this open for a while longer in case someone can provide additional insight.
You use yanfly plugins? Good. Then I have the perfect method:

Make 2 states: male and female.

Now use PassiveStates by yanfly to bind those states to certain actors. Now this state can simply be used to check if a character is male, or female, or non binary, or gender fluid (each is a different state)

You can edit the passive states like any other state, give them strengths and vulnerabilities.

And once you've done that, you can also do the same thin for sexualities: make a state for bi, for gay, for lesbian, for asexual etc etc.

There is no limit on how many states you use for this, so go nuts.

Oh.... and those passive states work on enemies as well! Don't even need to make different ones.

So, back to genders. You can make an element that is only strong against males or females, and have skills with that element.
I forgot about states, as this can be powerful if used nicely (same for difficulty check).
but male/female is definitely a way as for equip requirements.

there are many ways, even for races (elf, mystique, wolves, fairy etc) which could
count into them.
Could you point me in direction of those plugins? I may not be able to get much use out of them but it'd be interesting to look them over.
Not to be unhelpful, but...Google it? That's what I would have to do 😛 I don't, like, keep a document with links to plugins I've never used 😉

Yes, Yanfly's plugin can restrict equipment based on actor ID.
Based on anything. So if actors 1-4 are male, 5-8 are female, and you only want this ribbon to be equipped by females, you'd do
Code:
<Custom Equip Requirement Condition>
condition = user.actorId() > 4;
</Custom Equip Requirement Condition>

Or if you preferred the notetag route,
Code:
<Custom Equip Requirement Condition>
condition = user.actor().meta.female;
</Custom Equip Requirement Condition>
I forgot about states, as this can be powerful if used nicely (same for difficulty check).
but male/female is definitely a way as for equip requirements.

there are many ways, even for races (elf, mystique, wolves, fairy etc) which could
count into them.
Yeah, dude. Passive states are awesome. You can have races, gender, tribes, political preferences, sexual preferences, hobbies,

Tip: Give them a low priority. You don't want passive states to overshadow variable states.
I thought about using states but I wasn't certain if it was viable. I'll look into how to utilize states for targeting and whatever else I may need.

I was planning on alternating male/female characters in the database since that's how they appear on the sheets, but as Turan was saying, it would be beneficial to separate male/female.

Thanks everyone for all the help. Your ideas have given me a good starting point in implementing these mechanics. I'm still a noob at scripting but I'm good at picking up.
I forgot about states...there are many ways, even for races (elf, mystique, wolves, fairy etc) which could
count into them.
I thought about using states but I wasn't certain if it was viable.
It is viable, but you need to have some care with that method.

The trick with passive states is they're checked every update, to see if they have a condition and should be active. That's irrelevant when you have one or a handful.

But if you decide to use passive states for every little thing and you get dozens piled up on your actors - I know someone who ended up with 200 - it can generate noticeable lag.

That's why it's more advisable to actually integrate it into the actor via a notetag or adding a property to the actor object (or use an existing property of the actor, like their ID):
- no additional CPU overhead
- no need for a plugin
- there's nothing you'd be doing where you'd check a state where you can't just as simply check that.
I use this plugin:
https://forums.rpgmakerweb.com/index.php?threads/gender-plugin-pg_gender-js.141676/#post-1253061
to distinguish between male, female and neuter actors. There are note-tags for actors, or you can change an actor's gender with a plugin command. It gives various script calls to check whether party members or actors are male, female or neuter, for instance.

For gender differences, I use states in conjunction with the YED_RetainStatesOnDeath plugin. If I remember correctly, you could also use the Yanfly passive states plugin, but only if you assign gender by note-tag, but it is a while since I have played with Yanfly's Auto Passive States.

One thing to be aware of is that plugins seem to apply to actors fairly late in the process of setting up actors. If your "MaleActor" state increases HP, they will only be initialised to have the HP they would have had were they not male. Similarly, if you let genders have gender-specific armour, you will not be able to equip it in the actor tab of the editor.

Edit:
Spoiler: My Game...
My current project gives the party one specific female actor, then lets the player choose any 3 from 14 (7 males and 7 females). If the party chosen is all female, a specific male may be recruited later to interact with the succubus.

Play is easier with mixed parties. Females are better at magic and males at close-combat. Males are more robust, but females can earn money (at cost of their approval rating) in circumstances that would cost money. Oh, and there is a slight chance that combat against members of the opposite sex handicaps or stops an actor from functioning during combat. Most troops of enemy tend to be the same gender.
For gender differences, I use states in conjunction with the YED_RetainStatesOnDeath plugin. If I remember correctly, you could also use the Yanfly passive states plugin
Yes - the only functional difference between a passive state and one that's retained on death is how it becomes active/removed.

but only if you assign gender by note-tag
I don't see why, there's no need to use a state if you're using notetags.

Similarly, if you let genders have gender-specific armour, you will not be able to equip it in the actor tab of the editor.
It's true that plugins cannot alter the editor. But I don't see why this is necessarily true. If you make armor that is of an armor type that actor can equip, then you can equip it in the editor.

Your notetags for being gender-specific in the game should be restricting it, rather than allowing a type of armor the actor normally couldn't use.
I don't see why, there's no need to use a state if you're using notetags.
States are a convenient way to, for instance, stop actors being obsessed with or charmed by their own gender, adjust parameters such as max HP, max MP and ATT, adjust sp-parameters such as target rate and guard effect, adjust element rates and give the actor a chance of inflicting "Charmed" or "Obsessed" on enemies of the opposite gender. You could copy and paste for each actor, but if you decide to adjust things later, if it is done by states it only has to be altered in one place, and is easy to keep track of.

I haven't had cause to change an actor's gender during play, but if a developer wanted to, it would be easy with states, particularly if the states are applied automatically.

Regarding gender-specific armour, I don't really use it; a while ago I did experiment with having ordinary clothes as a type of armour, and limiting what actors wear (females wear peasant women's dresses and ladies' gowns etc.), but that mechanism didn't seem worthwhile in terms of gameplay. I don't know what OP has planned, though, so I thought that it may be worth a mention. Sounds like a good idea to make the states restrictive rather than enabling in terms of gender-specific equipment, though.
I thought about using states but I wasn't certain if it was viable. I'll look into how to utilize states for targeting and whatever else I may need.

I was planning on alternating male/female characters in the database since that's how they appear on the sheets, but as Turan was saying, it would be beneficial to separate male/female.

Thanks everyone for all the help. Your ideas have given me a good starting point in implementing these mechanics. I'm still a noob at scripting but I'm good at picking up.
Not just states.... PASSIVE states. Those are permanent.
To OP - if you use states that are retained upon death, make sure that instead of using the editor command "Recover All" when, for instance, the party sleeps, you use something like "Change HP", "Change MP", and "Remove State" [for whichever states you want sleep to remove] for the entire party.

Edit: Trihan has done a gender plugin (my one was a development from his). FenrirKnight did another, which has the facility to use different text depending upon an actor or party member's gender ("Hello miss" instead of "Hello mister", for example).
To OP - if you use states that are retained upon death, make sure that instead of using the editor command "Recover All" when, for instance, the party sleeps, you use something like "Change HP", "Change MP", and "Remove State" [for whichever states you want sleep to remove] for the entire party.
Indeed. That is why the passive states plugin. That makes certain states permanent and impossible to remove. So can't be removed accidentally either.
States are a convenient way to, for instance...
Yes! Very true, if you want your genders to have mechanical differences that aren't accounted for by having separate classes and equipment, you would definitely want to use a state.
Indeed. That is why the passive states plugin. That makes certain states permanent and impossible to remove. So can't be removed accidentally either.
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.

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