Bladestorm Games
Refugee
Hello everyone, I am trying to attempt/theorize a Poison debuff that applies damage over time.
I am using the Bleeding debuff as a guide on how to make a Poison version of the Bleed debuff.
The question I have is, if I change this code:
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffInjuryBleeding">
<requirement name="CVarCompare" cvar="$bleedDuration" operation="LTE" value="0"/>
</triggered_effect>
To this:
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffPoisonDoT">
<requirement name="CVarCompare" cvar="$poisonDuration" operation="LTE" value="0"/>
</triggered_effect>
will the CVar of "poisonDuration" function? Or does it fail, because I havent declared a poisonDuration variable in some other file?
I hope the question I'm asking makes sense, basically I'm replacing vars like "bleedDuration" and "bleedCounter" with "poisonDuration" and "poisonCounter" but I'm wondering if that would even work or would it fail because I need to declare those variables somewhere first?
I am using the Bleeding debuff as a guide on how to make a Poison version of the Bleed debuff.
The question I have is, if I change this code:
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffInjuryBleeding">
<requirement name="CVarCompare" cvar="$bleedDuration" operation="LTE" value="0"/>
</triggered_effect>
To this:
<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffPoisonDoT">
<requirement name="CVarCompare" cvar="$poisonDuration" operation="LTE" value="0"/>
</triggered_effect>
will the CVar of "poisonDuration" function? Or does it fail, because I havent declared a poisonDuration variable in some other file?
I hope the question I'm asking makes sense, basically I'm replacing vars like "bleedDuration" and "bleedCounter" with "poisonDuration" and "poisonCounter" but I'm wondering if that would even work or would it fail because I need to declare those variables somewhere first?