Hey guys,
Hope somebody will be able to help me out with a problem I am facing with a custom damage formula.
My Java script knowledge is very limited so I apologies if this question is obvious.
This is the formula I have been working with.
<damage formula>
if (a.isStateAffected(707)) {
value = a.atk * 5 + a.luk * 2;
} else {
value = a.atk * 4
}
</damage formula>
I know that this makes the game check if the hero is affected with state 707 and if so execute the increased damage.
My question:
How do I have to write the code to make the game check if the hero is affected with either of the states 707, 708, 709, 710 or 711 to execute the increased damage?
These represent my "Hidden" state which comes in different tiers but either tier should be able to trigger the higher damage.
Any help will be much appreciated, thank you in advance!
Hope somebody will be able to help me out with a problem I am facing with a custom damage formula.
My Java script knowledge is very limited so I apologies if this question is obvious.
This is the formula I have been working with.
<damage formula>
if (a.isStateAffected(707)) {
value = a.atk * 5 + a.luk * 2;
} else {
value = a.atk * 4
}
</damage formula>
I know that this makes the game check if the hero is affected with state 707 and if so execute the increased damage.
My question:
How do I have to write the code to make the game check if the hero is affected with either of the states 707, 708, 709, 710 or 711 to execute the increased damage?
These represent my "Hidden" state which comes in different tiers but either tier should be able to trigger the higher damage.
Any help will be much appreciated, thank you in advance!