Hello again fellows. I am attempting to extend the maximum level at which you can gain HP from leveling. My server allows a max level of 1000, but after 200 your HP and stamina stay locked. I've found the relevant section of buffstatuscheck01:
<!-- Player HP / stamina per level -->
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="set" value="@$LastPlayerLevel"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="add" value="-1">
<requirement name="PlayerLevel" operation="LT" value="2"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="set" value="100">
<requirement name="PlayerLevel" operation="GT" value="100"/>
</triggered_effect>
I'm attempting to adjust that last section because from my understanding it just takes your level and adds that to your base health of 100 each time you level up. But I am having trouble selecting that line. Here's the xml I'm attempting to use to path to that line:
<!--Adjust HP/stamina gaining to increase beyond 200-->
<setattribute xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[cvar='$PlayerLevelBonus' and value='100']/requirement[@name='PlayerLevel']" name="value">900</setattribute>
<setattribute xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[cvar='$PlayerLevelBonus' and value='100']" name="value">900</setattribute>
As you can see I'm trying to cap it at 1000 instead of 200. Why? Don't ask.
But my patches are failing to apply to these lines. Is there a better way to xpath to these lines? Is the problem that the cvar I'm using as a selector has a dollar sign in it?
<!-- Player HP / stamina per level -->
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="set" value="@$LastPlayerLevel"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="add" value="-1">
<requirement name="PlayerLevel" operation="LT" value="2"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$PlayerLevelBonus" operation="set" value="100">
<requirement name="PlayerLevel" operation="GT" value="100"/>
</triggered_effect>
I'm attempting to adjust that last section because from my understanding it just takes your level and adds that to your base health of 100 each time you level up. But I am having trouble selecting that line. Here's the xml I'm attempting to use to path to that line:
<!--Adjust HP/stamina gaining to increase beyond 200-->
<setattribute xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[cvar='$PlayerLevelBonus' and value='100']/requirement[@name='PlayerLevel']" name="value">900</setattribute>
<setattribute xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[cvar='$PlayerLevelBonus' and value='100']" name="value">900</setattribute>
As you can see I'm trying to cap it at 1000 instead of 200. Why? Don't ask.

Last edited by a moderator: