Skip to content

Animal Behaviours Extra Defs

juanosarg edited this page Aug 8, 2021 · 2 revisions

The AnimalBehaviours module of Vanilla Expanded Framework adds three new Defs:

  • GenericToggleableAnimalDef: Defines animals whose spawning can be selected by the player. These animal toggles will appear on the Vanilla Animals Expanded menu options, which may not be desireable to the modder.
  • AnimalsUnaffectedBySelfTameDef: A list of animals that will be unaffected by the game's self-taming event.
  • AnimalsDisabledFromQuestsDef: A list of animals that will never be added to game's quests (for example Animal Hospitality quests).

How do I use this code?

Defs are added just by creating an XML file for them. Examples:

<AnimalBehaviours.GenericToggleableAnimalDef>
	<defName>Example_DisabledAnimalSpawns</defName>
	<toggleablePawns>			
		<li>Rat</li>
	</toggleablePawns>							
</AnimalBehaviours.GenericToggleableAnimalDef>
<AnimalBehaviours.AnimalsUnaffectedBySelfTameDef>
	<defName>Example_DisabledAnimalSelfTames</defName>
	<unaffectedBySelfTamePawns>			
		<li>Rat</li>
	</unaffectedBySelfTamePawns>							
</AnimalBehaviours.AnimalsUnaffectedBySelfTameDef>
<AnimalBehaviours.AnimalsDisabledFromQuestsDef>
	<defName>Example_DisabledAnimalFromQuests</defName>
	<disabledFromQuestsPawns>			
		<li>Rat</li>
	</disabledFromQuestsPawns>							
</AnimalBehaviours.AnimalsDisabledFromQuestsDef>

Poor rat, why do you hate rats? You monster

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Genes

Apparel

Cuisine

Furniture

Plants

Deprecated

Clone this wiki locally