N
Nyteshade12134
Guest
Revisiting Carlzilla's original idea (https://7daystodie.com/forums/showthread.php?36802-More-useful-beds-and-bedrolls) updated for Alpha 16.4, tested and working.
First add the following lines to these blocks:
<block id="463" name="bed01">
<property name="BuffsWhenWalkedOn" value="Sleeping2"/>
<block id="466" name="mattressFlat">
<property name="BuffsWhenWalkedOn" value="Sleeping4"/>
<block id="1467" name="bed02">
<property name="BuffsWhenWalkedOn" value="Sleeping3"/>
<block id="1562" name="bedroll">
<property name="BuffsWhenWalkedOn" value="Sleeping"/>
Next, add these buffs in your buffs.xml at the end before "</buffs>":
<buff id="Sleeping" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping on a matress slowly regenerates health, and stamina." tooltip_key="You're resting on a matress." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="1" rate="3" />
<modify id="0" stat="stamina" amount="1" rate="3" />
</buff>
<buff id="Sleeping2" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in an old bed slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="2" rate="3" />
<modify id="0" stat="stamina" amount="2" rate="3" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
<buff id="Sleeping3" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in a king size bed quickly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="4" rate="3" />
<modify id="0" stat="stamina" amount="4" rate="3" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
<buff id="Sleeping4" stack="reset" duration="7" name_key="Sleeping" description_key="Sleeping in a sleeping bag very slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your sleeping bag." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="1" rate="6" />
<modify id="0" stat="stamina" amount="1" rate="6" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
Thats it, save your files and now when you walk on these items your character will heal and regain stamina at various rates. Some even keep you warm. Enjoy.
First add the following lines to these blocks:
<block id="463" name="bed01">
<property name="BuffsWhenWalkedOn" value="Sleeping2"/>
<block id="466" name="mattressFlat">
<property name="BuffsWhenWalkedOn" value="Sleeping4"/>
<block id="1467" name="bed02">
<property name="BuffsWhenWalkedOn" value="Sleeping3"/>
<block id="1562" name="bedroll">
<property name="BuffsWhenWalkedOn" value="Sleeping"/>
Next, add these buffs in your buffs.xml at the end before "</buffs>":
<buff id="Sleeping" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping on a matress slowly regenerates health, and stamina." tooltip_key="You're resting on a matress." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="1" rate="3" />
<modify id="0" stat="stamina" amount="1" rate="3" />
</buff>
<buff id="Sleeping2" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in an old bed slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="2" rate="3" />
<modify id="0" stat="stamina" amount="2" rate="3" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
<buff id="Sleeping3" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in a king size bed quickly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="4" rate="3" />
<modify id="0" stat="stamina" amount="4" rate="3" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
<buff id="Sleeping4" stack="reset" duration="7" name_key="Sleeping" description_key="Sleeping in a sleeping bag very slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your sleeping bag." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">
<modify id="0" stat="health" amount="1" rate="6" />
<modify id="0" stat="stamina" amount="1" rate="6" />
<modify id="0" stat="coretemp" setValue="70"/>
</buff>
Thats it, save your files and now when you walk on these items your character will heal and regain stamina at various rates. Some even keep you warm. Enjoy.
Last edited: