Tweaked Shop Processing

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
So I want to open up a shop processing (Already know how to do that)
I want to disable "sell" (Already know how to do that too)
I also want to change the word "Buy" for something else.

Say I walk close to a campfire and open up this shop processing but I want it to say cook instead of buy listing food items.
When I'm near and alchemy station it should say Alchemy instead.

Is there a way to twist the shop processing that way?
So basicly it is a crafting menu.
I remember there was a way to add items to trade with instead of gold though a plugin but I do not remember where I saw it. But if that is also possible to program in without one that is even better. That way I can just write down a few common events to reuse.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,779
Reaction score
12,207
First Language
English
Primarily Uses
RMMV
I haven't tested this, but you could try doing a script call just before the Shop Processing command to change the name, then just after to change it back again.

Code:
Script: $dataSystem.terms.commands[24] = 'Cook';
Shop Processing ...
Script: $dataSystem.terms.commands[24] = 'Buy';
Code:
Script: $dataSystem.terms.commands[24] = 'Alchemy';
Shop Processing ...
Script: $dataSystem.terms.commands[24] = 'Buy';
That's if you JUST wanted to change the option on the menu, but it would still give you items for gold. If you want a full crafting or alchemy system, then you'll have to search for crafting or alchemy plugins. I imagine they shouldn't be too hard to find.

If you want to do it without a plugin, then you're just going to have to ditch the shop system altogether and do basic eventing. An NPC (or item that the player interacts with) provides a choice of things that can be crafted. When you choose one, it checks your inventory to see if you have the required number of each item. If you do, it removes the required number of each item and gives you the crafted item. If you don't, it gives a failure message, perhaps listing all the things that are needed.
 
Last edited:

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
I would just need a plugin that allows me to exchange items for items in the shop then. Do you happend to know of one such plugin? Pretty sure I'v seen one around once like I said but I have been searching all over for it but can't find it.

If your method works then that is one problem solved however.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
1,288
Reaction score
432
First Language
Dutch
Primarily Uses
RMMV
there are 3 ways:
1) crafting plugin, there are a couple out there to use
2) throught choice menu and event there what items needed to cook.
3) use a picture common event that show images on the screen.

on 3, you can use a region ID, when stepped on it, it shows the pictures to see what you can cook.
you can click on it and it will cook it for you (if you have the items)

there might be other ways, but that depends on how you want to make it.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,779
Reaction score
12,207
First Language
English
Primarily Uses
RMMV
I have been searching all over for it but can't find it.
Really?

I just googled Crafting Plugin RPG Maker and found heaps. If you are thinking of one in particular and it's not there, then we can't help you find it unless you give us more information. But unless it's got something incredibly special that the others don't have, any one of those should work for you.
 

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
I think I might have found a plugin that I can use. The thing is that made it hard to find would be that it is not a crafting plugin but it could be used as one if you so wanted. The only problem is I do not wish to tweak the way the shop processing looks to much to gain that ability.

That is why most crafting plugins are out of the question. I will begin testing and see how things works. Wish me luck!
 

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
Uhh.. not having any luck with changing the name of the buy command... Where did you find the number 24? Or do I just have to test my way to the answer?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,779
Reaction score
12,207
First Language
English
Primarily Uses
RMMV
I'm sorry - it should be commands, not basic.

So $dataSystem.terms.commands[24]

I got it from rpg_managers.js in the TextManager class.

I will edit my previous post to remove the confusion, but if you're going to use a plugin you probably should just wait until you find one, and see if it does the same thing.
 

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
Alright, thanks! you have been a great help! I will look around some more and see what I can find. Just found that just disabling "sell" will still display "sell" so I'll have to find a fix around that too xD
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,779
Reaction score
12,207
First Language
English
Primarily Uses
RMMV
$dataSystem.terms.commands[25] = ''

will remove the word, then you can change it back again when you're done.
 

hiddenone

Lurker Extraordinaire
Global Mod
Joined
Feb 19, 2014
Messages
2,181
Reaction score
4,897
First Language
english
Primarily Uses
RMMV
Since you want a plugin to help you with this,

I'm moving this to JS Plugin Requests.

 

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
$dataSystem.terms.commands[25] = ''

will remove the word, then you can change it back again when you're done.
I did consider that one but it still leaves a blank space the user can hover over. I'm looking into a way to temporary replace it with something else. Dismantling does not make much sense in cooking xD Maybe You can add it in a food cart if you don't plan to eat it but how do you fitt that into the wilds?

Maybe putting the earned cash into variable that then becomes gold the next time you visit a town? So much possibilities!
 

Eni

Demon Lord
Veteran
Joined
Oct 30, 2018
Messages
49
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
Is there a code that rather than remove the word "sell".. changes the function of it for something else and then change back?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Ami
4 days im not using my laptop to waiting someone to reinstall (sigh)
Stream will be live shortly with some Donkey Kong 64! Feel free to drop by!
Working on a test Boss for the new No Travel Game Jam
- Name Plugin by Moghunter -
Free RPG Maker Ready Charging Up Animation

Enjoy -No Credit Needed But Appreciated -
Download it at https://lvgames.itch.io/free-charging-up-pixel-animation-fx-rpg-maker-ready
:/ .... so, thought I’d go to the park to sit in the cool breeze and get out of the house a little. Nope, guess that’s quarantined too. Ok...

Forum statistics

Threads
95,486
Messages
929,521
Members
125,731
Latest member
Decasus
Top