Revered Meme Example - KonradHeinser/EBSGFramework GitHub Wiki

This example is from one of Sovereign's mods. The precept in question acts similar to the bloodfeeder precept, except instead of linking to the bloodfeeder gene, it links to a gene called Grace. Its overall function is the same as that of the bloodfeeder revered precept and the bloodfeeders meme. A reviled variant would use the same methods, it just makes the negative thoughts positive and the positive thoughts negative:

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
    <MemeDef MayRequire="EBSG.Framework">
        <defName>GS_Gracetouched</defName>
        <label>grace-touched</label> 
        <description>Grace is sacred. Those blessed by it should be worshiped.</description> 
        <iconPath>UI/HolyKinMeme</iconPath>
        <groupDef MayRequire="Ludeon.RimWorld.Ideology">Misc</groupDef>
        <impact>2</impact>
        <renderOrder>999</renderOrder>
        <requireOne>
            <li>
                <li>GS_GraceTouchedRevered</li>
            </li>
            <li>
                <li MayRequire="Ludeon.RimWorld.Ideology">Apostasy_Abhorrent</li>
                <li MayRequire="Ludeon.RimWorld.Ideology">Apostasy_Horrible</li>
            </li>
            <li>
                <li MayRequire="Ludeon.RimWorld.Ideology">Bloodfeeders_Reviled</li>
            </li>
        </requireOne>
    
        <generalRules>
            <rulesStrings>
                <li>memeAdjective->grace</li>
                <li>memeAdjective->grace-blessed</li>
                <li>memeCreed->sanctuary</li>
                <li>memeCreed->church</li>
                <li>memeCreed->temple</li>
                <li>memeHyphenPrefix->sanct</li>
                <li>memeConcept->grace</li>
                <li>memeConcept->blessing</li>
                <li>memeLeaderNoun->shepard</li>
                <li>memeLeaderNoun->paladin</li>
                <li>memeLeaderNoun->ascendant</li>
                <li>memeMoralist->apostle</li>
                <li>memeMoralist->templar</li>
                <li>memeMoralist->zealot</li>
            </rulesStrings>
        </generalRules>
        <descriptionMaker>
            <rules>
                <rulesStrings>
                    <!-- theist myth -->
                    <li>creation(tag=meme_Grace)        ->In the beginning, [deity0_name] created Grace so that it might guide all of [deity0_possessive] creations.</li>
                    <li>episode(uses=1,tag=meme_Grace)  ->The [deity0_type] [deity0_name] gave to [deity0_possessive] chosen followers the gift of communion with Grace, ascending them beyond their mortal kin.</li>
                    <!-- theist founder -->
                    <li>intro(tag=meme_Grace)           ->On the [place_summary] [place_name], there was a human named [deity0_name]. One day, as [deity0_name] was tending to the holily fields, [deity0_possessive] heard the Grace's call, and followed into its embrace.</li>
                    <li>intro(tag=meme_Grace)           ->On the [place_summary] [place_name], during the [ritualName], [deity0_name] came down into the [altarRoomLabel] resplendant in Grace. The sight of [deity0_name] turned [deity0_possessive] [memberNamePlural] blind, but at last allowed them to truly see.</li> 
                    <li>conflict(tag=meme_Grace)        ->A [foeLeader] declared that all who communed with Grace were abominations, and sent [foeSoldiers] to persecute the [memberNamePlural].</li>
                    <li>founderJoin(tag=meme_Grace)     ->A [place_job] named [founderName] was attacked by one of the [foeLeader]'s [foeSoldiers]. [founderName] smote [foeLeader_objective] with Grace-given fire, gaining [deity0_name]'s blessing.</li>
                    <li>victory(tag=meme_Grace)         ->[founderName] led a group of [memberNamePlural] into the [place_powerCenter], and purge the land of [foeLeader]'s heretic followers and and cleanse [foeLeader] in holy flames. [deity0_name] made [founderName] into the new [foeLeader], for [founderName] had proved his devotion.</li>
                    <!-- ideological founder -->
                    <li>setup(tag=meme_Grace)           ->On a distant glitterworld, [founderName] was chosen by one of its megachurches to shepard their believers. [founderName] accepted, and [founder_pronoun] communed with Grace, which transformed [founder_pronoun].</li>
                    <li>story(uses=1,tag=meme_Grace)    ->[founderName] gave to [founder_possessive] followers the gift of Grace, so that they may shepard the mortals.</li>
                    <!-- ideological lesson -->
                    <li>lessonIntro(tag=meme_Grace)     ->When I first smelled the holy incense and communed with Grace, it became clear. I saw that</li>
                    <li>lesson(tag=meme_Grace)          ->those unguided by Grace were lost, and those who were knew the way forward.</li>
                    <li>lessonReinforcement(tag=meme_Grace) ->Those who were touched by Grace are ascendants, and their destiny is to guide the lesser mortals.</li>
                </rulesStrings>
            </rules>
        </descriptionMaker>
        <thingStyleCategories>
            <li MayRequire="Ludeon.RimWorld.Ideology">
                <category MayRequire="Ludeon.RimWorld.Ideology">GS_zealous_Style</category>
                <priority>3</priority>
            </li>
        </thingStyleCategories>
    </MemeDef>

    <HistoryEventDef>
        <defName>GS_GraceTouchedDied</defName>
        <label>grace-touched died</label>
    </HistoryEventDef>
    
    <IssueDef>
        <defName>GS_GraceTouchedIssue</defName>
        <label>Grace-touched</label>
        <iconPath>UI/HolyKinIssue</iconPath>
    </IssueDef>
    
    <PreceptDef>
        <defName>GS_GraceTouchedRevered</defName>
        <issue>GS_GraceTouchedIssue</issue>
        <label>revered</label>
        <description>Those blessed by Grace should be worshiped. Believers will be happy if there's a grace-touched in the colony.</description>
        <impact>Medium</impact>
        <comps>
            <li Class="PreceptComp_SituationalThought">
                <thought>GS_GraceTouched_Revered_Opinion</thought>
                <description>grace-touched</description>
            </li>
            <li Class="PreceptComp_KnowsMemoryThought">
                <eventDef>GS_GraceTouchedDied</eventDef>
                <thought>GS_GraceTouchedDied_Revered</thought>
            </li>
            <li Class="PreceptComp_SituationalThought">
                <thought>GS_GraceTouched_ReveredSelf</thought>
                <description>self reverence</description>
            </li>
            <li Class="PreceptComp_SituationalThought">
                <thought>GS_GraceTouched_Revered_General</thought>
                <description>grace-touched among us</description>
                <thoughtStageDescriptions>
                    <li>No grace-touched</li>
                    <li>No grace-touched leader</li>
                    <li>grace-touched leader</li>
                </thoughtStageDescriptions>
            </li>
        </comps>
    </PreceptDef>

    <ThoughtDef>
        <defName>GS_GraceTouched_Revered_Opinion</defName>
        <thoughtClass>Thought_SituationalSocial</thoughtClass>
        <workerClass>EBSGFramework.ThoughtWorker_Precept_GeneExtension_Social</workerClass>
        <validWhileDespawned>true</validWhileDespawned>
        <stages>
            <li>
                <label>revered grace-touched</label>
                <baseOpinionOffset>20</baseOpinionOffset>
            </li>
        </stages>
        <modExtensions>
            <li Class="EBSGFramework.EBSGThoughtExtension">
                <relatedGenes>
                    <li>Grace</li>
                </relatedGenes>
            </li>
        </modExtensions>
    </ThoughtDef>

    <ThoughtDef>
        <defName>GS_GraceTouched_ReveredSelf</defName>
        <thoughtClass>Thought_Situational</thoughtClass>
        <workerClass>EBSGFramework.ThoughtWorker_Precept_HasRelatedGene</workerClass>
        <stages>
            <li>
                <label>revered grace-touched</label>
                <description>I am an ascendant, blessed to rise above mere mortals.</description>
                <baseMoodEffect>8</baseMoodEffect>
            </li>
        </stages>
        <modExtensions>
            <li Class="EBSGFramework.EBSGThoughtExtension">
                <relatedGenes>
                    <li>Grace</li>
                </relatedGenes>
            </li>
        </modExtensions>
    </ThoughtDef>

    <ThoughtDef>
        <defName>GS_GraceTouchedDied_Revered</defName>
        <thoughtClass>Thought_Memory</thoughtClass>
        <validWhileDespawned>true</validWhileDespawned>
        <stackLimit>3</stackLimit>
        <durationDays>10</durationDays>
        <stages>
            <li>
                <label>Grace-touched died</label>
                <description>One of Grace's chosen has died. Divine punishment awaits us.</description>
                <baseMoodEffect>-2</baseMoodEffect>
            </li>
        </stages>
    </ThoughtDef>

    <ThoughtDef>
        <defName>GS_GraceTouched_Revered_General</defName>
        <thoughtClass>Thought_Situational</thoughtClass>
        <workerClass>EBSGFramework.ThoughtWorker_Precept_RelatedGeneColonist</workerClass>
        <nullifiedIfNotColonist>true</nullifiedIfNotColonist>
        <stages>
            <li>
                <label>no grace-touched</label>
                <description>There's none of Grace's chosen here to guide us.</description>
                <baseMoodEffect>-5</baseMoodEffect>
            </li>
            <li>
                <label>no grace-touched leader</label>
                <description>Without a grace-touched leader, we are bound to stray off the right path. We should make one of Grace's chosen our leader.</description>
                <baseMoodEffect>-3</baseMoodEffect>
            </li>
            <li>
                <label>grace-touched leader</label>
                <description>One of Grace's chosen leads us. May they guide us on the path of righteousness.</description>
                <baseMoodEffect>5</baseMoodEffect>
            </li>
        </stages>
        <modExtensions>
            <li Class="EBSGFramework.EBSGThoughtExtension">
                <relatedGenes>
                    <li>Grace</li>
                </relatedGenes>
            </li>
        </modExtensions>
    </ThoughtDef>
</Defs>
⚠️ **GitHub.com Fallback** ⚠️