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.

adding classes together in-game?

would there be a way to add classes together while you're playing the game. i.e. you start as a fighter class, then inherit the mage class also? and i want the program to make it as it goes along instead of making a class in the database for every class combination (cuz in the game i wanna make there will be a lot of classes, and I'll be making it so you can eventually get every class if you play long enough)
I would be screwing around with scripting and seeing if i can do this for myself, but i broke the recharger for my laptop that has rmxp on it so now i'm on my moms computer tryin to figure things out until i get the money to buy a new charger & can actually test stuff.
thanks!
 
Yeah I'd say this is definitely possible. You'd just have to change the @class_id variable into an array. Then whenever the game checks for class, you either see if it includes that class ( class_id.include?(1) ) or iterate over the array (for example when you are checking skill lists).

I would also add a couple methods in the Game_Actor class: add_class(class_id) and delete_class(class_id). Additionally, you could change how the event command works. Instead of changing class it could see if you already have that class, if you do, it takes the class out. If you don't, it adds that class.
 

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