Super015

Veteran
Veteran
Joined
May 12, 2013
Messages
84
Reaction score
14
First Language
Italian
Primarily Uses
RMMV
Hello everyone! I have a problem that I really don't know how to solve ... I would like an item to be available in a shop only if I already have another specific one item in my inventory.
 

Kunabee

Villager
Member
Joined
Oct 30, 2012
Messages
10
Reaction score
7
First Language
English
Primarily Uses
RMMV
There's several ways to do it:
-Have a dialogue option show up if you have the item in your inventory, without bringing players to the shop screen
-Create a conditional branch. "If Item (the unlock item)", and in that branch, add the special item. In the other branch, have shop processing NOT involve that item.
-Use a plugin, like the one Frostorm suggested.

Personally, if this is the ONLY special shop option you're using, I'd avoid using the plugin. But if you're doing multiple fancy things with your shops, the plugin is ideal because it streamlines things.

Especially in MV, you can do most things plugins can do without them. There's very few occasions when you absolutely NEED a plugin - you're doing a lot of things that would be streamlined with a plugin, the functionality just DOES NOT exist and cannot be 'faked' in MV itself, etc.

I have only recently learned this myself.
 

Super015

Veteran
Veteran
Joined
May 12, 2013
Messages
84
Reaction score
14
First Language
Italian
Primarily Uses
RMMV
Sadly, I've to apply this system to many shops in the game. Thanks everyone for the answers!
I'll try to use the script suggested by Frostorm, although I see that I've to install a core plugin, hope it does't give me incompatibility issues!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,263
Reaction score
2,877
First Language
Dutch
Primarily Uses
RMMV
if you have YEP_ShopCore, it doesn't, but otherwise, you can make
JS evals with [BO_CustomShops] or XL version of it, its compatable
with other shops as well :) just place it below those.
 

Super015

Veteran
Veteran
Joined
May 12, 2013
Messages
84
Reaction score
14
First Language
Italian
Primarily Uses
RMMV
Thanks for the advice, for now I'm using the plugin suggested by Frostorm and it works very well, if I've any problems I'll try the one suggested by you! :kaojoy:
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,745
Reaction score
5,508
First Language
English
Primarily Uses
RMMV
Especially in MV, you can do most things plugins can do without them.
That's generally true, since plugins are just JavaScript code and the editor allows you to insert JS in a number of places, you can replicate some of that. And then some of the rest of the functionality can be duplicated if you make sufficiently convoluted events with huge nests of conditionals and using your global variables and such. I'm still not convinced that equals out to "most," as a lot of the plugins that get used and recommended involve executing commands at times that the engine just doesn't otherwise.

But even if it were most-to-all, that's not really a reason to not use plugins - part of the concept of RPG Maker is to be user-friendly and minimize how much coding knowledge is needed to make a decent game.

Just because you might be able to figure out a way to duplicate some functionality in the editor without using a given plugin doesn't mean it makes sense for you to spend the time and effort to do so.
 

Latest Threads

Latest Posts

Latest Profile Posts



Did this randomly in my free time, I guess today is a good day to show it.
If I were to not exaggerate, I would say that I have changed my damage formula about a million times by now. Give or take 1 or 2.
Son passed his second swimming exam *celebrations*
Super Mighty Pack is set to come out at like 6:09 EST today. It is not free, it will have a subscription service.
Time to wrap things up and release a demo of my game.

Forum statistics

Threads
130,010
Messages
1,207,003
Members
171,275
Latest member
Kringer
Top