checking enemy status (defence ,magic def) in battle

What is magic defense for? and defense
Is it possible to check the stats while fighting the monster I need to test because I don't think my Skils is working
None of those parameters are "for" anything unless you reference them in the damage formula of a skill.

Their parameters will be whatever value you typed into the database unless you're modifying them with a debuff or something.

If you want to visually check it, you could put into the damage formula console.log("Magic defense is ", b.mdf, " Defense is ", b.def);

Then during the game, press F12 and go to the Console tab and see what it says when you use the skill.
None of those parameters are "for" anything unless you reference them in the damage formula of a skill.

Their parameters will be whatever value you typed into the database unless you're modifying them with a debuff or something.

If you want to visually check it, you could put into the damage formula console.log("Magic defense is ", b.mdf, " Defense is ", b.def);

Then during the game, press F12 and go to the Console tab and see what it says when you use the skill.
thank you very much
why is it only the second time when I activate the ability that the effect is displayed
1683456500574.png

1683456513265.png
Is there a particular reason you've posted the console output?
Is there a particular reason you've posted the console output?
ups not this console I meant it
That is quite clearly two activations, unless you've put two console log lines in the same skill formula. You haven't shown us the skill itself so I can't say one way or the other yet.
I have a problem that if I have consoles the hero does not cause damage to enemy
Formula: 300 + a.mat * 3 - b.mdf * 1, console.log("Magic defense is ", b.mdf, " Defense is ", b.def, " Atack is ", b.atk);
1683458032333.png

1683458129149.png

That is quite clearly two activations, unless you've put two console log lines in the same skill formula. You haven't shown us the skill itself so I can't say one way or the other yet.
I have a problem that if I have consoles the hero does not cause damage to enemy
Formula: 300 + a.mat * 3 - b.mdf * 1, console.log("Magic defense is ", b.mdf, " Defense is ", b.def, " Atack is ", b.atk);
View attachment 261232
View attachment 261233
That's because the damage value for the skill is the most recent statement it evaluated. You need to have the formula itself *after* the console log for it to work.
If I do that, I have something like this, or two times the first one appears and then the third time it appears another one.
1683461717534.png

That's because the damage value for the skill is the most recent statement it evaluated. You need to have the formula itself *after* the console log for it to work.
attack works
What is the log output even meant to be checking?
is to check if after using skill is applied reduction of enemy stats and this is to happen after using skill
What is the log output even meant to be checking?
is to check if after using skill is applied reduction of enemy stats and this is to happen after using skill
In that case what you're doing won't work. You're outputting that message as part of the damage formula, which is executed before damage is dealt and any other effects applied. You won't see the stat changes until the next turn.

I think it's safe to say that those reductions are being applied, though, assuming you're not using a plugin that completely changes how combat works.
In that case what you're doing won't work. You're outputting that message as part of the damage formula, which is executed before damage is dealt and any other effects applied. You won't see the stat changes until the next turn.

I think it's safe to say that those reductions are being applied, though, assuming you're not using a plugin that completely changes how combat works.
ok thanks for helping
@Trihan can I check how much evasion rate gets a character
additiopnally you have a typo if I see the screenshots correctly.

different commands are seperated by ; and not by , as you're using
additiopnally you have a typo if I see the screenshots correctly.

different commands are seperated by ; and not by , as you're using
That actually doesn't matter, believe it or not. You can separate statements in JS with commas (well, kind of. It evaluates each one and then returns the last)
is to check if after using skill is applied reduction of enemy stats and this is to happen after using skill
Yeah, I didn't give you that console.log tip as a way to do that - it was for a quick way to check what the enemy's parameters were at the time of using the skill.

Basically, I'm not sure what your confusion/question is. If your state has a reduction in parameters, and you can see the icon indicating the enemy has that state...their parameters are being reduced.

Unless you have some significant plugins that are doing things wrong, there's no way for that to be bugged. What made you suspect the enemies might have the wrong parameters in the first place?

I've moved this thread to MZ Support. Thank you.

Thank for helping

Original thread: https://forums.rpgmakerweb.com/threads/checking-enemy-status-defence-magic-def-in-battle.157296/