RimWorld

RimWorld

Need help making a Food Mod
So i'm trying to make a very small mod that adds a couple of food items to the game which also provide a unique effect to whoever or whatever eats it. I found a really helpful guide so far and I was following along, but it seems to only go into detail about making a drug, I didn't see anything about food items yet.

I already have a couple of textures for the mod and i made the basic About file with the About.xml
I'm trying to create a def file for the item right now and I'm completely overwhelmed. I have 0 coding/programing knowledge which is definitely the biggest contributor I bet lol
I was going to try and base it off of an already existing def file for the base game Simple Meal, but I couldn't find it anywhere.

Btw here's the guide im following incase anyone is wondering.
https://docs.google.com/document/d/10lVMVRcOPJUNOFet1WKMZxU95eMirW3Moz1qh27RK8U/edit?tab=t.0#heading=h.j6znhzwi9pwp

Tldr; I'm a dunce and need help making a def.xml file for a food item
< >
Showing 1-3 of 3 comments
Astasia Mar 20 @ 10:37am 
Simple meals are in:
*Steam\steamapps\common\RimWorld\Data\Core\Defs\ThingDefs_Items\Items_Food.xml

If you want them to have special effects I would suggest looking into the files for something like Vanilla Cooking Expanded and seeing how they do it.
Note that if you wanted to have a food item that has a complex effect, you generally do want it to be considered a "drug." For example, beer is considered a drug in the base game and the mods like Vanilla Cooking/Brewing Expanded add in coffee as a "social drug" because that's an easy way to mod them in when pawns are eating them for their effects rather than for nutrition alone. (I.E. if coffee only has .07 nutrition but some other mood and learning bonus effects, it needs to be a drug or else pawns will only consume coffee to satisfy hunger, and they'll consume like 12 at a time.)
Last edited by Wraith_Magus; Mar 20 @ 1:04pm
Astasia Mar 20 @ 3:23pm 
If it's a drug it's not "food" and colonists will never eat it to fill hunger (it can fill hunger, but they just wont consider it as food and would rather starve to death than "eat" it on their own). VCE has gourmet meals with spices that have various hediff effects, colonists will eat those like normal meals without any micro involved, and gain a buff for a while after.
Last edited by Astasia; Mar 20 @ 3:24pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Mar 20 @ 5:21am
Posts: 3