Skip to content

Random Opinion

Alite edited this page Sep 6, 2026 · 1 revision

This memory thought class changes adds a random number from the specified range to the base opinion of the thought, or sets the opinion if no base opinion is set. The range is the only option available for setting with the class:

        <thoughtClass>EBSGFramework.Thought_MemorySocialRandomOpinion</thoughtClass>
        <modExtensions>
            <li Class="EBSGFramework.EBSGThoughtExtension">
                <range>-10~10</range>
            </li>
        </modExtensions>

This example attaches a memory with an opinion of -5~15 to a precept to cause random memories when implants are installed:

    <ThoughtDef>
        <defName>InstalledProsthetic_Know_Obsessed</defName>
        <thoughtClass>EBSGFramework.Thought_MemorySocialRandomOpinion</thoughtClass>
        <stackLimitForSameOtherPawn>3</stackLimitForSameOtherPawn>
        <durationDays>8</durationDays>
        <stackLimit>10</stackLimit>
        <stages>
            <li>
                <label>Random opinion</label>
                <baseOpinionOffset>5</baseOpinionOffset>
            </li>
        </stages>
        <modExtensions>
            <li Class="EBSGFramework.EBSGThoughtExtension">
                <range>-10~10</range>
            </li>
        </modExtensions>
    </ThoughtDef>

    <PreceptDef>
        <defName>BodyMod_Obsessed</defName>
        <issue>BodyModification</issue>
        <label>obsessed</label>
        <description>Put parts in, take them out, shake them all about.</description>
        <impact>High</impact>
        <displayOrderInIssue>20</displayOrderInIssue>
        <displayOrderInImpact>100</displayOrderInImpact>
        <conflictingMemes>
            <li>FleshPurity</li>
        </conflictingMemes>
        <associatedMemes>
            <li>Transhumanist</li>
        </associatedMemes>
        <comps>
            <li Class="PreceptComp_SituationalThought">
                <thought>HasNoProsthetic_Disapproved</thought>
            </li>
            <li Class="PreceptComp_SituationalThought">
                <thought>HasProsthetic_Approved</thought>
            </li>
            <li Class="PreceptComp_SituationalThought">
                <thought>HasNoProsthetic_Disapproved_Social</thought>
            </li>
            <li Class="PreceptComp_KnowsMemoryThought">
                <eventDef>InstalledProsthetic</eventDef>
                <thought>InstalledProsthetic_Know_Obsessed</thought>
            </li>
        </comps>
    </PreceptDef>

Other


Special Nodes

Clone this wiki locally