Bladestorm Games
Refugee
Hi, Im trying to make it so that knuckle items use 20% increased Stamina Use and deal 200% Block Damage on Power Attacks.
I was able to pull this off in the items.xml, but I'd have to copy and paste the code for each Knuckle Item.
I wanted to simplify that, so I've added this code into the progression.xml, which should effect all Knuckle weapons:
<append xpath="/progression/perks/perk[@name='perkBrawler']/effect_group">
<requirement name="ItemHasTags" tags="perkBrawler"/>
<passive_effect name="StaminaLoss" operation="perc_add" level="1,5" value=".2,1" tags="perkBrawler, secondary"/>
<passive_effect name="BlockDamage" operation="perc_add" level="1,5" value="2,10" tags="perkBrawler, secondary"/>
</append>
Quick note, I needed the "requirement" line because without it, all weapons would be effected by the passive_effects. (With this line I could probably remove the "perkBrawler" from the tags.)
The issue I'm running into with the code above, is with Regular Attacks, they seem to be inheriting the passive_effects. I was hoping I could add "secondary" to the tags attribute so that only Power Attacks get the passive_effects. What do i need to add/change to make the passive_effects only work with Power Attacking?
Just for fun I'll provide my item.xml method incase anyone wanted to critique it / add suggestion to it:
I was able to pull this off in the items.xml, but I'd have to copy and paste the code for each Knuckle Item.
I wanted to simplify that, so I've added this code into the progression.xml, which should effect all Knuckle weapons:
<append xpath="/progression/perks/perk[@name='perkBrawler']/effect_group">
<requirement name="ItemHasTags" tags="perkBrawler"/>
<passive_effect name="StaminaLoss" operation="perc_add" level="1,5" value=".2,1" tags="perkBrawler, secondary"/>
<passive_effect name="BlockDamage" operation="perc_add" level="1,5" value="2,10" tags="perkBrawler, secondary"/>
</append>
Quick note, I needed the "requirement" line because without it, all weapons would be effected by the passive_effects. (With this line I could probably remove the "perkBrawler" from the tags.)
The issue I'm running into with the code above, is with Regular Attacks, they seem to be inheriting the passive_effects. I was hoping I could add "secondary" to the tags attribute so that only Power Attacks get the passive_effects. What do i need to add/change to make the passive_effects only work with Power Attacking?
Just for fun I'll provide my item.xml method incase anyone wanted to critique it / add suggestion to it:
Code:
<append xpath="/items/item[@name='meleeWpnKnucklesT0LeatherKnuckles']/effect_group[@name='Power Attack']">
<!-- Perk Level 1 -->
<passive_effect name="BlockDamage" operation="perc_add" value="2" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="1"/>
</passive_effect>
<passive_effect name="StaminaLoss" operation="perc_add" value=".2" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="1"/>
</passive_effect>
<!-- Perk Level 2 -->
<passive_effect name="BlockDamage" operation="perc_add" value="4" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="2"/>
</passive_effect>
<passive_effect name="StaminaLoss" operation="perc_add" value=".4" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="2"/>
</passive_effect>
<!-- Perk Level 3 -->
<passive_effect name="BlockDamage" operation="perc_add" value="6" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="3"/>
</passive_effect>
<passive_effect name="StaminaLoss" operation="perc_add" value=".6" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="3"/>
</passive_effect>
<!-- Perk Level 4 -->
<passive_effect name="BlockDamage" operation="perc_add" value="8" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="4"/>
</passive_effect>
<passive_effect name="StaminaLoss" operation="perc_add" value=".8" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="4"/>
</passive_effect>
<!-- Perk Level 5 -->
<passive_effect name="BlockDamage" operation="perc_add" value="10" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="5"/>
</passive_effect>
<passive_effect name="StaminaLoss" operation="perc_add" value="1" tags="secondary">
<requirement name="ProgressionLevel" progression_name="perkBrawler" operation="Equals" value="5"/>
</passive_effect>
</append>
Last edited by a moderator: