Class ChangeVersion 1.1Author : LettuceRelease Date : 25 Nov 2008YOU MUST COPY ALL THE GRAPHICS INSIDE /SYSTEM FOLDER FROM THE DEMO
IntroductionAnother class change script but with this script, your character don't get the choice to change into anything in the database. You have the power to limit advancement for each class. For example, if you currently are swordman, you can only advance into knight or crusader (customizable in the script). ;P
ScriptHereCustomizationAdvancement:Lets you define which class can change into which~
Advancement = {
1 => [2,3,4,5,6], 2 => [7,8], 3 => [], 4 => [], 5 => [], 6 => [], 7 => [], 8 => []
}1 => [2,3,4,5,6] <- this means class 1 (Warrior) can change into class 2, 3, 4, 5 and 6. Leave blank for final classes (can't advance any further)
NOTE:
You must define this for ALL the classes.Level_Req:Define the minimum level the actor must be in order for a certain class to become available
Level_Req ={
1 => 0, 2 => 15, 3 => 15, 4 => 15, 5 => 15, 6 => 15, 7 => 30, 8 => 30
}2 => 15 means the actor must be atleast level 15 for him/her to change into class 2
NOTE:
You must also define this for ALL the classesNOTE 3 : Advancement and Level_Req are linked, so even if your actor is level 99, if the class isn't in the Advancement variable, it won't appear.
You also need a picture for all of the classes, more info at the beginning of the script
Verson 1.1Version 1.1 comes with one more feature that let you choose different image "set" for each character. In the previous version, the class images are used for all the actors. But what if you have female character? or different race? like this:

Ulrika is stuck with the class images that everybody is using. But with this update, Ulrika can have her own set of class image:

How to do this? Here's how
in the script, there is a new constant:
CODE
GSet = { #Format : ActorID = "Set Name"
2 => "female"
}
Here you can set which character will have its own set of image. In the example above, Ulrika (actor ID 2) is assigned with "female" image set. You will need some images with the name femaleclass1.png, femaleclass2.png etc in your Graphics\System folder.
If in the Advancement you set 2=>[7,8]. then you will need at least 3 images. femaleclass2.png, femaleclass7.png and femaleclass8.png. Of course, if class ID 7 or 8 can advance further, you will need to make a .png for those too.
CompatibilityShould work with anything; no script rewrite~
Screenshot
DEMODemoo~Installationjust put this above main and under scripts that involves def class_id=()
FAQnone yet
Terms and ConditionsUse it wherever, just gimme credit~
Creditspoccil for the easy confirmation box

great pictures from Gravity
This post has been edited by Lettuce: Feb 11 2009, 11:33 AM