EXP and leveling?

Status
Not open for further replies.

Cjdgame

The Azure Falcon
Veteran
Joined
Dec 4, 2013
Messages
100
Reaction score
12
First Language
English
Primarily Uses
I haven't really played the game I'm making, and therefore haven't tried leveling up my character. So I was wondering...

1) Does your level stick to your character? Say I switch the character's class from fighter to thief mid-game, will my character still be lv. 5 or be shot back down to a lv. 1?

     

if it doesn't...

           

2) Does that mean the level sticks with the class? Say if it does go down to lv. 1 for thief if I change it back to a fighter will it be lv. 5 again?

                 

and either way I want to know...

                     

3) Is there a script out there that makes the level stick with the class and maybe comes with an extra menu tab that can show you your class levels?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I think it sticks to the character... there are scripts to make it stick to the class too... like Yanfly's Class System, it also allows you to easily change jobs, set jobs available to a certain actor and it allows you to have sub-classes too and others
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It's class based. If your character has 10000 EXP which would put them at level 7 in class A, but at level 5 in class B, when you switch them from one class to another, they will be whatever level is appropriate for that amount of EXP for that class. So it won't go back down to 1, but it may not stay at the same level.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
So it's like EXP is actor based but level is computed depending on class based from the actor's EXP, right?
 

Cjdgame

The Azure Falcon
Veteran
Joined
Dec 4, 2013
Messages
100
Reaction score
12
First Language
English
Primarily Uses
Thank you both. I think I will use Yanfly's class system. I really enjoy it and remember that type of class leveling system in final fantasy III ...or something like that.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Kind of (you're making me look it up now!)


EXP is saved at the actor level, but in a hash that's indexed by class id. So if an actor swaps between half a dozen classes, they could have half a dozen EXP figures.


The method to change an actor's class accepts the new class and a flag to indicate whether to keep the current EXP. If you say yes, it will set up the EXP for the new class to whatever the current class has. Otherwise it'll set it to 0.


The very interesting thing is that this method is only called from one place - the interpreter, as a result of the Change Class event command. It does NOT pass in this second parameter, which causes it to default to false.


So according to what I see in the scripts, what I said in my previous post is wrong - they DO go back to 0, unless you're using a script mod to make it keep EXP between classes.


Seems unusual to me to provide a way to keep EXP but not to use it in any script calls, and have no option on the Change Class event command to say whether to keep it or not. Perhaps someone who's looked into this more can clarify.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
If you do use a script to maintain any gained EXP upon class switching, you have to be careful when setting classes to gain skills at specific levels. If you level a Warrior to 10, and then switch to a mage who would learn a skill at lv5, they would NOT learn the skill because they don't level TO 5, they go straight to 10.

So when using a maintained EXP method of class stuff, it's best to not use that method of skill-learning unless you want to write/use a code that fixes the issue. (Not sure if one exists) But then again trying do use that method might be confusing to the player, learning skills for another class that they aren't using or don't have access to at the moment.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I think tsukihime's learning conditions script now works with the class change skill-learning problem... :)
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
Actually there is a bug on the RPG Maker.

On the scripts there is actually a method thar allows to change classes and keep the current level, But due to a failure on the RPG Maker interface, the change class event command don't have this option avaiable, even though the code for that is present.

So via events you can't keep levels by default (you can work around that though), but with scripts you can choose.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
ah right... I'm getting confused due to the amount of your scripts... XD
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Anyway, I think the OP said a few posts ago that he had what he needed, so I'll cut this interesting conversation short here :)


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top