- Joined
- Jun 29, 2014
- Messages
- 6
- Reaction score
- 0
- First Language
- Spanish
- Primarily Uses
Good day,
I would like to change an actor's class after every battle ends.
The character has 3 skills that change its class to a different one in battle by calling a common script, which turns on a switch. When the switch is turned on, a parallel process event comes on and changes the class for the character.
Each class enables and disables a certain set of skills accordingly. And finally, two of the class-changing skill come together with positive MP regeneration as states, and HP damage every turn. The first class changing skill unlocks no skill sets and removes the HP/MP states.
Ideally, the character should always start a battle as "class 1", change onto either "class 2" or "class 3" while getting the benefits of the MP regen and the HP damage while in battle. Then, when the battle ends, it should go back to "class 1" and the states for HP/MP should end/be removed after battle.
The problem is I can't figure out how to make it go back to "class 1". If the character remains on "class 2" or "class 3" after battle, then the skills they seal or enable are unlocked accordingly, but they lose the MP regen/HP damage every turn which is important to their functioning. If the states don't end after battle, then they're simply stuck taking damage in the overworld until I change them back to "class 1" manually in battle. Plus, I would highly prefer if the character would simply go back to "class 1" rather than getting the HP/MP states back as soon as a battle starts.
I know it might be possible to change this by editing the BattleManager script to make it part of the battle end to change the job ID of the actor into "class 1". I know how to access BattleManager but I know nothing about scripting; I don't know how to make that change. Could someone please help me with this or provide me with the change to the script?
I would like to change an actor's class after every battle ends.
The character has 3 skills that change its class to a different one in battle by calling a common script, which turns on a switch. When the switch is turned on, a parallel process event comes on and changes the class for the character.
Each class enables and disables a certain set of skills accordingly. And finally, two of the class-changing skill come together with positive MP regeneration as states, and HP damage every turn. The first class changing skill unlocks no skill sets and removes the HP/MP states.
Ideally, the character should always start a battle as "class 1", change onto either "class 2" or "class 3" while getting the benefits of the MP regen and the HP damage while in battle. Then, when the battle ends, it should go back to "class 1" and the states for HP/MP should end/be removed after battle.
The problem is I can't figure out how to make it go back to "class 1". If the character remains on "class 2" or "class 3" after battle, then the skills they seal or enable are unlocked accordingly, but they lose the MP regen/HP damage every turn which is important to their functioning. If the states don't end after battle, then they're simply stuck taking damage in the overworld until I change them back to "class 1" manually in battle. Plus, I would highly prefer if the character would simply go back to "class 1" rather than getting the HP/MP states back as soon as a battle starts.
I know it might be possible to change this by editing the BattleManager script to make it part of the battle end to change the job ID of the actor into "class 1". I know how to access BattleManager but I know nothing about scripting; I don't know how to make that change. Could someone please help me with this or provide me with the change to the script?

