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,692
Reaction score
1,805
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,843
Reaction score
1,666
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

Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,282
Messages
1,106,104
Members
153,460
Latest member
janekste
Top