Add/Remove state Command assistance

Greetings Forumites,
I've recently discovered The Shaz State Add/Remove Command Script and firmly believe it to have significant potential for My works, however I have not been able to get it to Function, imagine My conundrum.

The Command I intend to run is here;
onadd:$game_temp.reserve_common_event(4)
onremove:$game_temp.reserve_common_event(5)

I also have in Dropbox the test demo here;

As requested I have the script here and Screenshots attached below.

Any assistance in this matter will be greatly appreciated.
it usually helps to give only the screenshots of the events used, and you should always give a better description than "doesn't work". And links to the website of all used scripts help as well.

That said - are you aware that reserving a common event is NOT the same as executing it?
That command adds the common event to the execution queue to be executed at the next possible moment. It does NOT execute the common events directly, because there is no command that can do that.

As a consequence the behaviour is dependent on when and where those reserve scriptst are used.
Looks good. This goes in the state note box.
Where do you have it?
Looks good. This goes in the state note box.
Where do you have it?
In the state Notebox, but nothing happens. The Script is the only one installed and coded yet it does not function.
That said - are you aware that reserving a common event is NOT the same as executing it?
That command adds the common event to the execution queue to be executed at the next possible moment. It does NOT execute the common events directly, because there is no command that can do that.
No, I was not aware that it wasn't the same, I've included screenshots and the script in text.
the script
Where did you get that version?
Where did you get that version?

From Shaz's Paste bin, .
@Dragon Brother
please check your project again.
the file you attached in post one is version 1.1, an older version.
the last two links are to version 1.2

which one is in your project? Please update to the newer version and test again if neccessary.
Update:
I have established that My program was running 1.1 and the newer version of the script, 1.2 has been tested and now the 'onremove' command is functioning properly the 'onadd' command however is not. so it is half way there.
I changed your formula and it worked.
if a.agi >= b.agi; b.add_state(2); a.add_state(3); end; a.atk

Original thread: https://forums.rpgmakerweb.com/threads/add-remove-state-command-assistance.149357/