Hello meganoth and thank you for your reply.
I have managed to add the buffs when entering and leaving the PVP or PVE zone whit this script:
<ReY_BRuJo>
<append xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group">
<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="BuffPVP">
<requirement name="NotHasBuff" buff="god"/>
<requirement name="CVarCompare" cvar="_biomeradiation" operation="Equals" value="1"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="BuffPVE">
<requirement name="NotHasBuff" buff="god"/>
<requirement name="CVarCompare" cvar="_biomeradiation" operation="Equals" value="0"/>
</triggered_effect>
</append>
<append xpath="/buffs">
<buff name="BuffPVP" name_key="buffNearDeathTraumaName" description_key="buffNearDeathTraumaDesc" icon="ui_game_symbol_near_death_trauma" icon_color="255,0,0" icon_blink="true" remove_on_death="false" hidden="false">
<stack_type value="ignore"/>
<duration value="10"/>
<update_rate value=".0001"/>
<effect_group>
<triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="BuffPVE">
<requirement name="CVarCompare" cvar="_biomeradiation" operation="Equals" value="0"/>
</triggered_effect>
</effect_group>
</buff>
<buff name="BuffPVE" name_key="buffNearDeathTraumaName" description_key="buffNearDeathTraumaDesc" icon="ui_game_symbol_near_death_trauma" icon_color="0,255,0" icon_blink="false" remove_on_death="false" hidden="false">
<stack_type value="ignore"/>
<duration value="10"/>
<update_rate value=".0001"/>
<effect_group>
<triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="BuffPVE">
<requirement name="CVarCompare" cvar="_biomeradiation" operation="Equals" value="1"/>
</triggered_effect>
</effect_group>
</buff>
</append>
</ReY_BRuJo>
It works fine but i have a problem and i don't know how to solve it.
In the line <duration value="10"/> i have set 10 seconds, but i have been testing and i have put 100, the question is that when i change the PVE zone to PVP and conversely, the buff icon does not disappear until that time passes, even after adding the following line: <requirement name="CVarCompare" cvar="_biomeradiation" operation="Equals" value="1"/>
Can you tell me where the problem is?
Thank you.