2. Create a Shop {{ currentPage ? currentPage.title : "" }}

In this Tutorial we will create a Shop, which will contain following:

  • The Name will be Example Shop

  • Sells 1x Example Sword for 1 Silver and 1 Bronze. The Level should be 0.

1. Create a new Data Table and use as Structure SP8_S_Shop.

Important: For each Shop, you need to create a own Data Table and the Row used, must be called NewRow!

2. Inside this Data Table you should set following:

  • Name: The Name of the Shop. I will call it Example Shop.

  • Items: Items which should be sold inside the Shop. I will create one Item for now.

    • ItemSlot: Contains the Item.

      • Item: Data Table of the Item, i will take SP8_1_ExampleSword

        • You can use your own Data Table or the SP8_S_Item Structure for new Items like in this Tutorial. Of course if you are using the Inventory Component you should use SP8_S_Item!

      • Amount: How much Amount will be sold. I will set 1.

      • Level: What Level should the Item have (Relevant for Inventory Component). I will set to 0.

      • Custom Data: Read more about it, in this Tutorial.

    • Price: Contains one Data per Currency. I will use Bronze and Silver.

      • Bronze:

        • CurrencyType: Type of the Currency - Currency.Type.Bronze

        • Value: Price of the Item. I will set 1.

      • Silver:

        • CurrencyType: Currency.Type.Silver

        • Value: 1

That’s it. Follow the next Tutorials, to understand how you can use this Data Table.

{{{ content }}}