Yanfly Engine Plugins - Try to change the scope of skill if there is state affected

I plan to make skill and item used with different scope depends on the state on the user. and i plan to use the <Custom Target Eval> but i am lacking of knowledge about JS...Any advice for me, Thank guys!

Skill A - Original: Hitting one of the front row enemy
State affected(on user): Hitting the whole row(all enemy in that row)

Item B - Original: Heal 30HP for one member
State affected(on user): Heal 30HP for one row(all member in that row)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-engine-plugins-try-to-change-the-scope-of-skill-if-there-is-state-affected.111996/