How could I make it so that the player has to have a weapon equipped, and can't have an empty slot? I was wondering if there's a way to implement this without the use of Yanfly's Ace Equip Engine script, as that causes issues with my other scripts.
Disallow from equipping no item?
RGSS3 Script RequestsOnly the weapon slot is mandatory but they can have armour slots without an item in them?
There is a script by Fomar that does that.
No Unequipping Weapons
Not sure where you can find it so here you go
Ruby:
=begin
No Unequipping Weapons Script
by Fomar0153
Version 1.0
----------------------
Notes
----------------------
No requirements
Prevents players from unequipping their weapons.
----------------------
Instructions
----------------------
Plug and play
----------------------
Known bugs
----------------------
None
=end
class Window_EquipItem < Window_ItemList
#--------------------------------------------------------------------------
# * Include in Item List?
#--------------------------------------------------------------------------
alias weapons_include? include?
def include?(item)
return false if item == nil && @slot_id == 0
return weapons_include?(item)
end
end
class Scene_Equip < Scene_MenuBase
#--------------------------------------------------------------------------
# * Slot [OK]
#--------------------------------------------------------------------------
alias weapons_on_slot_ok on_slot_ok
def on_slot_ok
if @item_window.item_max == 0
@slot_window.activate
return
end
weapons_on_slot_ok
end
end
Nah, I think Arioso wanted to make sure that the hero can equip another weapon but never end up wielding none. It's imperative that he can only exchange weapons to make sure this condition is fulfilled.
I thought of that and the script allows just that. Tested it. It stops you from selecting the empty space when in the item window, so you can't unequip it from there. But it doesn't stop the unequip command if that was used.
Yep, that solves my problem. Thanks!
Going back to the script Roninator posted earlier on here, I noticed its block is available while you're in the equipment menu only.
That's why I'm here shamelessly promoting my script. It should be able to block it under pretty much any circumstance.
That's why I'm here shamelessly promoting my script. It should be able to block it under pretty much any circumstance.
Original thread: https://forums.rpgmakerweb.com/threads/disallow-from-equipping-no-item.165266/