I'm playing with mods and I find it hard as the comments that serve as documentation is not well maintained.
I want to apply some buff when on top of a bedroll. I copied the buff from the campfire and some effect of the Beer buff.
blocks.xml
<SickWolfSleepRecovery>
<append xpath="/blocks/bedroll">
<property name="ActiveRadiusEffects" value="buffBedAOE(3)"/>
</append>
</SickWolfSleepRecovery>
buffs.xml
<SickWolfSleepRecovery>
<append xpath="/buffs">
<buff name="buffBedAOE" hidden="true">
<stack_type value="ignore"/>
<duration value=".1"/>
<!-- without the 2nd buff the buff display will flicker -->
<effect_group>
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffBedAOEEffect"/>
</effect_group>
</buff>
<buff name="buffBedAOEEffect" name_key="buffBedAOEEffectName" description_key="buffBedAOEEffectDesc" icon="ui_game_symbol_beer">
<stack_type value="replace"/>
<duration value="2"/>
<effect_group>
<!-- <display_value name="dStaminaRegen" value=".15"/>
<passive_effect name="FoodLoss" operation="perc_subtract" value="0.30"/>
<passive_effect name="StaminaChangeOT" operation="perc_subtract" value="0.30"/> -->
<passive_effect name="HealthChangeOT" operation="perc_add" value="0.25"/>
</effect_group>
<triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" effect_name="Drunk"/>
<triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" effect_name="Drunk"/>
</buff>
</append>
</SickWolfSleepRecovery>
I kept the beer effect to play with the effects and for testing.
There is no buff being applied when I step on the bedroll. I'd like to slow down hunger and thirst and heal the player slightly faster.
Can someone explain to me why the buff is not being applied here?
I want to apply some buff when on top of a bedroll. I copied the buff from the campfire and some effect of the Beer buff.
blocks.xml
<SickWolfSleepRecovery>
<append xpath="/blocks/bedroll">
<property name="ActiveRadiusEffects" value="buffBedAOE(3)"/>
</append>
</SickWolfSleepRecovery>
buffs.xml
<SickWolfSleepRecovery>
<append xpath="/buffs">
<buff name="buffBedAOE" hidden="true">
<stack_type value="ignore"/>
<duration value=".1"/>
<!-- without the 2nd buff the buff display will flicker -->
<effect_group>
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffBedAOEEffect"/>
</effect_group>
</buff>
<buff name="buffBedAOEEffect" name_key="buffBedAOEEffectName" description_key="buffBedAOEEffectDesc" icon="ui_game_symbol_beer">
<stack_type value="replace"/>
<duration value="2"/>
<effect_group>
<!-- <display_value name="dStaminaRegen" value=".15"/>
<passive_effect name="FoodLoss" operation="perc_subtract" value="0.30"/>
<passive_effect name="StaminaChangeOT" operation="perc_subtract" value="0.30"/> -->
<passive_effect name="HealthChangeOT" operation="perc_add" value="0.25"/>
</effect_group>
<triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" effect_name="Drunk"/>
<triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" effect_name="Drunk"/>
</buff>
</append>
</SickWolfSleepRecovery>
I kept the beer effect to play with the effects and for testing.
There is no buff being applied when I step on the bedroll. I'd like to slow down hunger and thirst and heal the player slightly faster.
Can someone explain to me why the buff is not being applied here?
Last edited by a moderator: