oath_of_the_fallen.xml
<abilities>
<ability>
<name>Oath of the Fallen</name>
<key>oath_of_the_fallen</key>
<skill>chivalry</skill>
<icon>oath_of_the_fallen</icon>
<tagline>"By this Oath, I make the world."</tagline>
<description>
Any time you kill a non-human gain 1 Oath of The Fallen. Each point represents a sworn oath to defeat
the monstrous threats that plague the land.
[p]Oaths can be spent at an Altar of Ahnais to unlock special bonuses.
</description>
<type>passive</type>
<subType>0_Basic Passives</subType>
<passiveInfo>
<triggers>
<triggers>
KEY oath_of_the_fallen_trigger;
WHEN PlayerKillsEnemy -> require_non_human:true;
AND HasStatusEffect -> key:knights_challenge, target:players_attack_target;
THEN ModifyGlobalFlag -> global_flag:oath_of_the_fallen, operation:add, amount:2;
THEN write_log -> logAfterCombat:true, text:Gained 2 Oath of the Fallen\, total now {{oath_of_the_fallen}}.;
ELSE ModifyGlobalFlag -> global_flag:oath_of_the_fallen, operation:add, amount:1;
ELSE write_log -> logAfterCombat:true, text:Gained 1 Oath of the Fallen\, total now {{oath_of_the_fallen}}.;
</triggers>
</triggers>
</passiveInfo>
<unlockInfo>
<autoUnlock>0</autoUnlock>
<autoDiscover>0</autoDiscover>
</unlockInfo>
</ability>
</abilities>