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

Topics - Onion

#1
Hi, like the subject states I'm wondering if there is any way (through XML) that I can restrict a humanlike race's ability to equip certain types of apparel.  For example, is it possible to create a monk-type pawn that can fight with their fists, but not equip weapons?  Or a race that can equip all apparel types except for helmets, due to their big melon heads?

I saw that each piece of apparel has a <bodyPartGroup> that it covers, so the first thing I did was modify my custom race's BodyDef so they only had a single body part (that I named 'Core').  The BodyDef worked and my race only had a single body part but they were still able to equip all types of apparel.  I have also looked through the humanlike ThoughtDef to see if I can modify something there but I don't think that will help me.

Looking at it now, I see that each piece of apparel also has a <thingCategory>, like 'headgear'.  Is there any way to restrict thing categories per race or pawn?
#2
Hey guys, does anybody know if there is a way to set backstory categories for different PawnKinds using xml?  I was able to have a modded faction use custom backstories by changing the <backstoryCategory> in the FactionDef, but I would also like specific backstories tied to the different PawnKinds.  No matter what I put for the <backstoryCategory> in the PawnKindsDef, all the different pawn types only spawn with backstories from the <backstoryCategory> that was chosen in the FactionDef.

I was looking at Diana's Orassan mod to see how it was done and it looks like this mod has the same problem - even though her pawnkinds have different <backstoryCategory> tags, like OrasaanGunner and OrassanVillager, they all spawn with the same pool of available backstories.

I don't know anything about modding, but I looked at the XML Auto-Documention for Rimworld and it seems like changing the <backstoryCategory> in the PawnKindDef should work.  Can anybody help?