Class changes but skills wont

Hey dudes and dudettes! c:


I have another problem and yeah.. i looked for it in the forum but didnt find anything helpfull..

I implented an ''awaken'' system that allows the char to awake his or her hidden power.

The ''Awaken'' skill (Battle Skill) triggers a common event that will change the actors class and appearance.

And heres the problem... The Class changes but the skills for the class wont.
But it is important that the skills will change too or my ''awaken'' system wont work q.q
And this is another thing i must have in my game! ._.
It is a story based thing and i dont want to rewrite half of the story ._.

Heres what i have done:

Skill:
Awaken || Effects: Common Event - TransformLucio + Charakter specific Awaken effect


Common Event (TransformLucio) Trigger: None

-> Change Actor Images: LucioAwakened(0), LucioAwakened(0), LucioAwakened
-> Change Class: Lucio, Lucio (Awakened), true


The apperance and class are changing... But i cant use the Class specific skills :/
I hope you are able to help me! ^.^
It will not help you, because class changing in MV works in such a way that it will keep the previous class's skills as well as give new class's skills. So after transforming back you have both the skills from normal and the skills from awakened state. I guess it's better to use Yanfly's skill requirements plugin for the skills to show only when actor is not transformed.
As for class specific skill for the awakening, does the class have them learned from level 1?
Yes the Class learned them from Level 1.
But the skills from the other class arent available too :c

And the awakened state shouldnt be permanent.
The player should be able to turn the Awakened state on and off.
Do you know what i mean?
Yeah, I know what you mean.
What if you awaken before combat and then enter combat? Will the actor have the awakened skills?
No.. tested it a second ago :/
And when i use the awaken skill i need the ''Back to normal'' skill from the awakened class to get back to the unawakened class ._.
The two classes need to have different skill types, then it can work like you want.
I've done a post in VX Ace which you might find helpful. It's on changing classes. I'm on my phone so can't do links. Have one of the skills you add be a "transform back" which removes the state if you want that to happen in battle, rther than have it automatically last for the whole battle.

EDIT
I'm on a computer now, so here is the link. Notice what it says about different skill types and learning skills.
The two classes need to have different skill types, then it can work like you want.

I added the skill type ''Limit Brake'' and changed the ''Back to normal'' skill also to Limit Brake skill type. but the ''Back to normal'' skill isnt available :/
And before you ask: yes. i added the ''Back to normal'' skill to the class 😮
No, that is not what I meant.
All skills that need to be available in the transformed class but not on the regular class need to be of a skill type that is only available on that class and similiar for the other way around.
Then the missing skill types will make the skills unavailable or available as planned.
No, that is not what I meant.
All skills that need to be available in the transformed class but not on the regular class need to be of a skill type that is only available on that class and similiar for the other way around.
Then the missing skill types will make the skills unavailable or available as planned.


I wrote a message to you. We are both german so it would be much easier to talk about this in german. 😀
did you trigger a skill initialization after you changed the class?
@17prozent Please keep queries to the forum. It is not fair on Mods to expect them to give individual tuition to people. It also means that the answer is not available to other users who might have the same query. Also, if the Mod is not around for any reason, you could be stuck waiting some days for an answer.
@Kes sorry for that. I thought it would be better for me because my english isnt perfect.
And if the answer had helped me, i would have updated my post. 🙂

@gstv87 skill initialization?
Heres what i have done:

Lucio Awakened Class:
Lucio Normal Class:
Awaken Skill:
I think i found out how to do it...

I edited the common event:

Common Event (TransformLucio) Trigger: None

-> Change Actor Images: LucioAwakened(0), LucioAwakened(0), LucioAwakened
-> Change Class: Lucio, Lucio (Awakened), true
-> Change Skill: Lucio, + Back to normal
-> Change Skill: Lucio, - Awaken
-> Change Skill: + all skills for the class
-> Change Skill: - all learnable skills from main class

I hope this wont affect the learnable skills from the main class when the player levels up with the Awakened Class.. ._.

Edit: When the player levels up with the Awakened Class the Skills for the main class wont be learned.
One Problem hunts the next one x-x
Simply have both classes learn both sets of skills, but only give each class the correct required skill types. That way the skills for the wrong class will remain hidden and unusable despite being learned.
That is the easiest way to handle this, as I already mentioned before.
add a script call forcing a skill reset:
actor.initSkills()

I have a similar system for changing classes between characters, and it requires a skill reset.
classes imply a selection of skills.... you don't need to manually remove and add skills after you switch classes, you only need to effect the change by resetting the class' skill collection.
Simply have both classes learn both sets of skills, but only give each class the correct required skill types. That way the skills for the wrong class will remain hidden and unusable despite being learned.
That is the easiest way to handle this, as I already mentioned before.

Maybe i was just too stupid to figure it out xD
But it works now!
MY PROBLEM HAS BEEN SOLVED! Thanks to you!
May i mention you in the Credits later? c:

Edit: The learn skills with leveling works fine. But the skill with the class change still arent available.
add a script call forcing a skill reset:
actor.initSkills()

I have a similar system for changing classes between characters, and it requires a skill reset.
classes imply a selection of skills.... you don't need to manually remove and add skills after you switch classes, you only need to effect the change by resetting the class' skill collection.

i tried actor.initSkills(Lucio) and actor.initSkills(1) and even actor.initSkills(). it always says actor is not defined.. :/

maybe it is helpful that i'm using Yyanfly's Core Engine

I really need help with this ._.

Original thread: https://forums.rpgmakerweb.com/threads/class-changes-but-skills-wont.92542/