Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - black-rat

#1
Help / Modding new traits
September 14, 2016, 08:59:42 PM
Hey everyone, new player, first time poster, first time modder.

I'm wanting to get into modding and I want to start small. I was thinking maybe adding traits would be a good place to start. I'm looking around at the XML files right now, but from what I can gather, the actual effects of the traits may require some C# coding?

For example if we look at Psychopath:

  <TraitDef>
    <defName>Psychopath</defName>
    <commonality>0.2</commonality>
    <degreeDatas>
      <li>
        <label>psychopath</label>
        <description>NAME has no empathy. The suffering of others doesn't bother HIM at all. HECAP doesn't mind if others are butchered, left unburied, imprisoned, or sold to slavery - unless it affects HIM. HECAP also feels no mood boost from socializing.</description>
      </li>
    </degreeDatas>
  </TraitDef>


I don't see where the the game would be able to pick up the logic for the actual trait from just this.

Am I wrong in my assumption here?

If not, anyone got an example I can look at?

Thanks.