Unlock Shop Items

● ARCHIVED · READ-ONLY
Started by Mr. Trivel 24 posts Page 1 of 2 View original ↗
  1. Author: Mr. Trivel


    Name: Unlock Shop Items


    Created: 2016-03-16


    Version: 1.1




     


    What does it do?


    Unlock new items in shop by selling or plugin commands.


     


    Screenshots:





     


    How to use?





    Setting up Recipes:



    Items tagged with any of these tags will be available in the shop.


    <InShopByDefault: [SHOP_ID]> - Will always appear in shop.


    <InShopByCommand: [SHOP_ID]> - Will appear once unlocked with plugin command.


     


    And the last is little longer, it takes multiple lines:


    <InShopByRecipe: [SHOP_ID]>


    [TYPE] [ID] [QUANTITY]


    </InShopByRecipe>


     


    [SHOP_ID] - ID of the shop


    [TYPE] - Item type, i, a, w - i:item, a:armor, w:weapon


    [ID] - ID of the item in database


    [QUANTITY] - How many have to be sold in total


    There can be any number of lines with item requirements.


     


    Examples:


    <InShopByRecipe: 1>


    i 5 100


    i 2 50


    </InShopByRecipe>


    <InShopByRecipe: 2>


    a 12 1


    w 2 1


    i 15 10


    </InShopByRecipe>


     


    Plugin Commands:



    DynamicShop Enter [SHOP_ID] - Enters the shop of this plugin so there's normal shop still available.


    DynamicShop Unlock [SHOP_ID] [TYPE] [ID] - Unlocks item to be permanently available in the shop.


    [SHOP_ID] - ID of the shop


    [TYPE] - i, a, w - i: item, a: armor, w: weapon


    [ID] - ID of the item in database


     


    Examples:


    DynamicShop Unlock 1 w 55


    DynamicShop Unlock 2 a 15








     


    Plugin: <Link: Github>


    How to download the Plugin: Click the link above, there will be a button named Raw, press Right Click -> Save As.


     


    Terms of Use:



    Don't remove the header or claim that you wrote this plugin.


    Credit Mr. Trivel if using this plugin in your project.


    Free for non-commercial projects.


    For commercial use contact Mr. Trivel.
  2. Is this compatable with Direct Sell/Direct Buy plugin?


    I realize it's a different author. Just wondering.
  3. @deilin,


    I assume you mean this plugin:




    If so, it works just fine since this shop is a child of Scene_Shop. Whatever changes are done to Scene_Shop the same changes are seen in this shop.
  4. Nice. The combo could work great in the game I'm working on.
  5. If you sell an iron ore,the shop will start selling iron equipment? Thanks you very much. :D
  6. I've a question : when you unlock an item it will be unlocked forever or do you have to resell the compements be able to buy it again ?


    My wish is to have an option like that (Etrian Odyssey fan here) : that some items/equipements are unlocked just once and for others you will need to resell the materials regulary.
  7. @Chaos17,


    Right now it's permanently unlocked, but that's a neat idea for future update.
  8. Edit :


    I've a glitch.


    When I exit the shop, it re-appears a second time.


    My event setup.

    Spoiler
    NHQ1cy0.png
  9. @Chaos17,


    Well, first shop is a normal shop. 2nd shop is the shop from my plugin. So it works as intended?


    Or what were you trying to do?
  10. Mr. Trivel said:
    @Chaos17,


    Well, first shop is a normal shop. 2nd shop is the shop from my plugin. So it works as intended?


    Or what were you trying to do?

    Ah, I didn't know your plugin command is for triggering the shop process.


    I'm trying to setup default items to be sold while still be able to unlock new items with your plugin.


    Sorry for the confusion, I'm trying to understand how your plugin is working.
  11. @Chaos17,


    Default items are set up by using this tag -  <InShopByDefault> in item note fields.
  12. Mr. Trivel said:
    @Chaos17,


    Default items are set up by using this tag -  <InShopByDefault> in item note fields.

    Does that mean that my potion will always appear even in a weapon shop ?
  13. @Chaos17,


    Since it only reads all of the data - yes. Guess I could add Item hiding for specific shops.
  14. Okay, thank you for clarifing that, I was confused if I could or not setup specific shops with your plugin. :)
  15. Version 1.1


     - Multiple unlock shops added.
  16. Hello Mr Trivel!
    I have been attempting to use this shop unlock addon. It is exactly the kind of thing I need to make my game work, but I'm having issues with the configuration. I've installed it, and I can access the shop, however when I use this command DynamicShop Unlock 1 i 1994 through 1996 it causes the game to crash. Now if I enter the command like this DynamicShop Unlock [1] [1995] it doesn't crash the game, but it also doesn't unlock the item in the shop. Where i'm unlocking the item is not in the shop. So if there's any tips or steps or command syntax I've got incorrect I'd appreciate some pointers. Thanks!
  17. @Zenpai did you use the notetag " <InShopByCommand: [SHOP_ID]> " as well?
    if not, that is your issue, because Dynamic only unlocks by plugin command
    if <InShopByCommand: [SHOP_ID]> is used.

    else make a new thread with event and screenshot while this thread is over 4 years old.
  18. yes, I did. So I have <InShopByCommand: 1> and I have DynamicShop Unlock 1 i 1995, but when I then access shop 1... wait Ok, I have it all sorted now. It was a pebkac error. (Problem Exists Between Keyboard And Chair) Whatever the 'ID' is in the notes has to be the same as the unlock command and the shop enter command, so if I use 1, then they all have to match.
  19. I cannot say exacly, if you have more shops plugins, it might conflict, so you can move around.
    but if you got it to work, than good luck on the project :)

    if you need more help, create a new thread so they might be able to help you.
  20. Would it be possible to turn on a switch for each item that is unlocked?

    For example, if Item 2 is unlocked it turns on switch 2, and then when item 3 is unlocked it turns on switch 3?