Stellaris

Stellaris

Same Phenotype Compatibility
DSECool  [開發人員] 2019 年 9 月 21 日 下午 4:26
HOW TO MAKE YOUR OWN VERSION
If you wish to make your own version of this mod, here's how to do it:

1. Find mod file, folder will be named "Same Phenotype Compatibility"

2. Find mod (or vanilla files) you wish to make compatible and locate the added species id

3. Open game_rules file, and follow this general pattern:

AND = {
OR = {
is_species_class = HUM
is_species_class = MAM
}
OR = {
root = { is_species_class = HUM }
root = { is_species_class = MAM }
}
is_crossbreeding_possible = yes
root = { is_crossbreeding_possible = yes }
}

What this is saying in English is that the target species must be Humanoid OR Mammalian AND the root species (root referring to which species triggers it, which will be one of the defined species) must be Humanoid OR Mammalian AND target species must allow crossbreeding AND root species must also allow crossbreeding.

So if one were to want Humanoids and Mammalians to be compatible with Anime portraits then the code might look something like this:

AND = {
OR = {
is_species_class = HUM
is_species_class = MAM
is_species_class = ANIMETIDDIES
}
OR = {
root = { is_species_class = HUM }
root = { is_species_class = MAM }
root = {is_species_class = ANIMETIDDIES}
}
is_crossbreeding_possible = yes
root = { is_crossbreeding_possible = yes }
}

I strongly recommend that rather than editing my mod directly, which can cause problems especially if/when I update the mod, that you create a copy of it in your mod folder. Rename the file to something like Same Phenotype Local, copy the .mod file and give it a similar name, then open the copied .mod file and change name = "Enter Title Here".


IMPORTANT NOTE: CODING IS CASE SENSITIVE, ALSO DO NOT FORGET " " { } = WHERE RELEVANT
最後修改者:DSECool; 2019 年 9 月 21 日 下午 4:29