Ludeon Forums

RimWorld => Mods => Help => Topic started by: C.B. Klausberger on February 25, 2017, 04:36:41 PM

Title: Adding thoughts in Rimworld
Post by: C.B. Klausberger on February 25, 2017, 04:36:41 PM
After searching about 3h through everything with "ThoughtDefs" in it, through the Methods of the Game via ILSpy and getting nearly a "berserk"-Mood myself,  i would really appreciate if anybody could tell me, how to add a thought for the following event:

- added a JoyGivers.xml
  <JoyGiverDef>
    <defName>WYFEatFrench_Fries</defName>
    <giverClass>JoyGiver_Ingest</giverClass>
    <baseChance>2.5</baseChance>
    <thingDefs>
      <li>French_Fries</li>
    </thingDefs>
    <joyKind>Gluttonous</joyKind>
    <requiredCapacities>
      <li>Manipulation</li>
    </requiredCapacities>
  </JoyGiverDef>


-added Thoughts_Memory_Eating.xml
<Defs>

  <ThoughtDef>
    <defName>AteFrench_Fries</defName>
    <durationDays>0.25</durationDays>
    <stackLimit>1</stackLimit>
    <stages>
      <li>
        <label>ate lavish meal</label>
        <description>French Fries are everyones favorite. Even without mayonnaise... </description>
        <baseMoodEffect>2</baseMoodEffect>
      </li>
    </stages>
  </ThoughtDef>

</Defs>


- just wanted to add the new thought on the "French_Fries"-Eating event in my .dll file via Microsoft-VS, but it always ended like... confusion.

How does the ThoughtGiver method work, or how do i get there the easiest way?


Thanks in Advance, really really!   :-[
Title: Re: Adding thoughts in Rimworld
Post by: C.B. Klausberger on February 26, 2017, 02:42:38 AM
Okay found it out myself, just needed to add <tasteThought>AteFrench_Fries</tasteThought> in the Items_Food.xml