darchon Posted March 9, 2021 Share Posted March 9, 2021 anyone know how i could create a death penalty that would remove an existing perk or set health to a reduced amount after respawn? Link to comment Share on other sites More sharing options...
Gazz Posted March 9, 2021 Share Posted March 9, 2021 There is already a buff that pops up after death. Adding your effects there would be easy enough. Link to comment Share on other sites More sharing options...
darchon Posted March 12, 2021 Author Share Posted March 12, 2021 thanks but that wasnt a very helpful response but i did figure it out that these are the buffs that are triggered upon death: entityclasses.xml: <entity_class name="playerMale"> <triggered_effect trigger="onSelfRespawn" action="AddBuff" target="self" buff="buffStatusCheck01,buffStatusCheck02,buffPerkAbilityUpdate,buffNearDeathTraumaTrigger,buffDeathFoodDrinkAdjust"/> so then just going into buffs.xml revealed that this was where health/food/water was being set upon respawning: <buff name="buffDeathFoodDrinkAdjust" hidden="true" remove_on_death="false"> <triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="Health" operation="set" value="25000"/> <triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="Food" operation="set" value="25000"/> <triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="Water" operation="set" value="25000"/> Link to comment Share on other sites More sharing options...
convergent Posted March 13, 2021 Share Posted March 13, 2021 The status check buffs always are active on the character and are a good place to park buff triggers or initialize a buff on first spawn in. I usually use it to trigger my own hidden buff that persists through death to watch for things like character death and hang new buffs or debuffs on the character. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.