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.

Class Skills

Alrighty I have a Q.

I was wondering if there is a way to have skills avalible only for a certain class. What I mean is.

Lets say 'Bob' is a fighter, fighter = class, and he has learned swordswing and Heal.

Then Bob switches classes into a mage, mage = class,

is there a way to forget the skills Bob has learned as a fighter, but when he changes back into the fighter class he gets his skills from being a fighter back.

Is anyone catching my drift here? ^_^
 
im pretty sure you could do it with events, but you might need a script for this, lemme poke around in a new project and ill see what i can think of

ok i came up with something but its gonna be a bitch cause youll have to make a metric shit ton of condition switches and variable stuff. an example to get you started

the first conditional branch with the "variable 0001 less than or equal to 16" is if aluxes level is 16 or lower, which he would have cross cut and feint attack learned, it takes them off, changes you to a mage and grants you the fire spell, which is the onlt spell (in the RTP) that a mage has by that level you would have to make a LOT of these type of variable conditions for every class turning into every class and back again, for every character, so, you might want to look into finding a script unless you like self torture
classchangewithskillchange.png
 
This wouldn't need a script, actually.

You'll need... let's see. The event where the character changes classes should track what class they are at the time, probably with a variable.

Then, a conditional branch could note what level they are when they change classes, and store that in another variable.

That way, once the character changes back to the class in question, the variable will note that they used to have, say, fighter levels, and give them the appropriate skills for that number of fighter levels with some conditional branches.

Note-- using this system will produce odd side effects, depending on how you do it, and you may want to tweak it. For example, let's say the player gets up to level, oh, 11 in fighter, and learns the first two fighter skills. They then become a mage, and stick with that until they reach level 25. Changing back to fighter, they'll get the skills that they used to have, but won't get the level 17 fighter skill, since they never learned it.

Is that what you have in mind, or did you want to consider tweaks?

Also, was that answer clear, or does it need more of an explanation?
 
I would totally do that but...

u see im not using the traditional skills learning system

im using one where u learn the skills off of weapons

does anyone hav any other ideas

or do i have to use a script 4 that


(PS) Thnx 4 ur thoughts Gulch and Unka J)) ^_^
 
Uh, just FYI, that "I'm using a skill system that isn't the default one" is the kind of thing that you really need to tell us when you ask for help with it.

Is it a script, or evented?

How does it work? I can't help with a system that I don't know how it works.
 
(Sry) =(


the system im using is the Skills Learning Sytem by Charlie Lee.

What it does:

You can learn skills from weapons after gaining a certain amount of Ap from killing enemies and such. It is much like final Fantasy Tactics skill learning system.

^_^
 
Okay... at that point, things are more complicated. You'd either need some scripting help, or you'd need to have the game check which fighter skills the player has learned when they change classes, and use either a variable or assorted switches to track those skills. This is still practical if there aren't too many skills, but beyond about 5 or so, it gets a little ugly.
 

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