@Hunor. I may be missing something with your request, but it sound like you want to make an enemy's specific stat change to that of a specific actor.
This may be a cheap workaround, but you could just have the skill formula call upon the target's str instead of his own
value = b.atk - b.def // to call on target
$gameActors.actor(actorId).atk // to call on specific actor ID [1- however many actor]
$gameParty.members()[index].atk // to call on specific party member position [0-3]
If you wanted it to only call on this when a state is applied make 2 copies of the skill, one that uses user stat and the other to use one of the above, and have the state forget the default skill and learn the new skill?
I have some questions that I am trying call upon various variables
The damage taken during the current turn so i make make a state that returns mana based on a percentage of damage taken
a.gainMp(damagetaken*0.1)
The damage that will be dealt during the current turn, so that I can make a state to return mana or increase / decrease the damage that will occur
value = damage*0.5
a.gainMp(damage*0.1)
Is there a script to call on my entire party, or do i have to reference them each individually?
Instead of the following
$gameParty.members()[0].gainHp(500);
$gameParty.members()[1].gainHp(500);
$gameParty.members()[2].gainHp(500);
$gameParty.members()[3].gainHp(500);
Something like
$gameParty.members()[ALL].gainHp(500);
Similarly, is there a script to call upon all enemies currently in battle? this one is harder because I can't do the add them individually workaround as different battles may have different number of enemies.
Is there a script to call on the last person that attacked me? The reason for these last 2 questions is that I have created a skill/ state that works as a 'final attack.' If the actor has the state applied, he will do damage before dying. I currently have this working to a random enemy as that's all I knew how to reference.
I would like to add new skills that does a final attack to all enemies as I asked above
And another skill which does a final attack to the character (player or enemy) that killed me. This would work as a deterrent for players killing their own character to trigger this 'final attack.'
Thanks in advance for any help.