So I've currently been working on a project in MZ, and have moved onto a character that relies heavily on physical damage. I had an idea for a skill that, like the title says, checks to see if the enemy has a defensive buff, and if they do then the attack deals more damage, also removing the defensive buffs in the process.
I already have a good handle on things like the damage formula and setting it up in a common event, but it's checking for the buff that's getting me. I'm still learning Javascript honestly, I've been able to create a skill that increases in damage based on if you have low hp or not. But I'm not sure how to check for def buffs.
The idea would be to create an if branch: If enemy has phys def buff or mag def buff, do big damage and remove the buffs. If not, do slightly weaker than normal damage.
What line of Javascript code would I need for this skill?
(Also apologies if this was posted on the wrong board, it's been awhile since I posted here.)
I already have a good handle on things like the damage formula and setting it up in a common event, but it's checking for the buff that's getting me. I'm still learning Javascript honestly, I've been able to create a skill that increases in damage based on if you have low hp or not. But I'm not sure how to check for def buffs.
The idea would be to create an if branch: If enemy has phys def buff or mag def buff, do big damage and remove the buffs. If not, do slightly weaker than normal damage.
What line of Javascript code would I need for this skill?
(Also apologies if this was posted on the wrong board, it's been awhile since I posted here.)