Meme Custom Defs - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

StartingItemsByIdeologyDef is a new def to make player begin play with some items

    public MemeDef associatedMeme;
    public ThingSetMakerDef thingSetMaker;

How do I use this code?

Custom defs are created as their own XML file

For example, this is the Eldritch structure in Vanilla Ideology Expanded - Memes and Structures. The thingsetmaker needs c# code, and all it does is add 3 monoliths at game start

<?xml version="1.0" encoding="UTF-8"?>
<Defs>
	<VEF.Memes.StartingItemsByIdeologyDef>
		<defName>VME_StartingItemsEldritchCult</defName>
		<associatedMeme>VME_Structure_ChthonianCult</associatedMeme>	
		<thingSetMaker>VME_StartingItemsEldritchCult</thingSetMaker>		
	</VEF.Memes.StartingItemsByIdeologyDef>
</Defs>
⚠️ **GitHub.com Fallback** ⚠️