Tutorial: Job System
Difficulty: Intermediate
RPG Maker: 2000/2003
Author: Thejackyl

What are these... Jobs?!
Simple, You hero can change jobs, much like a characters class, but you can retain learned skills, and stats. Even if you set the level back to one.

That's Interesting... How?
You'll need to have the following things prepared, and knowledge of them.

1. 1 Switch
2. 3 Variables(for each hero) [Hero1Level1] [Hero1Level2] [Hero1Job]
3. 1 Common Event
4. Knowledge of various event commands

Get to the good stuff, I want the code

You'll need to code a few things. On the game's starting map, create and event that checks every PC's level. It should look like this:

<>Variable Oper: [xxxx:Hero1Level1] Set, Hero1 Level
<>Do this for all heroes
<>Switch Operation: [xxxx:(Switch Name)] ON

The second page should be a blank On Action Event, triggered by the above switch.

Now the common event should look like this
<>Variable Oper: [xxxx:Hero1Level2] Set, Hero1 Level
<>Do this for all heroes
<>Branch if Var [xxxx:Hero1Level2] is Greater than [xxxx:Hero1Level1]
    <>Branch if Var [xxxx:Hero1Job] is [x*]
    <>Input Generic stat ups here
    <>Branch if Var [xxxx:Hero1Level2 is [x]
        <>Level Specific Stat ups, and skills here
        <>Variable Oper: [xxxx:HeroLevel1] Set, Hero1 Level
        <>Do this for all jobs
        <>Do this for all Heroes
        <>End
    <>End
<>End

* This number is a reference to the hero's job, you can use any check you desire, but this is the easiest I know of. i.e. Figher is job 1, Mage is job 2.



Click to Return to the Tutorials Page