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,629
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

"Yeah. It's been a rough road lately. But that's the thing about the Rangers. It doesn't matter how hard it gets, or how many of them fall. They never stop fighting. The Rangers NEVER stop fighting".

Angela Deth, you are a hero of mine. Sorry for my first run of Wasteland 3.
We must press on. For all those we couldn't save. For all those we might yet save.
FirestormNeos wrote on DarkPlasmaBall's profile.
asking this here instead of the thread in question to avoid derailing it, but I'm curious; is there a particular reason you'd include a "Terms of Use" for an RPG Maker game? Like, are there multiplayer features for the game you're working on?
The holidays are upon us! Everyone search for safety from the grocery store music!
I don't understand people sometime. Walking to work today came across someone walking the opposite way in a nice suit, I politely move to the side into the shrubbery so he doesn't have to get his suit dirty and say "good morning" as he passes me, he turns around glaring daggers and asks "why are you talking to me?" like he's bloody offended by me wishing him a good morning or something. Just, why?

Forum statistics

Threads
117,138
Messages
1,104,893
Members
153,202
Latest member
EnderMon
Top