Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
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:


[IMG]https://mrtrivelrpg.files.wordpress.com/2016/03/clip2016-03-16at02-13-19.png[/IMG]


 


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.
 
Last edited by a moderator:

deilin

Ranger/Elementalist
Veteran
Joined
Mar 13, 2012
Messages
1,190
Reaction score
172
First Language
English
Is this compatable with Direct Sell/Direct Buy plugin?


I realize it's a different author. Just wondering.
 
Last edited by a moderator:

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
@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.
 

deilin

Ranger/Elementalist
Veteran
Joined
Mar 13, 2012
Messages
1,190
Reaction score
172
First Language
English
Nice. The combo could work great in the game I'm working on.
 
Joined
Apr 30, 2012
Messages
222
Reaction score
37
First Language
Spanish
Primarily Uses
If you sell an iron ore,the shop will start selling iron equipment? Thanks you very much. :D
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,318
Reaction score
492
First Language
French
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.
 
Last edited by a moderator:

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
@Chaos17,


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

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,318
Reaction score
492
First Language
French
Edit :


I've a glitch.


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


My event setup.

NHQ1cy0.png
 
Last edited by a moderator:

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
@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?
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,318
Reaction score
492
First Language
French
@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.
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
@Chaos17,


Default items are set up by using this tag -  <InShopByDefault> in item note fields.
 
Last edited by a moderator:

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
476
First Language
Lithuanian
Primarily Uses
@Chaos17,


Since it only reads all of the data - yes. Guess I could add Item hiding for specific shops.
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,318
Reaction score
492
First Language
French
Okay, thank you for clarifing that, I was confused if I could or not setup specific shops with your plugin. :)
 

Zenpai

Villager
Member
Joined
Jul 5, 2019
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMV
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!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,452
Reaction score
2,154
First Language
Dutch
Primarily Uses
RMMV
@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.
 

Zenpai

Villager
Member
Joined
Jul 5, 2019
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMV
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.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,452
Reaction score
2,154
First Language
Dutch
Primarily Uses
RMMV
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Making progress. And simplifying.
jV7qfoy.gif
Not sure why I'm a jack of all trades , master of none... Sigh. Album out 06/03/2022 on all ur favorite platforms. 10 tracks.
Hmm... Mushrooms, maybe they're not poisonous...
unknown.png
Hi, I'm a new and upcoming Indie Developer, and I could really use some help when it comes to system programming. Explorers can only go so far before needing a map, you know?
I made a comic strip with the characters of my game.Flor en la cola eng.jpg

Forum statistics

Threads
122,060
Messages
1,146,209
Members
160,333
Latest member
Tetssian
Top