Ludeon Forums

RimWorld => Mods => Topic started by: malonear on May 24, 2021, 06:32:33 PM

Title: Adding permanent manhunter to custom animal mod
Post by: malonear on May 24, 2021, 06:32:33 PM
Hello all! I'm brand new here, and new to modding but have been playing Rimworld for 1000+ hours.  Just getting into modifying xml files and found some decent youtube videos detailing the modification of animals, weapons, and textures.  Thus far I've been able to successfully recreate the steps on those videos.

My question here is how I might go about adding "permanent manhunter" to a customized animal that I'm creating.  I don't quite understand how this line would be worded/added to the xml file and where.

Thank you for your time reading this!
Title: Re: Adding permanent manhunter to custom animal mod
Post by: Alenerel on May 25, 2021, 03:28:10 PM
Idk how to mod, but maybe you want to just give them scaria, which makes them go manhunter permanently.

Also you might want to check how scaria works, maybe you can get from there the permanent manhunter part.
Title: Re: Adding permanent manhunter to custom animal mod
Post by: malonear on May 25, 2021, 10:23:21 PM
@Alenerel That's actually what I was trying to do initially (assign "scaria"). I had located the scaria definition in the xml file "Hediffs_Local_Misc" before, where I had found the lines...

<animalMentalState>ManhunterPermanent</animalMentalState>
<animalMentalStateAlias>Manhunter</animalMentalStateAlias>

If the solution is as simple as attaching a hediff to an animal type, then whether it's called scaria or permanent manhunter is arbitrary to me (so long as the end result is the same, more or less). My roadblock is not knowing how to incorporate that information to an xml race file. I've been able to adjust many of the attributes of an animal, but all attempts at giving it scaria/manhunter/permanent manhunter etc have been met with some type of red message in the log saying "doesn't correspond to any field...".

So, I'm not sure if I'm wording the line wrong, or if I should be modifying a different file other than the animal race xml, or perhaps what I'm attempting is a bit too technical for my current level of understanding (which is admittedly low). Maybe another way of phrasing my original question would be, "how do I attach a hediff to an animal -type?" That could include scaria/manhunter/permanent manhunter, but theoretically could also include any of the other hediffs out there.

Again, if there's anyone out there who's able to shed a little light on this query it would be much appreciated!