[Need Help] Manipulating rest status and thought stages

Started by ToastyBuns, January 17, 2015, 02:34:08 PM

Previous topic - Next topic

ToastyBuns

Making coffee mod, need the helps 'n' stuff!

2 Questions:

Number 1: Is there a way of manipulating the rest of a colonist through eating food or a thoughtdef?
Number 2: Is there a way to have a thoughtdef that has multiple stages - for example buzz from coffee then after cravings for coffee?

Appreciate the help ty ;)



Rikiki

Number 1: You can try something like this in a .dll:
pawn.food.Food.CurLevel += 25f;

Number 2: very easy with some dll.

  • Check if colonist has toughtStage1
  • If no, try gain thoughtStage1
  • If yes, set thoughtStage1's age to its max duration (so it will be removed) and try gain thougtStage2