### StartingItemsByIdeologyDef XML Definition Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Meme-Custom-Defs
An example of how to define StartingItemsByIdeologyDef in an XML file. This specific example sets up starting items for an 'Eldritch Cult' ideology, linking it to a corresponding MemeDef and ThingSetMakerDef.
```xml
VME_StartingItemsEldritchCultVME_Structure_ChthonianCultVME_StartingItemsEldritchCult
```
--------------------------------
### XML Examples for Hireable Faction Definitions
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Hireable-Factions
Provides XML examples of how to define hireable factions using the VEF.Planet.HireableFactionDef. These examples showcase different factions with their unique descriptions, pawn kinds, and references.
```xml
PirateA loose confederation of pirate gangs who've agreed to mostly fight outsiders instead of fighting each other.
Pirates don't sow, they don't build, and they rarely trade. Driven by a blood-and-honor culture that values personal strength and ruthlessness, they enrich themselves by raiding and robbing their more productive neighbors.
Their technology level depends mostly on who they've managed to steal from recently. Mostly they carry gunpowder weapons, though some prefer to stab victims at close range.World/WorldObjects/Expanding/PirateOutpost(1, 0.74, 0.83)
Drifter
Pirate
Mercenary_Gunner
piratesPirateVFEP_JunkersA loose confederation of pirate gangs who've agreed to mostly fight outsiders instead of fighting each other.
Pirates don't sow, they don't build, and they rarely trade. Driven by a blood-and-honor culture that values personal strength and ruthlessness, they enrich themselves by raiding and robbing their more productive neighbors.
Junkers utilise warcasket technology and seal themselves in metal tombs in which they raid, steal, plunder and inevitably die. They rarely use melee weapons and prefer to keep at distance to the enemy to fully utilise the powerful warcasket weaponry.UI/FactionIcons/JunkersOutpost(0.74, 0.33, 0.33)
VFEP_Footsoldier
VFEP_Veteran
VFEP_HeavyWeaponsPlatform
piratesVFEP_Junkers
```
--------------------------------
### XML CompMetamorphosis Configuration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Metamorphosis
An example of how to implement the CompMetamorphosis comp class in RimWorld's XML definition files. This demonstrates setting the metamorphosis time and the pawn to transform into, as shown in the Angel Moth Larva example.
```xml
0.4AA_AngelMoth
```
--------------------------------
### XML CompUntameable Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Untameable
Demonstrates how to integrate the CompUntameable class into a RimWorld mod using XML. This example shows how to set the 'factionToReturnTo' property for the Insectoid Queen.
```xml
VFEI_Insect
```
--------------------------------
### CompLastStand XML Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Last-Stand
Demonstrates how to integrate the CompLastStand component into game data using XML. This example shows how to apply the component to an animal and set a specific `finalCoolDownMultiplier` value.
```xml
6
```
--------------------------------
### CompTerrainChanger XML Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Fertilizer
Demonstrates how to integrate the CompTerrainChanger into a RimWorld mod using XML. This example shows how to specify the first, second, and third stage terrains for the terrain change functionality.
```xml
SandAA_FertilizedSandAA_SuperiorFertilizedSand
```
--------------------------------
### XML Example of ConfigurableSpawnerDef
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Configurable-Spawner
An example XML definition for a ConfigurableSpawnerDef, specifying the items that can be spawned, the associated building, and UI elements for the spawner's gizmo.
```xml
MAO_SpawnSmallFishSmallFishVFE_FishTrapperUI/Commands/VCEF_Command_ChooseSmallFishGizmoDescriptionSmallVFE_FishTrapperGizmoLabelSmall5000
VCEF_RawAnchovy
VCEF_RawAngelfish
VCEF_RawGuppy
VCEF_RawHerring
VCEF_RawGoldfish
VCEF_RawMinnow
VCEF_RawClownfish
VCEF_RawSprat
```
--------------------------------
### HediffComp_Spawner Usage Example (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Hediff-Spawner
An example of how to implement HediffComp_Spawner in RimWorld's XML. This demonstrates adding the comp to a hediff and configuring its properties, such as the item to spawn and spawn frequency.
```xml
InsectJelly1255000~6500030falsefalse
```
--------------------------------
### QuestChainExtension XML Example (First Quest)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Quest-chains-system
XML configuration for the first quest's extension in a quest chain. It links to the quest chain definition and sets initial conditions like minimum days since start and repeatability.
```xml
VQE_TheGeneratorQuestChain20falsetrue7
```
--------------------------------
### XML CompSummonOnSpawn Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Summon-On-Spawn
Demonstrates how to use the CompSummonOnSpawn comp class in XML. This example shows how to configure a Kikimore Queen to summon Kikimore Warriors, specifying the pawn definition and the group size.
```xml
WMAux_KikimoreWarrior
2
5
```
--------------------------------
### CompRefueling XML Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Refueling
An example of how to implement the CompRefueling component in XML. This snippet shows how to add the comp to a creature's definition, specifying the fueling rate, radius, and the types of buildings that should be affected.
```xml
10005
TorchLamp
Campfire
true
```
--------------------------------
### CompApplyHediffWhenBound Usage Example (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Apply-Hediff-When-Bound
An example demonstrating how to implement the CompApplyHediffWhenBound comp class in RimWorld's XML. This specific example configures a creature to become stronger when bonded and leave the map if the bonded pawn dies.
```xml
VAE_StrengthenedByBondtrueVAECaves_LeaveMap
```
--------------------------------
### XML CompTriggerAbilityOnDamage Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Trigger-ability-on-damage
An example of how to implement CompTriggerAbilityOnDamage in XML for a RimWorld mod. This snippet shows how to add the comp to an animal's definition and specify which ability it should trigger.
```xml
VFEI2_WideTunnels
```
--------------------------------
### CompFilthProducer XML Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Filth-Producer
Demonstrates how to integrate the CompFilthProducer into an animal's definition using XML. This example shows adding the comp to the Royal Maggot in Vanilla Factions Expanded - Insectoids to make it produce constant filth.
```xml
VFEI_Filth_Slime0.31600
```
--------------------------------
### CompDigWhenHungry XML Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Dig-When-Hungry
Demonstrates how to integrate the CompDigWhenHungry component into a RimWorld pawn's definition using XML. This example shows how to configure a penguin to dig for 'AEXP_RawFish' in a quantity of 10.
```xml
AEXP_RawFish10
```
--------------------------------
### CompEnrageOtherPawns XML Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Enrage-Other-Pawns
Demonstrates how to integrate the CompEnrageOtherPawns comp class into a RimWorld mod using XML. This example shows how to specify which pawn kind definitions should be affected when the comp's owner goes manhunter.
```xml
VAECaves_GiantSpider
VAECaves_GiantSpiderHatchling
```
--------------------------------
### CompRegeneration XML Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Regeneration
Demonstrates how to implement the CompRegeneration comp class in XML within a pawn's definition. This example shows how to add the comp and configure the regeneration rate. It assumes the VEF.AnimalBehaviours namespace is correctly referenced.
```xml
20
```
--------------------------------
### Example Shield Configuration in XML
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Shield-apparel
This XML example demonstrates how to configure a shield using both the 'thingClass' and 'CompProperties_Shield'. It specifies shield tags, deflection effects, covered body parts, and detailed graphic and hold offset properties for off-hand display.
```xml
VEF.Apparels.Apparel_Shield
```
--------------------------------
### XML CompHediffWhenFleeing Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Hediff-When-Fleeing
An example of how to implement the CompHediffWhenFleeing comp class in XML. This demonstrates adding the comp to a pawn's definition, configuring its properties for invisibility effects when attacked.
```xml
60VAERoy_PsychicInvisibilitytruetrue6
```
--------------------------------
### CompNearbyEffecter XML Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Nearby-Effecter
An example of how to implement the CompNearbyEffecter in XML. This configuration allows Basilisks to rot vegetation and feed on it, specifying the types of plants to affect and their replacements, along with conversion parameters.
```xml
Plant_Grass
Plant_TallGrass
Plant_Brambles
Plant_HealrootWild
Plant_PincushionCactus
AB_TinkleGrass
AB_GlowingGrass
AB_HardyGrass
AB_TallSlimyGrass
AB_AlienGrass
Plant_Agave
Plant_Bush
Plant_Berry
Plant_Alocasia
Plant_Clivia
Plant_Rafflesia
AB_GreenRockFern
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedGrass
MM_BurnedBush
MM_BurnedBush
MM_BurnedBush
MM_BurnedBush
MM_BurnedBush
MM_BurnedBush
MM_BurnedBush
3003true0.3
```
--------------------------------
### Example Lootable Building Configuration (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/LootableBuilding_Custom
This XML example demonstrates how to configure a LootableBuilding_Custom using the VEF.Buildings.LootableBuildingDetails mod extension. It specifies loot contents, deconstruction sound, and gizmo details for a 'Cryptoforge' building.
```xml
```
--------------------------------
### CompStateAfterHealthLoss XML Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/State-After-Health-Loss
Provides an example of how to implement the CompStateAfterHealthLoss comp class in RimWorld's XML. This demonstrates how to configure the health percentage, tick interval, and mental state for the comp.
```xml
7050PanicFlee
```
--------------------------------
### XML: SwappableBuildingDetails Mod Extension Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/SwappableBuilding
This XML snippet shows an example of how to implement the 'SwappableBuildingDetails' mod extension within a building's definition. It specifies the 'buildingLeft' to swap to and the 'deconstructSound' to play.
```xml
VQED_DeathPitVQED_AncientDoorSeal
```
--------------------------------
### QuestChainExtension XML Example (Second Quest)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Quest-chains-system
XML configuration for a subsequent quest's extension in a quest chain. This example demonstrates setting a prerequisite quest ('VQE_PrototypeARC') that must succeed before this quest can trigger.
```xml
VQE_TheGeneratorQuestChain
VQE_PrototypeARC
600falsetrue7
```
--------------------------------
### XML CompDieAfterPeriod Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Die-After-Period
Demonstrates how to implement the CompDieAfterPeriod comp class in an animal's XML definition. This example shows how to set the time to die, enable effects, and specify the type of filth to be spawned.
```xml
5000trueFilth_BloodInsect
```
--------------------------------
### Example Pregnancy Approach Definition in XML
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Pregnancy-Approaches
This XML code provides an example of a `PregnancyApproachDef` for the 'Lovin’ for pleasure' approach. It demonstrates how to set specific values for `defName`, `label`, `cancelLabel`, `iconPath`, `pregnancyChanceForPartners`, `requiredGene`, `requireDifferentGender`, and `lovinDurationMultiplier`.
```xml
VRE_LovinForPleasureNormal lovin'UI/Icons/Pregnancyapproaches/RhythmMode_LovinForPleasure0VRE_Libido_VeryHighfalse1.25
```
--------------------------------
### XML CompPawnOverlay Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Pawn-Overlay
Demonstrates how to add graphical overlays to a pawn using the CompPawnOverlay comp in XML. This example configures overlays for the Svarog in Bastyon, specifying texture paths, graphic classes, shaders, draw offsets, and draw sizes for multiple layers and facings.
```xml
```
--------------------------------
### CompHediffByTemperature XML Implementation Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Hediff-by-temperature
Provides an example of how to implement the CompHediffByTemperature comp class in RimWorld's XML. This specific example configures the comp to apply the 'VQE_IceCrawlerHediff' when the ambient temperature is below 0 degrees, with a tick interval of 60 and a severity of 1.
```xml
true060VQE_IceCrawlerHediff1
```
--------------------------------
### XML Configuration for StatsWhenPowered Component
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Stats-When-Powered
Demonstrates how to use the CompProperties_StatsWhenPowered component in XML. This example shows how to apply powered stat offsets for 'Cleanliness' and configure the component to only work indoors, including clearing the room and stat caches when the power state changes.
```xml
20truetrue
Cleanliness
```
--------------------------------
### ThoughtDef XML Example - Raid Restlessness
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Storyteller-Extension
XML example defining a ThoughtDef for raid restlessness, including its worker class and mood effect stages.
```xml
VFEV_RaidRestlessnessVanillaStorytellersExpanded.ThoughtWorker_RaidRestlessness
We should begin planning our next raid.0
Traveling should be easy now, we can easily loot from those weaklings.-15
Why is our warband growing so docile? The weak should fear the strong - We must attack our enemies soon.-25
So many luxuries at our fingertips, yet we’re too cowardly to slaughter our enemies and take their riches?-35
I’ve lost all hope - There is no way we can keep going like this, I fear our people and history will never be remembered.-45
```
--------------------------------
### CompProperties_JammedAirlock XML Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Jammed-Airlock
An example of how to implement CompProperties_JammedAirlock in RimWorld's XML. This configuration sets up an ancient large airlock that requires a colonist to force open.
```xml
VQE_AncientAirlock_Large11800UI/ForceOpenAirlock_GizmoForce open...Choose someone to force this ancient large airlock open.Choose who should do thisForce this ancient large airlock openforcing ancient large airlock openforcing ancient large airlock open: {1}s{PAWN_nameDef} has successfully forced the ancient large airlock open.falsefalsefalsetrueVQE_AirlockJammed
```
--------------------------------
### Implementing CompProperties_TempTransforms (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Temperature-Transforms
An example of how to implement CompProperties_TempTransforms within the XML configuration of a RimWorld mod. This snippet demonstrates setting the temperature thresholds, transformation progress rate, and the specific item to transform into.
```xml
10750.00003VCE_RuinedSimpleGrill
```
--------------------------------
### CompBlink XML Configuration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Blink
An example of how to implement the CompBlink class using XML, specifying blink interval, distance, and warp effect.
```xml
100010~20true
```
--------------------------------
### XML CompDiseasesAfterPeriod Integration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Diseases-After-Period
Demonstrates how to integrate the CompDiseasesAfterPeriod comp into an animal's definition using XML. This example shows how to set the time in ticks for the first hediff application, specify the hediff to apply (e.g., VDE_SeparationSickness), and configure the reapplication percentage.
```xml
7200000
VDE_SeparationSickness
0.95
```
--------------------------------
### StorytellerDefExtension XML Example - Freya Fierce
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Storyteller-Extension
XML example demonstrating the usage of StorytellerDefExtension for the Freya Fierce scenario in VFE Vikings, focusing on raid restlessness settings.
```xml
3600000VFEV_RaidRestlessness
```
--------------------------------
### XML CompEatWeirdFood Configuration Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Eat-Weird-Food
An example of how to implement the CompEatWeirdFood component in XML. This snippet demonstrates adding the component to an animal's definition, specifying a list of edible items (including apparel and plants), nutrition, and other behavioral parameters. It requires the animal's thinkTreeMain to be set to VEF_AnimalWeirdEater.
```xml
Apparel_TribalA
Apparel_Parka
Apparel_Pants
Apparel_BasicShirt
Apparel_CollarShirt
Apparel_Duster
Apparel_Jacket
Apparel_CowboyHat
Apparel_BowlerHat
Apparel_Tuque
Apparel_WarVeil
VAE_Footwear_Boots
VAE_Footwear_Shoes
VAE_Handwear_Gloves
VAE_Apparel_CasualTShirt
VAE_Apparel_Hoodie
VAE_Apparel_Shorts
VAE_Apparel_Skirt
VAE_Apparel_ShirtandTie
VAE_Apparel_SuitJacket
VAE_Apparel_Trousers
VAE_Headgear_Fedora
VAE_Apparel_Overalls
VAE_Apparel_FleeceShirt
VAE_Apparel_Jeans
VAE_Apparel_ChefsUniform
VAE_Apparel_MilitaryJacket
VAE_Apparel_MilitaryUniform
VAE_Apparel_BuildersJacket
VAE_Apparel_DoctorScrubs
VAE_Apparel_LabCoat
VAE_Apparel_TankTop
VAE_Apparel_SheriffShirt
VAE_Apparel_Jumpsuit
VAE_Apparel_Tunic
VAE_Apparel_Blouse
VAE_Apparel_Apron
VAE_Apparel_Cape
VAE_Headgear_TrapperHat
VAE_Headgear_SummerHat
VAE_Apparel_PeltCoat
VAE_Apparel_TribalPoncho
VAE_Apparel_TribalKilt
VAE_Headgear_Hood
VAE_Headgear_Scarf
VAE_Headgear_Beret
VAE_Headgear_BaseballCap
VAE_Headgear_ChefsToque
Plant_Grass
Plant_TallGrass
1falsefalse0.5true
```
--------------------------------
### StorytellerDefExtension XML Example - Igor Invader
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Storyteller-Extension
XML example demonstrating the usage of StorytellerDefExtension for the Igor Invader scenario in VFE - Mechanoids, focusing on storyteller threat settings.
```xml
-100~-1001230000
ResourcePodCrash
PsychicSoothe
SelfTame
AmbrosiaSprout
FarmAnimalsWanderIn
WandererJoin
RefugeePodCrash
ThrumboPasses
MeteoriteImpact
WildManWandersIn
```
--------------------------------
### Implement Moving Base Definition (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Moving-Bases
An example of how to define a moving base in an XML file, using the `VEF.Planet.MovingBaseDef`. This includes setting the base faction, label, description, and other configurable properties.
```xml
VFEM2_MerchantGuildCaravanA group of traveling people.VFEM2_MerchantGuildVFEMedieval.MerchantGuildMapIcons/TradingGuildtruetrueMapIcons/Expanding/TradingGuildExpanding106TrueYou are about to attack the Merchants' Guild, which will make that faction hostile. Are you sure you want to do that?
```
--------------------------------
### QuestChainDef XML Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Quest-chains-system
An example of defining a quest chain using XML, specifying its name, icon, label, description, and worker class. This is used for custom quest chains in the VE Framework.
```xml
VQE_TheGeneratorQuestChainUI/QuestChainIconThis quest chain will have you explore the various sites in which {InventorFullName} tried to construct a prototype of the ultimate power source. If you connect the dots, you may be able to pick up this endeavour and construct your own ARC generator.VanillaQuestsExpandedTheGenerator.TheGenerator_QuestChainWorker
```
--------------------------------
### Add Starting Structure to Scenario (XML)
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Custom-structure-and-scenarios
This XML snippet demonstrates how to add a starting structure to a scenario using the `KCSG.ScenPart_AddStartingStructure` part. It allows customization of the structure's label, spawn proximity to the map center, and selection from predefined structure definitions.
```xml
VFEC_AddStartingStructureAn abandoned factoryTrue
VFEM_Factory1
VFEM_Factory2
...
```
--------------------------------
### XML Implementation of CompProperties_ConfigurableSpawner
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Configurable-Spawner
Example of how to implement the CompProperties_ConfigurableSpawner in XML within a building's tag. This demonstrates setting various spawner properties.
```xml
falsetruefalse12truefalse
```
--------------------------------
### CompGasProducer XML Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Gas-Producer
Demonstrates how to implement the CompGasProducer comp class in RimWorld XML. This example shows how to configure an animal to spawn 'AA_OcularGas' with a specified rate and radius.
```xml
AA_OcularGas0.52
```
--------------------------------
### CompDraftable XML Usage Example
Source: https://github.com/vanilla-expanded/vanillaexpandedframework/wiki/Draftability
An example of how to implement the CompDraftable comp class in an animal's XML definition. This snippet shows how to add the comp and set the 'makeNonFleeingToo' property to true.
```xml