Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
metwe

Change the Body Armor slot to an Accessory

Question

Hello!

 

In my game, I don't have a lot of variety in types of armors for my players to equip.

However, I really like the strategy involved in being able to pick two accessories at once.

I'd like to just get rid of the Body Armor slot and have two Accessory slots instead.

 

How does one change the Body Armor (slot 3) to act as a secondary Accessory (slot 4) slot?

 

I know there's several scripts that could do this (or add as many slots as I like), but I'd like to know how to do this by just altering the existing code.  Unfortunately I'm an idiot who's spent the last 3 hours messing with the game_actor portion with no luck.

 

Can you please point me in the right direction?  Thank you!

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I wouldn't know how without scripts, though you could just name the the armor slot "accessories # 2" and treat it as such. It would require some creative thinking, but it could work. You should just get a script for it though, since it'll be way easier that way.

Share this post


Link to post
Share on other sites
  • 0

unfortunately it won't work that way BM, that would just give a name change but wouldn't allow the same accessory list.

This tutorial explains how to make it. Check it out, and if you want to get rid of armor, use the same tutorial but delete the armor slot.

http://forum.chaos-project.com/index.php?topic=1066.0

Share this post


Link to post
Share on other sites
  • 0

Thanks dolarmak.  I've actually been following that tutorial as a guide to how the armor slots work in the code.

I'll try adding a 5th slot and then deleting the 3rd slot.  It just seems like a roundabout way to do it, like logically there ought to be a way to "redefine" the 3rd slot (body armor) as having the same properties as the 4th slot (accessories).

 

All I'm managing to do is.. I can get the 3rd slot to APPEAR as the 4th slot (it says Accessory instead of Body Armor) by what I change in the code (not the editor names), but I can't equip anything in it.  Only body armor is appearing in the 'equip-able items menu', and if I equip an accessory from the 4th slot, it doubles it and equips it in both slots with no additional effect.

 

I'll make some screen shots to help explain in a minute.

Share this post


Link to post
Share on other sites
  • 0

Actually I may have solved it!

 

In the Scene_Equip part, I edited Line 30...

 

29   @item_window1 = Window_EquipItem.new(@actor, 0)
28    @item_window2 = Window_EquipItem.new(@actor, 1)
29    @item_window3 = Window_EquipItem.new(@actor, 2)
30    @item_window4 = Window_EquipItem.new(@actor, 3)
31    @item_window5 = Window_EquipItem.new(@actor, 4)
 
To this:
 
   @item_window1 = Window_EquipItem.new(@actor, 0)
    @item_window2 = Window_EquipItem.new(@actor, 1)
    @item_window3 = Window_EquipItem.new(@actor, 2)
    @item_window4 = Window_EquipItem.new(@actor, 4)
    @item_window5 = Window_EquipItem.new(@actor, 4)
 
It seems to be working now, letting me equip an accessory in that slot, separately from the regular accessory.
 
I'll do more testing to make sure it works.

Share this post


Link to post
Share on other sites
  • 0

Yup it works just fine!

Now the only issue is trying to get it to work with the Stormtronics CMS by Blizzard... >___>  But I'll ask on their forums.

 

Thanks so much for the help!

Share this post


Link to post
Share on other sites
  • 0

Hey no problem, thanks for letting us know you solved it yourself. That's the kind of ingenuity we like to see. And don't feel shy about joining the ranks of our forum. We have lots of cool people here. Hope to see your game.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...