State Core help (yanfly) Aoe state damage and buffs

Hey guys I was looking for a little help with some new states. Im using Yanfly's Buff and State Core. Im looking for a status effect that will damage the enemy at the end of his turn and any other nearby enemies ( Im also using Yanfly's Row Formation plugin )

Also in another regard Im looking for a way to manipulate parameters the way the pokemon franchise handles them. Each state starts out a stage 0 and can either be raised or lowered by 6 stages total. (-6,-5,-4,-3,-2,-1,0,+1,+2,+3,+4,+5,+6).

Here's how the stages work.

Stat stage Ideal Multiplier
-6 3/9
-5 3/8
-4 3/7
-3 3/6
-2 3/5
-1 3/4
0 3/3
1 4/3
2 5/3
3 6/3
4 7/3
5 8/3
6 9/3

I figured this could be achieved through some java script and Yanfly's plugin but I don't know how to achieve it. I appreciate any input. Thank you guys.

Oh I also forgot to add that Im searching for the toxic effect from pokemon as well. Its a poison that increase in damage everyturn. However Im using a custom formula of origin.matk * 2 + origin.luk *1 for my regular poison so I was hoping there was a way to replicate the toxic effect with a similar formula.
Thank you again guys and gals.
bump in desperation.
Here's the setup for Toxic: http://yanfly.moe/2015/12/30/tips-tricks-toxic-pokemon/
http://yanfly.moe/2015/12/30/tips-tricks-toxic-pokemon/
The other one I'm sure someone else will come along and help if it's possible.
Yeah but that toxic is based off the enemies maximum health and damages in percentile. I was looking for one that would scale off of the casters base parameters like m.atk and luck. Thank you none the less however.

Original thread: https://forums.rpgmakerweb.com/threads/state-core-help-yanfly-aoe-state-damage-and-buffs.86802/