Hello again!
I have another coding problem that I'd like to get addressed. I am trying to make a skill that copies the base stats of a target and duplicates the changes in the form of a buff/debuff to the caster of the spell. The only problem I'm facing is trying to get the skill to reference the class of the caster to use as bases for the math, since I want to incorporate equipment changes as well instead of just being a raw copy where personal stat changes becomes useless. My code is below:
I looked at all the reference material I could stomach, but I just could not get it to subtract the classes' stats at the user's level from the enemy's stats. I'm using Yanfly's Skill Core and Base Param Control for this one. If anyone can help push me in the right direction, I would greatly appreciate it.
I have another coding problem that I'd like to get addressed. I am trying to make a skill that copies the base stats of a target and duplicates the changes in the form of a buff/debuff to the caster of the spell. The only problem I'm facing is trying to get the skill to reference the class of the caster to use as bases for the math, since I want to incorporate equipment changes as well instead of just being a raw copy where personal stat changes becomes useless. My code is below:
Code:
<After Eval>
$gameVariables.setValue(3, target.param(2) - $dataClasses[user.currentClass().id].params[2, user.level]);
$gameVariables.setValue(4, target.param(3) - $dataClasses[user.currentClass().id].params[3, user.level]);
$gameVariables.setValue(5, target.param(4) - $dataClasses[user.currentClass().id].params[4. user.level]);
$gameVariables.setValue(6, target.param(5) - $dataClasses[user.currentClass().id].params[5, user.level]);
$gameVariables.setValue(7, target.param(6) - $dataClasses[user.currentClass().id].params[6, user.level]);
user.addState(13);
</After Eval>
I looked at all the reference material I could stomach, but I just could not get it to subtract the classes' stats at the user's level from the enemy's stats. I'm using Yanfly's Skill Core and Base Param Control for this one. If anyone can help push me in the right direction, I would greatly appreciate it.