New account registration is temporarily disabled.

[RMVX ACE] PREVENT NO WEAPON

Posts

Pages: 1
Hello my name is Martimus. I was wondering how you would get the standard equipment system to prevent players from removing a weapon without another weapon to replace it. Basically they will still be able to exchange weapons with other weapons but can't leave the weapon slot empty. This shouldn't be difficult for someone who understands the program. In all my relative games I have pulled this off but I forgot how I did it on RMVX Ace.
Iirc, Yanfly Ace Equip Engine can prevent no weapon. However they also revamp the layout. Try to check that out.
Marrend
Guardian of the Description Thread
21806
At the very least, the Scene_Equip.command_clear function has to not remove whatever's in the weapon slot. Though, that might be in Game_Actor more than anything else, now that I think on it.

As for how to not allow an empty slot to be chosen from the item list, my guess is that Window_ItemList.make_item_list might be the culprit. I would suggest a closer look to see how the last item on the list represents "remove equipment from this slot".
Thanks for the help guys, I just tried the script and it works like a charm!
Pages: 1