Ok this might be a weird one and is something I have been thinking about for a little while. I want to put genders and sexuality into my game but am stuck on a problem. I have a script for genders so that part is taken care of, but my question is how would I go at making skills for the player or enemy to use that tells what sexuality the target is and if they don't match then it doesn't hit.
For example if my succubus uses a skill on a character that is lesbian then it has a chance to hit, but if they use it on a male character that is gay then it either doesn't hit or it does damage but doesn't inflict the status that the skill would inflict.
Thanks for any help and if this is somehow in the wrong place then please let me know and sorry if this request seems strange.
What does the script do? Doesn't it have any note tags you could use for what you want? If not, maybe assign states to the genders and set them up so that they protect the characters from certain attacks. Would that work?
I would go a different route, although it does not involve to hit but a no damage effect.
basically you can define several dozen different damage elements. so in addition to all other elements, you can pair that with gender descriptions.
like instead a damage element "fire" you have two "fire-male" and "fire-female". And in the exemplar above the gay male would be invulnerable to "fire female" while the lesbian female remains vulnerable to that.
and when the succubus then casts a spell with "fire-female" damage, it would hurt the female but not the male.
Takes a while to set it up, but doesn't even need the tags.
and by the way: tsukihime's tag manager script can define gender tags and is much more versatile
You need to add 1 vallue to each character:
- Gender/Sex (playing character)
- Attracted to (NPC's)
If the "Attracted to" of the target matches the "Gender" of the caster, then it is a hit.
There are multiple ways to add values to the characters. The easiest way would be a variable. This means you need to add a new variable for each character, though. For MV there is a yanfly plugin that assigns self-variables to events. I don't know if something like that exists for Ace too, but that is what I would look for.
---
It would be easiest to make the playing character act as bisexual by default. That way, the player can choose to flirt with male or female characters or both and you as a developer don't have to worry about their sexuality. Only the sexuality of the NPC's.
You do not have to mark the playing character as bi, but if you program it as bi, the player is free to flirt with whoever they choose, no matter their sex, gender or sexuality.
Hope that helps.
Edit: I just notice you want to use it in battle? Oh... That would be a bad idea, though. At least if you want to use it for damaging skills. If you have skills that work against gay people, but not straight people, then it might look like an in-game hate crime.
As others have stated, you could accomplish it without a script. Sounds like an interesting mechanic. If I had to code it, it probably would've been the exact same way I currently use my "Revenge" system.
Or, at least similar to that.
Basically, I just have "states" and "elements" cover it. Every weapon/skill in my game will inflict the "Revenge" state on an enemy... except I make that enemy immune to every "Revenge" state, except the one I want them to react to. I just used some "Trickery" to get around the game doing things I didn't want it to do. Namely, there are no messages for FAILING to inflict "Revenge" on someone. There is also no "icon" for the state, and it wears off pretty immediately. The most you might notice is if the enemy already has a state... the "boxes" shift to "center" having two. Even though you can't see the second one.
So, I would basically give each gendered character's skills only access to their own gender. So, if a male has say "Attract", it would only be the male version of "Attract" (Basically, creating the skill multiple times, one for each involved gender). Any enemies that wouldn't be attracted to a male, would simply be 1000% immune to the skill or it's inflicted state.
Granted, you'll run into weird issues where characters could be affected by more than one gender, and you'd have to deal with multiple of the same state... but you could also just make having one of that state make them immune to having more of them.
So, say Attract gives the "Charm" effect. So, they've got "Male Charm" skill on them. It does what "Charm" does, but you can also add "1000% Immunity to X Charm" as well. So, immunity to charming from any other gendered source.
The engine is amazingly versatile as long as you're willing to play around with it. It might not be as "easy" or "clean" as a script, but it's definitely quickly doable WITHOUT a script.