combustion2.xml
<statusEffects>
<statusEffect>
<name>Combustion</name>
<key>combustion2</key>
<icon>combustion</icon>
<allowMany>false</allowMany>
<description>
Combustion stacks: {{global_flag -> key:combustion_stacks}}
[n]Turns until decay: {{global_flag -> key:combustion_turn_tracker}}
</description>
<hasTurns>false</hasTurns>
<turnEffects>
<turnEffects>
ModifyGlobalFlag -> global_flag:combustion_turn_tracker, operation:subtract, amount:1;
</turnEffects>
<turnEffects>
IF GlobalFlagCompare -> key:combustion_turn_tracker, less_than:1;
ModifyGlobalFlag -> global_flag:combustion_stacks, operation:subtract, amount:1;
THEN ModifyGlobalFlag -> global_flag:combustion_turn_tracker, operation:set, amount:5;
</turnEffects>
<turnEffects>
IF GlobalFlagCompare -> key:combustion_stacks, less_than:1;
THEN RemoveStatusEffect -> key:«LINK:combustion», starts_with:true;
THEN ModifyGlobalFlag -> global_flag:combustion_stacks, operation:set, amount:0;
THEN ModifyGlobalFlag -> global_flag:combustion_turn_tracker, operation:set, amount:0;
</turnEffects>
</turnEffects>
<modifiers>
<modifiers>
<type>FireDamageMultiplier</type>
<amount>0.0</amount>
<modifierConversion>
<type>Flag</type>
<flag>combustion_stacks</flag>
<multiplier>0.05</multiplier>
</modifierConversion>
</modifiers>
</modifiers>
</statusEffect>
</statusEffects>