A state link link state?

Would it be possible to make a state that links two actors, and then make it so it also links their states? So if actor A gets the "Burning" ailment, so does actor B?
Ive discovered how to do it for healing and damage but not for this.
The solution @ATT_Turan gave you in this thread:

should already take care of that. At least if the states get added es the result of a skill or item. So how are you currently adding the state?
The solution @ATT_Turan gave you in this thread:

should already take care of that. At least if the states get added es the result of a skill or item. So how are you currently adding the state?
it only links damage dealt


<Custom Respond Effect>

if (!$gameSwitches.value(2011))

{

var link=$gameParty.aliveMembers().find(member => member!=user && member.isStateAffected(244));



if (link)

{

$gameSwitches.setValue(2011, true);

this.apply(link);

}

}

</Custom Respond Effect>



<Custom Conclude Effect>

origin.startDamagePopup();

origin.clearResult();

$gameSwitches.setValue(2011, false);

</Custom Conclude Effect>
it only links damage dealt
1 - Whenever you're typing code, you should use the CODE tags (the </> icon above). This preserves indentations, characters inside brackets, and makes it much more legible than what you have above.

2 - Just pasting the tag from the other thread (which was already referenced) without answering what @eomereolsson asked isn't helpful.

As he said, this notetag should already be doing that. States (and everything else in the Effects window of your skill entry) are given via the applyItemEffect function, which is called inside Game_Action.apply().

Therefore, if calling .apply() works, it should be executing the damage and literally two lines later applying the effects.

So the question goes back to how are you applying the state? Is it that way, an Effect on the skill? Or something else?

Original thread: https://forums.rpgmakerweb.com/threads/a-state-link-link-state.151157/