I am writing some code for yanfly's plugin, but I cannot parse what I'm doing wrong exactly. How it's supposed to work is that when you level up, the plugin checks if Variable X is equal to, or lesser than, 495, and if the player's class is Hero, Brawler, Wizard, Rogue.
If Variable X is below 495 and Hero, or any other class that increases the same stat, is their current class, their parameters are increased.
However, I don't know exactly which script calls to use. Yes, I've checked google, have the master list bookmarked and have tried several variations of this.
Edited for better reading.
If Variable X is below 495 and Hero, or any other class that increases the same stat, is their current class, their parameters are increased.
However, I don't know exactly which script calls to use. Yes, I've checked google, have the master list bookmarked and have tried several variations of this.
Code:
<Custom Level Up Effect>
//Increases Total Party Level Variable
$gameVariables.setValue(X,
$gameVariables.value(X) + 1);
//Increases Indiv Character Level Variable P1
$gameVariables.setValue(X,
$gameVariables.value(X) + 5);
if ($gameActors.actor(1).isClass($dataClasses[1, 2, 3, 4]))
$gameActors.actor(1).addParam(2, Math.randomInt(10));
if ($gameVariables.value(X) <= 495)
$gameActors.actor(1).addParam(0, Math.randomInt(10));
$gameActors.actor(1).addParam(1, Math.randomInt(6));
//Heals Current Actor
var heal = 9999;
actor.gainHp(heal);
</Custom Level Up Effect>
Edited for better reading.