The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: meiko_suzuki on January 08, 2010, 11:04:07 AM

Title: [Request] Skill memory for job classes (unsure if can be done using events)
Post by: meiko_suzuki on January 08, 2010, 11:04:07 AM
So basically, I have classes that have specific skills. I am making the characters able to switch classes, but cannot seem to have their skills switch along with the class. I've figured out how to keep the level of each class, but how to swap skills (and ensure that the level+skill is correct) eludes me.


EG. Character starts out as...Swordsman, level 1. Knows Double Strike. Character switches to Healer, level 3, which knows Cure and Antidote.

How can I make it so the skills are correct per class per level when the class is changed, removing the original class' skills and replacing it with the new class'?


Any help, or moving this to an event board if necessary, would be great.  ;)

Thanks!

-Meiko

UPDATE: Eventing failed...I need a quick way to clear a character's skill set. If someone can figure that out for me, I can take it from there  8)
Title: Re: [Request] Skill memory for job classes (unsure if can be done using events)
Post by: modern algebra on January 08, 2010, 12:28:47 PM
Put this in a call script:

actor = $game_actors[actor_id]
actor.skills.each { |skill_id| actor.forget_skill (skill_id) }
Title: Re: [Request] Skill memory for job classes (unsure if can be done using events)
Post by: meiko_suzuki on January 09, 2010, 12:30:45 AM
Quote from: modern algebra on January 08, 2010, 12:28:47 PM
Put this in a call script:

actor = $game_actors[actor_id]
actor.skills.each { |skill_id| actor.forget_skill (skill_id) }


....I am a newb of epic proportions, so I dunno where or how XD

Do I need to enter numbers for the IDs?
Title: Re: [Request] Skill memory for job classes (unsure if can be done using events)
Post by: modern algebra on January 09, 2010, 12:57:37 AM
yes, you do. And it just goes into a call script event command.