- Joined
- Feb 10, 2018
- Messages
- 17
- Reaction score
- 1
- First Language
- German
- Primarily Uses
- RMMV
I'm trying to make a skill that deals more damage if the enemy has either an attack or m.attack buff.
So i did some research and this is the formula i've come up with, but sadly it doesn't work.
a.buffs[2] > 0 || a.buffs[4] > 0 ? a.mat * 7 - b.mdf : a.mat * 2 - b.mdf
I also tried replacing a.buffs with b.buffs and leaving out the second check like this:
b.buffs[2] > 0 ? a.mat * 7 - b.mdf : a.mat * 2 - b.mdf
But that also does not work.
Any Ideas?
So i did some research and this is the formula i've come up with, but sadly it doesn't work.
a.buffs[2] > 0 || a.buffs[4] > 0 ? a.mat * 7 - b.mdf : a.mat * 2 - b.mdf
I also tried replacing a.buffs with b.buffs and leaving out the second check like this:
b.buffs[2] > 0 ? a.mat * 7 - b.mdf : a.mat * 2 - b.mdf
But that also does not work.
Any Ideas?

