Jump to content
  • 0

GUI Paperdoll


Nerengot

Question

Good time of day. I would like to know how to change the hero's equipment system. Not 5 slots, but let's say 9. Well, new types of items in them. For example:
Weapon
Armor
Helmet
Boots
Gloves
Ring 1
Ring 2
Amulet
Raincoat

I will be very grateful for detailed instructions. It is advisable to explain everything to the letter, since there is no special experience in such things.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Most of this is handled in the config.json file in "Server>Resources"

You will start by adding them to the list under:
"ShieldSlot": 3,
"Slots":
   "Helmet",
   "Armor",
   "Weapon",
   "Shield",
   "Boots",
   "Gloves",
   "Ring 1",
   "Ring 2",
   "Amulet",
   "Raincoat"

 

I will make a few note(s) at this time:
(1) If you move the position of "Shield" in the list you need to change "ShieldSlot" to the corresponding number. Keep in mind that Helmet at the top of the list is item slot Zero (0).
(2) Putting "Ring 1" and "Ring 2" will create item slots named Ring 1 and Ring 2. You will need to create items for both categories. In my project I have Ring (Left) and Ring (Right). So to compensate I have an NPC that converts a right ring to a left right and vice versa at a cost.

Any item that you would like to have a Paperdoll sheet for needs to then be added to the section above "ShieldSlot": 3,
This is my Paperdoll section as an example:
  "Equipment": {
    "Paperdoll": {
      "Down": [
        "Player",
        "Armor",
        "Helmet",
        "Weapon",
        "Shield",
        "Pants",
        "Boots"
      ],
      "Left": [
        "Player",
        "Armor",
        "Helmet",
        "Weapon",
        "Shield",
        "Pants",
        "Boots"
      ],
      "Right": [
        "Player",
        "Armor",
        "Helmet",
        "Weapon",
        "Shield",
        "Pants",
        "Boots"
      ],
      "Up": [
        "Player",
        "Armor",
        "Helmet",
        "Weapon",
        "Shield",
        "Pants",
        "Boots"
      ]    

    },
    "ShieldSlot": 3,
    "Slots": [


When you are all done save and run your server.
Connect to the server with your client. It will generate new item slots for the character window.
They are not rendered by default, you will need to change the bounds and some other information in your CharacterWindow.json in "Client and Editor\resources\gui\layouts\game".
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...