simmering_anger.xml
<abilities>
<ability>
<name>Simmering Anger</name>
<key>simmering_anger</key>
<skill>bludgeons</skill>
<icon>simmering_anger</icon>
<tagline>Let it boil. Then, let it burst.</tagline>
<description>
While no stance is active, your attacks have a 5% chance to grant a stack of "Simmering
Anger", up to a maximum of 25 stacks.
[p]
Activating Unleash Fury or any other stance consumes all stacks of Simmering Anger, granting
+4% damage per stack for the duration of the stance.
[p]
All stacks are lost when entering the overworld.
</description>
<type>Passive</type>
<passiveInfo>
<triggers>
<triggers>
KEY simmering_anger_attack_stack_trigger;
WHEN PlayerAttacks -> nonAggressive:false;
IF NOT HasStatusEffect -> is_stance:true;
IF Roll -> oddsOf:5, oddsIn:100;
THEN ModifyGlobalFlag -> global_flag:simmering_anger_stacks, operation:add,
amount:1;
THEN ModifyGlobalFlag -> global_flag:simmering_anger_stacks, operation:min,
amount:25;
THEN ModifyGlobalFlag -> global_flag:simmering_anger_stacks_current, operation:add,
amount:1;
</triggers>
<triggers>
KEY simmering_anger_attack_status_trigger_2;
WHEN PlayerAttacks -> nonAggressive:false;
IF NOT HasStatusEffect -> is_stance:true;
AND NOT HasStatusEffect -> key:simmering_anger_status;
AND NumberCompare -> key:{{G:simmering_anger_stacks}}, greater_than:0;
THEN ApplyStatusEffect -> key:«LINK:simmering_anger_status»;
</triggers>
</triggers>
</passiveInfo>
<unlockInfo>
<autoDiscover>0</autoDiscover>
<unlockRequirements>
<requiredPoints>2</requiredPoints>
<requires>unleash_fury</requires>
</unlockRequirements>
</unlockInfo>
<requirements>
<requirements>
<type>Weapon</type>
<params>
<params type="weapon">bludgeon</params>
</params>
</requirements>
</requirements>
</ability>
</abilities>