Script command for MOG Char Poses plugin

I'm using MOG's Char Poses plugin (https://atelierrgss.wordpress.com/rmv-character-poses/). I'm trying to make the player recover MP when the idle pose activates, by setting a common event with a conditional branch. How should I type the script call for this condition? Tried searching in the .js file and doing this on the image below but it didn't work.

upload_2017-12-31_15-33-3.png


Is this really possible to do? Anyone can help? I'm sorry if this is a noob question, but I'm a very beginner in Javascript, so I don't know what to try anymore.
Moved to: Javascript/Plugin Support
After searching the script and trying to replicate the conditions on it, I did this:
upload_2018-1-1_13-26-48.png


It's not the prettiest event code but it worked. Now my char recovers MP when she is not doing anything!

Original thread: https://forums.rpgmakerweb.com/threads/script-command-for-mog-char-poses-plugin.89221/