Class Changing Skill Fix
#1
Class Changing Skill Fix
by Trihan


Introduction
This script corrects a problem with the default scripts and enhances the class system. In the default scripts, a class change won't affect the character's skill list. With this script added, a character will forget all skills from his former class and learn all skills on his new class's skill list up to his current level. Additionally, you can exempt certain skills, or all skills from an entire class, from being forgotten in this way. This can be done on a global or per-character basis.

Originally to use this script, you would have needed to add the pieces of code supplied to Game_System and Game_Actor. Then, replace Interpreter#command_321 with the code in the third block he supplied. Now, it is in one contiguous script.


Demo
>Click<


Script
Class Changing Skill Fix


Instructions
This revision has been lightly touched so you can just paste it ABOVE Main or BELOW Scene_Debug to use it.

To exempt a class's skills from being forgotten on a global level, use the statement "$game_system.exempt_classes.push(x)", where 'x' is the ID number of the class in the database.

To exempt a skill from being forgotten on a global level, use the statement "$game_system.exempt_skills.push(x)", where 'x' is the ID number of the skill in the database.

To exempt a certain character from forgetting the skills from a certain class, use the statement "$game_actors[n].exempt_classes.push(x)", where 'n' is the ID number of the actor and x is the ID number of the class.

To exempt a certain character from forgetting a certain skill, use the statement "$game_actors[n].exempt_skills.push(x)", where 'n' is the ID number of the actor and 'x' is the ID number of the skill.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Skill Roulette XP kyonides 0 1,135 06-16-2023, 07:10 AM
Last Post: kyonides
   Fast Skill Grouping DerVVulfman 3 4,823 06-12-2023, 05:28 PM
Last Post: DerVVulfman
   MACL - Method And Class Library Trickster 3 8,897 04-02-2021, 06:21 AM
Last Post: Megalukes
   MicKo's Skill Tree - Revised DerVVulfman 49 65,656 12-17-2019, 04:13 AM
Last Post: DerVVulfman
   Skill Casting Delay DerVVulfman 1 10,976 11-20-2018, 05:38 AM
Last Post: DerVVulfman
   MicKo's Skill Tree DerVVulfman 48 91,419 11-08-2016, 08:04 PM
Last Post: DerVVulfman
   Hidden Class rewrites hanetzer 6 16,278 04-10-2013, 08:01 PM
Last Post: Narzew
   Skill Shop Legacy 1 7,720 06-30-2012, 07:36 PM
Last Post: KasperKalamity
   Skill Leveling DerVVulfman 28 43,188 04-07-2012, 09:25 AM
Last Post: Waddle Dee
   Trickster's Bag Of Skill Effects Trickster 5 15,227 02-23-2010, 06:32 AM
Last Post: fgsfds



Users browsing this thread: 1 Guest(s)