[Tutorial] How to Reliably Assign Genders in FTL events

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
User avatar
NewAgeOfPower
Posts: 289
Joined: Wed Jan 02, 2013 1:52 am

[Tutorial] How to Reliably Assign Genders in FTL events

Post by NewAgeOfPower »

Note: only Human & Ghost Male/Females have differing sprites.

Note: Tutorial is crude. Procedure is inelegant.


Disclaimer: You're going to have to understand how event structures work. CaptainShooby's tutorial is pretty good for basics, but you'll need some more hands-on experience.

Ever get aggravated at not being able to create the exact role-playing atmosphere you want?
Annoyed at how gender="" and sex="" simply does nothing, in the <crewMember> parameter?


First step, decide what your characters names & genders are.

For example, suppose you want to have a male "Riker" & female "Troi" on your starship...

Go create a names.xml.append in your mod folder.

add to the male list

Code: Select all

<nameList race="human" sex="male">
</nameList>

Code: Select all

<name>Riker</name>
and female list

Code: Select all

<nameList race="human" sex="female">
</nameList>

Code: Select all

<name>Troi</name>
Check the original code (names.xml) to ensure there is no Troi in males, and no Riker in females (it shouldn't in vanilla, but perhaps you have some odd extra names mod patched somewhere, hmm?)

Now go back to your event.xml.append file, and add:

Code: Select all

<crewMember amount="1" class="human">Riker</crewMember>
and/or

Code: Select all

<crewMember amount="1" class="human">Troi</crewMember>
to the desired events which handed out crew.

Zip up your mod, rename and test it out.


Hat tip to both kartoFlane & Sleeper Service for untangling my SNAFUs and allowing me to confirm gender & sex parameters do nothing.
Last edited by NewAgeOfPower on Wed Oct 30, 2013 1:54 am, edited 5 times in total.
dalolorn
Posts: 532
Joined: Sun Sep 23, 2012 8:06 am

Re: [Tutorial] How to Reliably Assign Genders in FTL events

Post by dalolorn »

May I note that I have gotten a female and a male "Charlie" on several occasions?
User avatar
NewAgeOfPower
Posts: 289
Joined: Wed Jan 02, 2013 1:52 am

Re: [Tutorial] How to Reliably Assign Genders in FTL events

Post by NewAgeOfPower »

dalolorn wrote:May I note that I have gotten a female and a male "Charlie" on several occasions?
You may. Dismissed. :twisted:





All joking aside, check to ensure your current names.xml doesn't have both Female & Male Charlies, because I JUST retested my solution.

I added "Das Kapitan" to male, and "ARISA" to female, went back to edit events.xml.append and 10/10 game start events later, I've had 10 female ARISAs and 10 male Captains.
Post Reply