Allow me to preface this by saying I know very little of programming.
I'm looking to assign a set of variables to existing classes; then the game will check which class is being used at game start. Whatever class the player chooses, those variables will change value according to that chosen class. Does that make sense?
So for one class, I assumed it'd go something like this...
Other classes would have a different value to that variable.
The problem is that the script doesn't seem to run automatically (I've made a plugin), only if I make it an event and interact with it. And then, only the second line of code has an effect. So regardless of whatever class is being used, the value of the variables always changes.
I'm looking to assign a set of variables to existing classes; then the game will check which class is being used at game start. Whatever class the player chooses, those variables will change value according to that chosen class. Does that make sense?
So for one class, I assumed it'd go something like this...
Code:
if ($gameParty.leader().isClass($dataClasses[1]));
$gameVariables.setValue(8, 2);
Other classes would have a different value to that variable.
The problem is that the script doesn't seem to run automatically (I've made a plugin), only if I make it an event and interact with it. And then, only the second line of code has an effect. So regardless of whatever class is being used, the value of the variables always changes.