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.

Help with forcibly Equipping in RMXP

Okay, maybe it's because I'm newer to XP than I am to 2003, but this is driving me batty. Okay, here is the situation:

I have an item called the 'Dream Sword' attached to my Hero. The hero's weapon slot is attributed as fixed, so the player cannot change the weapons. However, the game should be able to. However, when I run this event in order to forcibly remove and change the weapon:

Change Weapons: [Wooden Sword] + 1
Change Equipment: [Hero], Weapon = [Wooden Sword]
Change Weapons: [Dream Sword] - 1

So according to Logic(tm), that should add a Wooden Sword, equip it on the Hero in exchange for the Dream Sword, and remove the Dream Sword.

So when I run that event, I end up with TWO Dream Swords, one on the Hero and one not. So much for logic, eh?

I've tried this with and without the 'fixed' position being marked on the Hero. Both come up with the same error.

Any idea why this craziness is happening to me?
 
I just tried it with every combination I could think of... (Fixed, not fixed; Equippable(class), not equippable;
And it works exactly as expected.
The one thing I discovered is: If you make a weapon NOT equipabble in the class tab, the actor won't start with it. But, you can still force equip a weapon that the class says is NOT equippable...

<scratches head> Do you have any custom scripts? Any other events processing on that map?

If you want to compress your game (not encrypted) and upload it, I'll take a look.

Be Well
 
That works for me, because this has me stumped. I use a lot of custom resources in this game, so I'll PM you the upload link. It's about 125mb in size without the audio directory (with it it's a lot bigger) so you won't be able to run the game, just open it in your editor.

If you need to run it, let me know and I will upload the music.

I don't mind if you post your reply here on the forum, since this can benefit the community as well. :)

Thanks in advance.
 
LOL, I am so sorry! The unequip takes place in the "Prelude Hospital Room" map, the upper left corner event called 'Prologue First Scene'. It should appear at the bottom (or at the very top, I forget).

Also, you can probably see the large number of scripts I have. I am beginning to suspect it has to do with my save system or menu system, but I haven't been able to test it enough.

Hope that helps!
 
I made a copy of your autorun event, and removed everything except those 3 commands, and it works fine.
After it runs, Sora has a Wooden Sword, and no Items.

Are you letting the scene run all the way to the treehouse?

Try terminating the autorun event. (setting a self-switch at the end, and creating a 2nd page with a Conditional for the self-switch)
It may be autorunning the event more than once???

It could also be your Equip Multi Slot, Equipment Set scripts. Looks like they step on the Actor.equip method.
 
Great! Thanks to you guiding me in the right direction, I was able to figure the rest of it out! It was a combination of that autorun event AND one of the scripts I had running. I've fixed it. Thank you again for all of your assistance! :)
 

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