Ludeon Forums

RimWorld => Mods => Help => Topic started by: Jdalt40 on August 02, 2016, 01:36:09 PM

Title: Specific thoughts for races is it possible?
Post by: Jdalt40 on August 02, 2016, 01:36:09 PM
Hey just wondering for my Vampire mod, could it be possible for thoughts be for one race only? For example, another race that eats a corpse gets a mood boost while the other race which consumes a corpse gets a mood debuff
Title: Re: Specific thoughts for races is it possible?
Post by: 1000101 on August 03, 2016, 12:56:21 PM
Thoughts can have a ThoughtWorker class.  When they have this, it's the ThoughtWorker class which controls whether a pawn gets the thought and to what degree.
Title: Re: Specific thoughts for races is it possible?
Post by: kaptain_kavern on August 03, 2016, 03:54:58 PM
Pro tip here. (responding to BM this) . Thx E
Title: Re: Specific thoughts for races is it possible?
Post by: Jdalt40 on August 04, 2016, 10:36:01 AM
Oh cool, is there any way I could make one? (I really don't know my way around modding :D)
Title: Re: Specific thoughts for races is it possible?
Post by: 1000101 on August 04, 2016, 03:15:35 PM
You need a C# compiler and to write ThoughtWorker.  It will also help to have a .Net decompiler to reference the core classes (ie: ThouhtWorker :P ).
Title: Re: Specific thoughts for races is it possible?
Post by: Jdalt40 on August 04, 2016, 07:53:57 PM
Ah, this is going to be confusing :D, thank you! :)
Title: Re: Specific thoughts for races is it possible?
Post by: 1000101 on August 04, 2016, 09:18:49 PM
Actually, it's quite simple.  Look at the source for my Pastafarianism mod.  Specifically it's ThoughtWorker.
Title: Re: Specific thoughts for races is it possible?
Post by: Jdalt40 on August 05, 2016, 01:53:05 AM
Okay cool! I will try to get the thoughts in when I get visual arts studio downloaded (my internet hates me :D)