Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Fixed - Thanks wern25

^^ HELLO!!

I need help with a Conditional Branch. I've been trying to make it where if a player uses an Item it changes their Class. I have everything working the way i want besides the class and skill change. Anyway, The problem with the class and skill change is when you change a class from say Scout to Swordsman, that character doesn't get the skills of the new class that you would gain at lower levels. I would just add the skills... but then if the character is like lvl 10... s/he would get a lvl 30 skill... <_<

"If player.level >=1 then that character gets 'skill 1' If player.level >=5 they get 'skill 1' 'skill 2' If player.level >25 they get 'skill 1' 'skill 2' 'skill 3' 'skill 4'" I think you get what i mean... I don't mind if it's Ruby or through the commands given by the RPGMaker, I'm not picky... but please someone help me... I'm little blonde mind can't take anymore thinking..

<3 Finx
 
best way i think is to have the item call up a common event but instead of just changing the class have it change the entire character. example... 001 is derek the scout 002 is derek the swordsman. get it? and to retain the levels use variables to record the current characters level before the change occurs. im doing something similar in my game only instead of an item you level up from apprentice to 1 of 3 primary classes then on to dual classes until you max out those 3 then you can train to be a demigod. if you need more help let me know.
 
Create a Variable that checks the level.

In RMXP it's as simple as going into the common event and making Level variables for all your actors
eg. "Variable 1[Urial's Level] = Urials Level" The part where you get Urials level is in the Actor part of the variable function.

simple? Now you can make more variables for other people at certain levels. THis is an example:
http://www1.mediafire.com/imgbnc.php/28b4eb2f4f2d9fd9031e5007821be57f5g.jpg[/img]

Edit: Change TEST to your skill.

For VX, you do the same thing, but you need to get the variable fix script found here:
http://rmvx.org/forums/index.php?topic=43145.0

You may or may not have to add the extra skills to learn.
 
if you really dont want to make multiple of the same character there are ways but if you do you can use different exp curves for faster or slower leveling different character graphics are easier to manipulate say if you want the scout to look different than the swordsman and more. plus you wont have to deal with adding or removing skills. all around its a better method than just changing the class.

::EDIT::
Forgot to mention you can also have different character stat. growth if you use the method I was talking about.  After all why would you want your scout to have the same strength as a swordsman? This way... your spell casters can have a higher Intelligence as well.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top