How to equip a Weapon?

Well...Everything is looking neat so far on my game. But i tested the game and tried to equip a weapon. I tried many things but no weapon equip.


The shield equip works fine,but the weapon...not.


So someone here knows how to equip weapons/fix it?
Let's do a run through of how you could have made this possible. First: Is the weapon set as a sword? Second: Does the actor have the capability to equip sword-class weapons?
You want to create your weapon type as sword, then you want to go into the character who is equipping this sword and set their equip weapon to sword. once you have done this, create your weapon and set its type to sword. you dont have to do these in any order.
The weapon is a knife...And yes,the actor is cabable to equip the weapon. But when i try to equip,nothing happepend.
the only way i can help you is if i see how you set it up. i need screen shots
In the Actors tab of the Database, make sure the checkbox for "Fixed" is not checked next to the actor's weapon.
Page 3 of Event Commands, use the "Change Equipment... " button.


Two conditions: Weapon / Armor must be in the party's inventory, and character can not have "Fixed" checked on the Database -> Actors tab.


If you are so inclined to change that during gameplay, use a Script Call:


# Lock or Unlock changing of Weapon


$data_actors[1].weapon_fix = true / false


return true


Return true is important as the game will hang without it.  Bug.  For specific Armors, use armor1_fix thru armor4_fix


NOTE: Due to accessing $data_actors, this approach is not recommended.


Edit: forgot to mention character must be able to use said Weapon, so 3 conditions.  Fighters usually wont be able to equip a Wooden Staff, and Magic Users usually cant equip a Broadsword, but that is set up in your database.  If you can equip it from your menu, then the "Change Equipment..." button will work.
My game is already done and i don't have used what you all said. But on it's sequel i'll use it. Thanks for the answer anyway.


And i also now know that "Fixed" is that the character haves all available weapons eqquiped,but it can equip only one.
You want to create your weapon type as sword, then you want to go into the character who is equipping this sword and set their equip weapon to sword. once you have done this, create your weapon and set its type to sword. you dont have to do these in any order.

Thanks I was in search for the same.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-equip-a-weapon.60777/