Skill ways of selection & states problems RPGMV with yep plugins

Dear all!

I am making a skill with different ways of targeting enemies depending the state on user. Using the Yep_Row formation & selection control & target core, etc.

If user have state(a) affected, the skill become can target any one.
If not, the skill can only target the front row enemy.

I am lack of JavaScript skill, plz can anyone gives some comments to make such a skill =[

Original thread: https://forums.rpgmakerweb.com/threads/skill-ways-of-selection-states-problems-rpgmv-with-yep-plugins.106507/