[Tutorial] How to Reliably Assign Genders in FTL events
Posted: Sun Oct 27, 2013 11:28 pm
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
and female list
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:
and/or
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.
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>
Code: Select all
<nameList race="human" sex="female">
</nameList>
Code: Select all
<name>Troi</name>
Now go back to your event.xml.append file, and add:
Code: Select all
<crewMember amount="1" class="human">Riker</crewMember>
Code: Select all
<crewMember amount="1" class="human">Troi</crewMember>
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.