Skip to content

Complete Advanced Example

Bad Listener edited this page Dec 4, 2025 · 1 revision

Complete Advanced Example

<CEEvent>
    <Name>forest_barrel_discovery</Name>
    <Text>You find a damaged barrel, some wine spilled but most intact.</Text>

    <MultipleRestrictedListOfFlags>
        <RestrictedListOfFlags>Random</RestrictedListOfFlags>
        <RestrictedListOfFlags>LocationForest</RestrictedListOfFlags>
    </MultipleRestrictedListOfFlags>

    <Backgrounds>
        <Background Name="forest_path" Weight="3"/>
        <Background Name="broken_barrel" Weight="1"/>
    </Backgrounds>

    <ReqHeroMinAge>18</ReqHeroMinAge>
    <WeightedChanceOfOccurring>5</WeightedChanceOfOccurring>

    <Options>
        <Option>
            <Order>0</Order>
            <MultipleRestrictedListOfConsequences>
                <RestrictedListOfConsequences>ChangeGold</RestrictedListOfConsequences>
            </MultipleRestrictedListOfConsequences>
            <OptionText>Inspect the barrel</OptionText>
            <GoldTotal>R 10 40</GoldTotal>
        </Option>

        <Option>
            <Order>1</Order>
            <MultipleRestrictedListOfConsequences>
                <RestrictedListOfConsequences>Continue</RestrictedListOfConsequences>
            </MultipleRestrictedListOfConsequences>
            <OptionText>Leave it</OptionText>
        </Option>
    </Options>
</CEEvent>

Clone this wiki locally