How to do these things

Ok so I want to those these things:

An attack spell that spreads X state to all of its party if the main target has that state. I also use Yanfly plugins, and these skills are intended for both parties so I also need a way for the enemies to only target those who have X state and actually try to spread the state.

Also I need some of those attacks and heals that get stronger with X state. Am I missing something a notetag that is not a lunatic state and includes ''if target has X, change the formula to Y'' or something like that?

I need transformations. For example I want to transform Actor1_1 to Actor1_2 when the target has that effect. Those buffs will be unique to each party member but I want to change the battler and battler only so I want face and sprite to be intact since that is a trance based effect and is only meant to be applied in battle.
You'll need the skill core and damage core. Here are some skill notes.

For the spreading state skill, use this:
Spoiler: Skill Notetag
<After Eval>
if(b.isStateAffected(<YOUR STATE ID HERE>)){
var unit = $gameTroop;
if(!user.isActor()){
unit = $gameParty;
}

for (var i = 0; i < unit.aliveMembers().length; ++i) {
var member = unit.aliveMembers() [ i ]; //(Remove spaces on this line, forum was being weird, brackets should touch (), and no spaces around the i.)
member.addState(<YOUR STATE ID HERE>);
}
}
</After Eval>

For the healing getting stronger if the target has a state skill, use this:
Spoiler: Skill Notetag
<damage formula>
value = <YOUR DAMAGE FORMULA HERE>;

if(b.isStateAffected(<YOUR STATE ID HERE>)) {
value = <YOUR NEW DAMAGE FORMULA HERE>;
}
</damage formula>

Transformation:

Less sure on this. But! Yanfly made this, and it may help:
Spoiler: Video
Thank you, I could not watch the transformation video though, but Yanfly's Actor Transformation state did not work. I just need something like ''set affected target's battler to X for the effect duration'' since that is the only thing that needs to be done.

For the spread, it is only for the player actors or enemies count too? For example an enemy spreading poison to my entire player party, players spreading poison to the entire enemy party, enemies spreading positive effects to their party and players spreading positive effects to their party, it is viable on all of them?
Sorry, I do not know how to do that with transformations.

Currently, the spreading only works on spreading the enemy team's states. Actors spreading enemy states, and enemies spreading actor states. This will make it more universal, I think:

Spoiler: Notetags for Spreading State
<After Eval>

if(b.isStateAffected(<STATE ID>)){

var unit = $gameTroop;

if(b.isActor()){

unit = $gameParty;

}


for (var i = 0; i < unit.aliveMembers().length; ++i) {

var member = unit.aliveMembers() [ i ];
member.addState(<STATE ID>);

}

}

</After Eval>

This will make it, if the target is an actor, all actors are infected. If the target is an enemy, than all enemies. The source should be able to be an enemy or actor, as it's never checked. The skill will check if the target has whatever state you tell it, than apply that state to its entire team.
Thank you so much. You saved my life. ^^
No problem!

I like the idea of this skill. Mind if I use a state spreading skill in my game?
Of course. I would love to know I inspired you. ^^
Alright, thanks!
<damage formula>
value = <YOUR DAMAGE FORMULA HERE>;

if(b.isStateAffected(<YOUR STATE ID HERE>)) {
value = <YOUR NEW DAMAGE FORMULA HERE>;
}
</damage formula>

I want to ask something, this formula affects damage spells too?
Hi,

There a Discord where people share lunatic effect like you're trying to do so maybe if you want some futher help, you may want to give it a try over there: https://discord.gg/3WmYzZh (many active people)
Of course, I am downloading discord immediately. Thank you. ^^

Original thread: https://forums.rpgmakerweb.com/threads/how-to-do-these-things.78451/