Help with Yanfly's Enemy Target Info script?

Hello all! I'm fairly new to RPG Maker, so I apologize if any question I ask sounds dumb. I think I've been doing alright on my own so far, but I've run into a problem that I just can't seem to figure out. I've looked all over for anything relating to my problem, but I still can't find the answer.

I'm having a problem with Yanfly's Enemy Target Info script (found here: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/enemy-target-info/). I'm trying to make a skill that reveals the enemy's info. I want the enemy's info to be hidden until the skill is used, if that makes sense. The skill itself seems to be working (it has no problem hitting the enemy), but I can't figure out the whole hiding info thing. Usually, all of the enemy's info will be shown even without using the skill, and I don't want that.

Here's what I have so far:

Spoiler
Analyze_zps1ee8bcc8.jpg
As you can see, I tried setting a state. I tried putting "<show info: all>" in the state's notebox, then putting "<hide info: all>" in the enemy's notebox. When I tried this out, the information was hidden, but it was never revealed when I used the skill.

If someone could help me out, it would be much appreciated! If you need any more information, I would be happy to give it.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
How did you set the configuration in the script itself?


Are you getting the problem on testplay (starting the game from the editor) or regular play (starting the game.exe)?


Yanfly has a setting in the script that will reveal the info during testplay even if it's hidden in regular play, and the default settings in the script might also be wrong for what you want to do.
Have you set line 195 to false?

Doing that means that the enemy has to be defeated once or scanned in order to reveal the information.  

Lines 221, 226, 241 and 246 also need to be set to false.
Andar, I'm not sure what you mean by configuration (sorry!). I haven't tried the skill in testplay. I only know that it doesn't work in regular play.

ksjp17, two of those lines (246 and 226) were set to true, but even when I changed them to false, it didn't work.
With configuration I mean to change the script settings (including the lines ksjp17 mentioned) to the settings needed for your project. Because sometimes they need to be set to true and other times to false, and that depends on what you as the game developer want to happen in the game.


Because of this you can't simply guess which one needs to be true or false, you need to read their description and then decide how they have to be set in your specific project.


Yanfly (and many other scripters) write their scripts in that way to allow the user to decide between several different uses of their scripts, but the downside of that versatility is that you as the script user can't simply copy the scripts into the project, you need to read and understand the descriptions and then change the script settings to create the behaviour you want of the script.
BTW, how exactly did you test? Did you test by hitting the play button in RPGMaker? If so that is testplay mode. To test in regular play, you have to first compile the project, then play it that way. So if you have been testing by using the play button in RPGMaker, it will always show the stats unless you turn that feature off. However, others playing it will be in regular play so they will not see the stats.

Edit: And don't feel bad if that is the error. It took me a month to learn that I was only in test play when I hit play right in RPGMaker, as I didn't know the difference then either.
Okay... I kind of feel like an idiot! I was hitting the play button, thinking that was regular play. My bad! I also found the setting within the script that makes the info hidden in test mode. It's working perfectly now! Thank you everyone for helping! I really appreciate it!
Okay... I kind of feel like an idiot! I was hitting the play button, thinking that was regular play. My bad! I also found the setting within the script that makes the info hidden in test mode. It's working perfectly now! Thank you everyone for helping! I really appreciate it!
Don't feel bad. Its kind of hidden the differences between playtest and regular mode. For instance, I also didn't know you could hold down CTR and no random fights would occur while in playtest mode until someone mentioned it on the forums.
Haha well now I know that, too! Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanflys-enemy-target-info-script.36192/