Bladestorm Games
Refugee
Hello! I am having an issue where my custom buff applies the Burning particle, and is supposed to remove that particle/effect at the end of the buff.
Issue is, the burning effect lasts only for a moment, and not the full duration of the buff, and I'm wondering if anyone knows what Im doing wrong.
Here is the Code I am using, the Particle Effect portion is below the comment "<!-- Particle & FX -->"
<configs>
<append xpath="/buffs">
<buff name="buffScorchElement" name_key="buffScorchName" description_key="buffScorchDesc" showonhud="true" icon="ui_game_symbol_near_death_trauma" icon_color="255,0,0">
<stack_type value="replace"/>
<duration value="5"/>
<display_value value=".buffScrochDuration"/>
<display_value_format value="time"/>
<effect_group>
<!-- Duration Handling -->
<triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".buffScrochDuration" operation="set" value="5"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffScrochDuration" operation="add" value="-1"/>
<!-- Effect -->
<passive_effect name="BuffBlink" operation="base_set" value="2" duration="0,3" tags="buffScorchElement"/>
<passive_effect name="HealthChangeOT" operation="base_subtract" value="1"/>
<!-- Cleanup Handling -->
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffScorch">
<requirement name="CVarCompare" cvar=".buffScrochDuration" operation="LTE" value="0"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar=".buffScrochDuration" operation="set" value="0"/>
<!-- Particle & FX -->
<triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_onFire" local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
<triggered_effect trigger="onSelfEnteredGame" action="AttachParticleEffectToEntity" particle="p_onFire" local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
<triggered_effect trigger="onSelfBuffRemove" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>
<triggered_effect trigger="onSelfDied" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>
<triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="buff_burn_lp"/>
<triggered_effect trigger="onSelfBuffRemove" action="PlaySound" sound="buff_burn_extinguish"/>
</effect_group>
</buff>
</append>
</configs>
Here is a link to a video to show the buff's duration VS the Burning Effect:
(Note, Equipping the Scrap Gloves is my method for applying the buff to myself)
https://youtu.be/LwPSy_fJy04
Thanks for the read!
Issue is, the burning effect lasts only for a moment, and not the full duration of the buff, and I'm wondering if anyone knows what Im doing wrong.
Here is the Code I am using, the Particle Effect portion is below the comment "<!-- Particle & FX -->"
<configs>
<append xpath="/buffs">
<buff name="buffScorchElement" name_key="buffScorchName" description_key="buffScorchDesc" showonhud="true" icon="ui_game_symbol_near_death_trauma" icon_color="255,0,0">
<stack_type value="replace"/>
<duration value="5"/>
<display_value value=".buffScrochDuration"/>
<display_value_format value="time"/>
<effect_group>
<!-- Duration Handling -->
<triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar=".buffScrochDuration" operation="set" value="5"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffScrochDuration" operation="add" value="-1"/>
<!-- Effect -->
<passive_effect name="BuffBlink" operation="base_set" value="2" duration="0,3" tags="buffScorchElement"/>
<passive_effect name="HealthChangeOT" operation="base_subtract" value="1"/>
<!-- Cleanup Handling -->
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffScorch">
<requirement name="CVarCompare" cvar=".buffScrochDuration" operation="LTE" value="0"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar=".buffScrochDuration" operation="set" value="0"/>
<!-- Particle & FX -->
<triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_onFire" local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
<triggered_effect trigger="onSelfEnteredGame" action="AttachParticleEffectToEntity" particle="p_onFire" local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
<triggered_effect trigger="onSelfBuffRemove" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>
<triggered_effect trigger="onSelfDied" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>
<triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="buff_burn_lp"/>
<triggered_effect trigger="onSelfBuffRemove" action="PlaySound" sound="buff_burn_extinguish"/>
</effect_group>
</buff>
</append>
</configs>
Here is a link to a video to show the buff's duration VS the Burning Effect:
(Note, Equipping the Scrap Gloves is my method for applying the buff to myself)
https://youtu.be/LwPSy_fJy04
Thanks for the read!
Last edited by a moderator: