How do I add a check command?

Hi all, I wanna make a check skill that only one of the party members can use for my game Paraphernia, but I don't know how to. This check skill should be able to show the player the stats of an enemy.

For example,if an enemy's stat is 50 attack and 20 defense, the check skill will say "50 Attack and 20 defense"
I know I have seen a number of posts about this and references to various plugins. I just did a quick search and found quite a few options that you might be interested in checking out. I used the following search criteria.

"rpg maker mv check enemy stats skill"

It is also referred to as observe or analyze or show enemy stats, etc.

Personally, I would try to figure out how to Event this myself by making a Skill that I can assign to a party member and then having that Skill call a Common Event to handle the technical part.

But that is just me. I like to learn how to do things without using plugins, if possible.

Maybe someone with specific experience can recommend a specific plugin.

Good luck on your project!
Actually, this is pretty simple. So you want the actor to cast a spell/skill on a target to reveal the targets ATk and DEF, and I right?

Do it like this:

In the damage formula:
Code:
v[1] = b.atk ; v[2] = b.def ; [original damage formula]

Make that same skill trigger a common event, and have this common event show a text message, saying:
Code:
SCAN RESULTS:
Attack:     \v[1]
Defense:    \v[2]

Replace 1 and 2 with the variables you want to use for this in BOTH parts above, and replace [original damage formula] with your own damage formula.
Assuming you are wanting something very basic and using MV (and also only the actor can use this skill, not the enemy), you can put this as a script call in a common event in your skill which will run after the skill is resolved (this should also skip damage calculation since there is nothing in the formula box):
JavaScript:
const member = $gameTroop.members()[BattleManager._action._targetIndex];
$gameMessage.add(`Enemy: ${member.name()}
  ATK: ${member.atk}
  DEF: ${member.def}`);
Spoiler
scan.png

scan2.png

scan3.png
Assuming you are wanting something very basic and using MV (and also only the actor can use this skill, not the enemy), you can put this as a script call in a common event in your skill which will run after the skill is resolved (this should also skip damage calculation since there is nothing in the formula box):
JavaScript:
const member = $gameTroop.members()[BattleManager._action._targetIndex];
$gameMessage.add(`Enemy: ${member.name()}
  ATK: ${member.atk}
  DEF: ${member.def}`);
Thanks! Should I credit you?
Thanks! Should I credit you?
You are welcome - credit not necessary. Feel free to explore other ways as well.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-add-a-check-command.172050/