Logo Platform
logo amplifiers simplified

Move FactionMajorAffinity into trait for custom faction (mod)

Reply
Copied to clipboard!
7 years ago
Dec 21, 2017, 11:08:44 AM

Q: What I need

A: I need to create little mod for adding Horatio FactionAffinity into trait.


I can't understand, how I can add FactionTrait into mod.


- Public/Simulation/PersonalityDefinitions.xml?


<?xml version="1.0" encoding="utf-8" ?>
<FactionAffinity Name="HoratioAffinity" SubCategory="Trait" Hidden="false" Custom="true" Cost="50">
<Command Name="TransferResources"               Arguments="EmpireManpower,1000"/>
<SimulationDescriptorReference Name="AffinityHoratio"/>
<SimulationDescriptorReference Name="AffinityGameplayHoratio"/>
</FactionAffinity>



0Send private message
7 years ago
Dec 22, 2017, 10:24:38 AM

Hey osfox!


As said in this post, the "Gene hunter" ability is linked to the name of the faction's FactionAffinity, which is why it's currently impossible to have this gameplay feature in a faction trait.

However, the other factions' gameplay is based on the descriptors they give, so you probably do that with other faction gameplay.


You can look at the FactionTraits FactionTraits[Major].xml in the game's files to see how the "regular" traits are defined, 

and look at the FactionAffinities in FactionTrait[Affinity].xml to see which SimulationDescriptorReference you may need to include (stuff like "AffinityGameplayCravers").

Updated 7 years ago.
0Send private message
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message