Hello, I wonder if anyone can help me.
I'm using all of Visustellas Plug-ins.
I currently have a state that does damage over time but at the moment the damage doesn't have any fire element attached to it. Even though it's supposed to burn the enemy...
Is there a way to apply fire element towards the damage value?
I've set up an elemental Rate of 150% for a monster, attacking it with fire does the 'Weakness Display' popup and deals more damage. I'm hoping this will apply for the DOT when an element of fire is applied towards the damage.
This is the State I have set up.
State 36 is the burn effect, when the stack reaches 0 it'll remove itself.
<JS On Add State>
this._burnStacks = this._burnStacks || 0;
if(this._burnStacks <= 2){
this._burnStacks++;
this.setStateDisplay(36, this._burnStacks);
}
</JS On Add State>
<JS Pre-Regenerate>
const n = this._burnStacks / 20;
const value = Math.floor(n * target._burnStacks);
if(this._burnStacks == 0)
{
a.removeState(36);
}
target.gainHp(-value);
if(user.isDead()){
user.performCollapse();
}
</JS Pre-Regenerate>
<JS On Erase State>
delete target._burnStacks;
</JS On Erase State>
EDITED ------
Okay, so I've taken a look at the previous posts and added an 'If statement' to determine if the enemy is weak to fire (enemy set Element Rate Fire = 120%), if so then more damage is dealt from the burn state.
if(target.elementRate(2) >= 1.2)
{
target.gainHp((-value)*target.elementRate(2));
}
else{
target.gainHp(-value);
}
But now I'm stuck with something completely different, I was hoping to create, bleed or poison states, much like the burn state where damage is taken over time but when i applied both Burn and Poison to an enemy only one of states will take effect and damage the enemy.
Is there a way to display the burn and poison dot separately?
Or maybe add the damages together?
EDITED -----
Never mind I figured out a way to add all stack damages together.