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.

Scene_Equip is setting armor_id = 0 seemingly without reason(resolved)

I've heavily modified the each of the classes that come with rmxp and have encountered problems, but all have been solvable; this, however, seems utterly intractable. When I first equip a piece of armor, it works fine; when I go to remove that piece of armor, immediately before the armor is removed it sets the id to 0, asif I never equipped it. Attempting to remedy this I went through the code line by line using comments to see where the id changed from 5(the eq id) to 0. Oddly, right before the return in update_right_window if you press the C button the armor_id is accurate; however, right after the update_right line in the main update loop of scene_equip it goes to 0. This is odd since once you press C it hits the return, goes back to the main loop, then hits that return...so I'm not sure how it could screw up while executing a return. Any help would be greatly appreciated as I have no idea what to even attempt at this point.

P.S.
If this is in anyway unclear, please let me know and I'll try to be more precise.

Edit: Just realized that it might not be clear why this is even a problem. I have certain armor set to equip skills so when you remove them the skills should get removed, this stopped working and is what made alerted me to the problem.

Sorry, I figured out what was wrong, however, why the switch occured at that point, I'll never know. Sorry for wasting everybodys time with this.
 

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