Jump to content

Need help making food poisoning drain less food


xxx73

Recommended Posts

Hi guys

 

I don't like the food poisoning mechanic as it is now, it drain too much food too fast for me.

So I want it to drain less food or do it over time so it is possible to react and stop it.

 

I think this is the current code for food poisoning:

 

<buff name="buffIllFoodPoisoning01" name_key="buffIllFoodPoisoning01Name" description_key="buffIllFoodPoisoning01Desc" tooltip_key="buffIllFoodPoisoning01Tooltip" icon="ui_game_symbol_food_poisoning" icon_color="255,128,0">

<damage_type value="Disease"/>

<stack_type value="ignore"/>

<duration value="5"/>

<effect_group>

<triggered_effect trigger="onSelfBuffStart" action="ModifyStats" stat="Water" operation="add" value="-20"/>

<triggered_effect trigger="onSelfBuffStart" action="ModifyStats" stat="Stamina" value_type="modifiedmax" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffStart" action="ModifyStats" stat="Stamina" value_type="modifiedmax" operation="add" value="3"/>

<triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="player#vomit"/>

 

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$foodAmount" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$waterAmount" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$foodAmountAdd" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$waterAmountAdd" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$foodAmountAdd2" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$waterAmountAdd2" operation="set" value="0"/>

<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$waterStaminaRegenAmount" operation="set" value="0"/>

 

<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffHealHealth">

<requirement name="CVarCompare" cvar="medicalHealthAmount" operation="LTE" value="0"/>

</triggered_effect>

<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffHealStaminaMax"/>

<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffHealWaterMax"/>

<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffWaterStaminaRegen"/>

</effect_group>

</buff>

 

I have tried to change foodAmount with no luck, and I tried removing all "RemoveBuff" settings with no luck. I admit I dont understand this buff so if someone could be so nice to come with some suggestions, that would be appreciated.

 

Have fun :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...