- Joined
- Apr 12, 2020
- Messages
- 807
- Reaction score
- 1,260
- First Language
- German
- Primarily Uses
- RMMV
@Indinera
I don't really like using ternary operator in my formulas, they look ugly and disorganized.
I rather use normal JS formatting
Your formula would look like this then:
If you really don't use the formula in this way, you can just use your own formula and test it out.
The numbers won't lie.
I don't really like using ternary operator in my formulas, they look ugly and disorganized.
I rather use normal JS formatting
Your formula would look like this then:
JavaScript:
c=a.atk-b.def; if (a.hpRate() < 0.3) {250 + 4*c} else if (a.hpRate() < 0.5) {4*c} else {c}
If you really don't use the formula in this way, you can just use your own formula and test it out.
The numbers won't lie.