Telric
Scavenger
Hmm idk why its not reseting.. but i did some patchwork on it.. This buff works if you want to use it. Just need to change the buffswhenwalkedon to be the buffSwiftLegsTrigger. (i added that one.) tested the resting and it works. As for the timer going up to 59 minutes, it was because you used a . cvar... from the documentation: "CVars that start with "." are NOT networked AND they are not saved with the game." so it wasnt saving the cvar. changing it to be a normal cvar made the timer stay as it should be.
Code:
<buff name="buffSwiftLegsTrigger" hidden="true">
<stack_type value="ignore"/>
<duration value=".5"/>
<effect_group name="Replace if HasBuff">
<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSwiftLegs" target="self"/>
<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffSwiftLegs" target="self"/>
</effect_group>
</buff>
<buff name="buffSwiftLegs" name_key="buffSwiftLegs" description_key="buffSwiftLegsDesc" tooltip_key="buffMegaCrushTooltip" icon="ui_game_symbol_agility" icon_color="0,255,0">
<stack_type value="effect"/>
<duration value="0"/>
<display_value value="buffSwiftLegsDisplay"/>
<display_value_format value="time"/>
<effect_group name="Set CVars">
<triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar="$buffSwiftLegsDuration" operation="set" value="500"/>
<triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar="buffSwiftLegsDisplay" operation="set" value="@$buffSwiftLegsDuration"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffSwiftLegsDisplay" operation="subtract" value="1"/>
</effect_group>
<effect_group name="Passive Effects">
<passive_effect name="RunSpeed" operation="perc_add" value=".9"/>
<passive_effect name="AttacksPerMinute" operation="perc_add" value=".9"/>
<passive_effect name="JumpStrength" operation="perc_add" value=".9"/>
</effect_group>
</buff>