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.

Armor Equpping HELP

I need to learn HOW TO change so that you only have two slots of equipments, "Weapon & Armor". How do I change the 5-slotted Equipment to 2 slots only? I know I need to change the script, but I need help!
 
Good idea. But what I really would want is 1 weapon slot and 1 shield slot (call that armor). But ofcause I could just make
a "Right Hand" and a "Left Hand" slot and then the player can choose to either have 1 weapon and 1 shield OR 2 weapons. Sounds great!

/But I still need help doing it :) I am very bad in scripting..
 
UPDATE:
Its a success.
I deleted some items in the script, and went to the database and deleted all the other names, so the game only shows the weapon and shield.

Instructions:
Go to scripts > Window_EquipRight
Look for this
@data.push($data_weapons[@actor.weapon_id])
@data.push($data_armors[@actor.armor1_id])
@data.push($data_armors[@actor.armor2_id])
@data.push($data_armors[@actor.armor3_id])
@data.push($data_armors[@actor.armor4_id])

Now let me tell you what does what
@data.push($data_weapons[@actor.weapon_id]) < weapon
@data.push($data_armors[@actor.armor1_id]) < shield
@data.push($data_armors[@actor.armor2_id]) < helmet
@data.push($data_armors[@actor.armor3_id]) < body armor
@data.push($data_armors[@actor.armor4_id]) < accessory

Now delete the ones you dont want.
For example, if you only want weapons and body armor, delete the following items:

@data.push($data_armors[@actor.armor1_id])
@data.push($data_armors[@actor.armor2_id])
@data.push($data_armors[@actor.armor4_id])

so that it will become like this:
@data.push($data_weapons[@actor.weapon_id]) < weapon
@data.push($data_armors[@actor.armor3_id]) < body armor

Now, the cursor CANNOT highlight the other slots.
Now go to Database > System
Delete the names of other slots.

There is one problem with this though, there will be one nice little gap between the weapons and the armor.
So here is one makeshift solution.

Instead of deleting all the slots except body armor, delete all the slots EXCEPT the shield and weapon.
Then rename the shield to "armor"
Now, have your body armor be classified as a "shield" by the game, but its still a body armor, just being treated as a "shield", but don't worry, no one will notice :P

EDIT: I must still remind you, the other slots still EXIST, just that people can't see them nor hover over them.
 
@robin: If you know it needs scripting, why didn't you post this in RGSS Support? >> Neither did you post what version of RPG Maker you're using (and wtf is that Wii symbol for? -.-), but if it's VX, you can screw the above solution either way.

In addition to retard's post though: By taking out the @data.push() calls, you prevent the script from filling the slots with the appropriate equipment name. That in now way solves any problem regarding item slots, which you might get later on as you want to add more stuff to it.
Also, there is a difference between shields and armor, being that shields can be replaced by single-handed weapons if the character has that option enabled. Now I don't know enough of XP's scripts anymore to tell ya what to change exactly, but if you did it right, it wouldn't show a gap inbetween, since that's just illogical (items get pushed into an array and then displayed from that).

If you're on VX, it's pretty much self-explanatory really... considering the default scripts have a EQUIP_AMOUNT constant or something like that ^^ (I don't remember the exact name here either).

@retard: Please edit your post next time, there's not even 15 minutes inbetween.
 
CHILLAXER: Thank You! It worked!!!

And its very easy to! Now I even know how to make MORE than 5 slots! Thank you so much :)

PS: @BlueScope: Dont care about the wii symbol, its tottaly off topic :S And please dont complain. Ok sorry for not telling wich RPG Maker I have (XP), but going off topic is not nessecary.
 

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