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.

Equipment unequips after class change

I have a "form changing" system in my current game (done via eventing) where an actor can switch their skills and class around in or out of battle with a form swap command. It seems, however, that after switching classes the actor unequips everything except for their weapon (that could be because the game forces the actor to have a weapon equipped at all times) and armor (I'm not sure why.)

Both classes can equip all the same kinds of weapons and armor, so there's no reason there should be a problem. I went into the "Game_Actor" script and attempted to comment out all the unequip lines of code, but it had no effect. I want to be able to switch classes without the actor's equipment just falling off. Does anyone know what the problem is, or how I could go about fixing it?
 
herp.png

(http://img600.imageshack.us/i/herp.png/) if it's not working for you because Image Shack does that.

This is in a common event that's activated by a skill that affects the user. The list goes on and on but you get the idea. It's an image, class, and moveset change. It's the class change that seems to be the issue.

Of course, there are multiple kind of weird issues like this that I've been experiencing, but I've managed to circumvent them all regardless. If it's not the class change function itself, then I'm going to have to create a script or event (scripting would be easier, but I'd have to learn how to do it, doing this by event would be horribly time consuming) that checks if the player has x item equipped and if so sets a variable to x amount, which is then checked to re-equip the armor later on. It's just not a very practical solution (would take hours.)
 
Classes each have a set of weapons they are able to use, done with checkboxes. If you change class, any items you can't use are removed I believe. Make sure each class can use the weapons.
 
They both can equip the exact same kinds of weapons and armor, that's where the trouble comes from.

I just wanted to check if it was a problem with the actual eventing (or one of those odd things, like timers ending battles), or if it's some glitch due to script incompatability or the like. This just means I'm going to have to do a little bit of extra fixing with some kind of equipment memorization script.
 
What other scripts are you using?

By default, as mouse mentioned, un-equipable equipment (including weapon & armor) get removed when you change class.
If you commented out, or removed lines 537-551 in Game_Actor, class_id=(class_id) method, and it had no effect, that means
there is another class_id=() method somewhere, or a modified interpreter that's not using this method.

Try the Cntl-Shift-F (search all) in your Script Editor, and search for "class_id="
 
Oh, that worked perfectly, thanks! I'm using Atoa's Custom Battle System, it was one of the add-ons that did me in.

Someone can close this topic now. Thanks to everyone for their input.
 

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