Page 1 of 1

[Tutorial] How to Reliably Assign Genders in FTL events

Posted: Sun Oct 27, 2013 11:28 pm
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.

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

Posted: Mon Oct 28, 2013 2:19 pm
by dalolorn
May I note that I have gotten a female and a male "Charlie" on several occasions?

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

Posted: Tue Oct 29, 2013 12:03 am
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.