This issue is very similar to the issue I've brought up in this post: https://forums.rpgmakerweb.com/inde...witching-weapons-classes.179903/#post-1528705
However, for some reason, the issue has returned even after using a.initSkills() in the note tags.
Here's what's going on:
There's a major issue that I have whenever I'm using WAY_CustomOnEquipEval. Say for example, I equip a weapon that allows me to use Class 1 and its skills. However, when I decide to equip Class 2, the skills for Class 1 then merge with Class 2, and this issue continues with every other class switch.
The scripts for these classes are as follows:
Class 1:
=================
<Custom On Equip Eval>
a.changeClass(13)
a.initSkills()
</Custom On Equip Eval>
<Custom On Remove Equip Eval>
a.changeClass(15)
a.initSkills()
</Custom On Remove Equip Eval>
Class 2:
=================
<Custom On Equip Eval>
a.changeClass(4)
a.initSkills()
</Custom On Equip Eval>
<Custom On Remove Equip Eval>
a.changeClass(15)
a.initSkills()
</Custom On Remove Equip Eval>
Now as you can see a.initSkills() was added to have the lasses retain their skills. And it worked up until I decided to test skills out in battle. I had planned to make skills that when activated, would cause the user to switch classes. This is what the skills' note tags say in regard to switching to a certain class
Weapon 1
<Custom Show Eval>
if ($gameParty.hasItem($dataWeapons[5], false)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
Weapon 2
<Custom Show Eval>
if ($gameParty.hasItem($dataWeapons[13], false)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
Additionally, I've created Common Events that allow me to switch the class in the skills Effects section.
How do I fix this?
However, for some reason, the issue has returned even after using a.initSkills() in the note tags.
Here's what's going on:
There's a major issue that I have whenever I'm using WAY_CustomOnEquipEval. Say for example, I equip a weapon that allows me to use Class 1 and its skills. However, when I decide to equip Class 2, the skills for Class 1 then merge with Class 2, and this issue continues with every other class switch.
The scripts for these classes are as follows:
Class 1:
=================
<Custom On Equip Eval>
a.changeClass(13)
a.initSkills()
</Custom On Equip Eval>
<Custom On Remove Equip Eval>
a.changeClass(15)
a.initSkills()
</Custom On Remove Equip Eval>
Class 2:
=================
<Custom On Equip Eval>
a.changeClass(4)
a.initSkills()
</Custom On Equip Eval>
<Custom On Remove Equip Eval>
a.changeClass(15)
a.initSkills()
</Custom On Remove Equip Eval>
Now as you can see a.initSkills() was added to have the lasses retain their skills. And it worked up until I decided to test skills out in battle. I had planned to make skills that when activated, would cause the user to switch classes. This is what the skills' note tags say in regard to switching to a certain class
Weapon 1
<Custom Show Eval>
if ($gameParty.hasItem($dataWeapons[5], false)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
Weapon 2
<Custom Show Eval>
if ($gameParty.hasItem($dataWeapons[13], false)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
Additionally, I've created Common Events that allow me to switch the class in the skills Effects section.
How do I fix this?