Moghunter's Active Chain Commands repeat the same skill?

So I have three skills I wanted to use,

001: Attack         (there by default)

167: Extra Attack

168: Final Attack

So I typed these into the MOG_Active_Chain script.

CHAIN_ACTIONS = { 167=>["Random","Random"], 168=>["Random","Random","Random","Random"] } Basically I wanted to make it so that if the player chooses Attack, he can chain it to Extra Attack is he can input the buttons fast enough, and then Final Attack after that.

So I put <Chain Action = 167> into 001: Attack's Note Box, and <Chain Action = 168> into 167: Extra Attack's.

The button input works fine, and the Extra Attack shows up well with the icon and everything, but after the button input, it repeats the Attack skill and Extra Attack shows up again, it always shows this until I intentionally fail, then it does the Extra Attack. But then, after Final Attack shows up, it repeats the Extra Attack skill and Final Attack shows up again.

Is there a way I can make it so that Attack and Extra Attack only does it's chain command once?
Please give a link to the script's page, so that we can check it and its manual etc.
Link to the script: http://www.atelier-rgss.com/RGSS/Battle/ACE_BAT20.html

My edited script: http://pastebin.com/PaYzXipp

It's in a different language so I don't get most of it =\
Check your note box on the attack.

Chain.png
167=>["Random","Random"], 168=>["Random","Random","Random","Random"]
Most probably this is the reason - the script does exactly what it is supposed to do:

After two random actions, it's executing skill 167, and then clears the action sequence. It will never get to the four-action-part, because it will detect the two-action-part long before and then clear the queue.

If you want the skill 168 to activate, there has to be a difference in the first two actions to detect, they cannot be identical to the sequence of a different skill.
Ah, I see. Is there a way I can still make this happen?

Original thread: https://forums.rpgmakerweb.com/threads/moghunters-active-chain-commands-repeat-the-same-skill.54458/