Super015

Veteran
Veteran
Joined
May 12, 2013
Messages
33
Reaction score
2
First Language
Italiano
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
8
Reaction score
4
First Language
English
Primarily Uses
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
33
Reaction score
2
First Language
Italiano
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
4,685
Reaction score
1,799
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
33
Reaction score
2
First Language
Italiano
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
2,780
Reaction score
1,631
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

I'm just so close to replacing LUK with a different stat, maybe DEX but we'll see.
Slapped together a title screen and working on some dungeon clutter + portraits for Dubhghaill and Einar. Usual CW for minor body horror wrt Einar
QVLJIgD.png

OaPcYUy.png

r55FiUJ.png

EIgO94y.png
cT1V4nb.png
>studying for months for an exam
>does exam
>waits 3 months for the results to come out
>me trying to login, incorrect password
>I get recovery password
>me trying to login, incorrect password

What the heck. As a son of a Karen, I'm going to file a few complaints.
Apparently Amazon Prime users get free Genshin Impact stuff like primogems and whatnot every month, but I'm not sure I ever want to fall into the abyss of F2P ever again.

Forum statistics

Threads
117,148
Messages
1,104,951
Members
153,221
Latest member
Kostec
Top