mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A

NPC Dialogue Shop v1.0
by mjshi- OK for use in all projects with credit

Get it here!


A dialogue-focused custom shop scene for a more interactive experience.
Requires MV 1.5+, commissioned by the wonderful dragoonwys of these very forums.
Features
- Show an image for the shopkeeper!
- Have custom dialogue for each individual shopkeep
- Run common events to have your shopkeep handle quests, or just to chat
- Quick view of how much buying the item would change your stats
- Default layout for 1280x720 but since window sizes can be customized, they can be resized to anything

Addons
NPC-specific item descriptions (edit by me, requested by tale)
Display item pictures by Silva [direct link] (requires Yanfly Item Core)

Alternate layouts available via the in-plugin switcher! Feel free to share your own , and I'll add them to the plugin database!

Screenshots
when the help box is blank, that means an item description would normally show there (the test items didn't have descriptions). shopkeep image courtesy of dragoonwys


Version History
1.0 plugin released
1.01 added layout switcher

Credit
mjshi
 
Last edited:

bohutang

Villager
Member
Joined
Oct 24, 2016
Messages
27
Reaction score
6
First Language
china
Primarily Uses
This looks cool! I like your plugin, I don't know if it can be compatible with plugins such as restricted inventory, I will test it back.
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A
@bohutang Thanks! This is essentially a shop reskin, so theoretically it should work with most other plugins that aren't directly modifying the vanilla shop (which restricted inventory doesn't sound like it is ^^)
 

Kupotepo

Fantasy realist/Advocatus Diaboli
Veteran
Joined
Jul 5, 2017
Messages
1,943
Reaction score
2,102
First Language
Thai
Primarily Uses
RMMV
@mjshi Nice to meet you, if I find the bug on your plug-in I will sent you the message. Have a nice day.
 

ovate

tale
Veteran
Joined
Dec 16, 2016
Messages
1,049
Reaction score
1,748
First Language
English
Primarily Uses
N/A
For setting up a default MV resolution layout, here are the pixel positions:

Command Window
{"x":"0","y":"0","width":"562"}

Gold Window
{"x":"561","y":"0","width":"255"}

Item List
{"x":"0","y":"71","width":"562","height":"374"}

Sell Item List
{"x":"0","y":"143","width":"562","height":"301"}

Possessed Items
{"x":"561","y":"158","width":"255"}

Actor Stat Window
{"x":"561","y":"229","width":"255","height":"216"}

Preview:
defmv.png


Also this plugin is compatible with Menu Screen Layout Resize.
 
Last edited:

Finnuval

Old Raven following Rainbows
Veteran
Joined
Aug 1, 2018
Messages
2,561
Reaction score
9,485
First Language
Dutch
Primarily Uses
RMMZ
This is awesome. plain and simple
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A
@Lonewulf123 @Finnuval Thanks, glad you guys like it ^^ lemme know if there's anything it could use, too-- I was thinking of maybe having the talk option be switch-on/off-able once I have time to code that in.

@tale Thanks for this! I've linked your layout up above on the main post.
 

HintonR

Veteran
Veteran
Joined
Mar 2, 2016
Messages
197
Reaction score
28
First Language
English
Primarily Uses
RMMV
Would this be compatible with Yanfly's Shop Plugin?
 

ShadeMattson

Warper
Member
Joined
Nov 1, 2013
Messages
2
Reaction score
1
First Language
Español/Spanish
Primarily Uses
8ae3b638a5.png


I'm having a problem with the plugin, i tried it in a new project to see if it was another plugin causing trouble, but it keeps happening
 

ovate

tale
Veteran
Joined
Dec 16, 2016
Messages
1,049
Reaction score
1,748
First Language
English
Primarily Uses
N/A
@ShadeMattson It's an issue how the windows overlapped with each other due to another plugin that's window related- to correct it, try MPP_WindowInsideClear and tweak the numbers inside the parameters then test-play to see if the gap clears up. If not, change the param numbers till the windows look fixed.
 
Last edited:

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A
If you've done what @tale said and it still doesn't work, feel free to send over a test project for me to see what the root of the problem might be.
 

ShadeMattson

Warper
Member
Joined
Nov 1, 2013
Messages
2
Reaction score
1
First Language
Español/Spanish
Primarily Uses
@ShadeMattson It's an issue how the windows overlapped with each other due to another plugin that's window related- to correct it, try MPP_WindowInsideClear and tweak the numbers inside the parameters then test-play to see if the gap clears up. If not, change the param numbers till the windows look fixed.

It fixed the problem, thank you very much
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A
It's taken awhile, but here's the vanilla MV layout!

Screenshot

upload_2019-1-4_20-52-6.png


Values:
Command window
{"x":"10","y":"10","width":"500"}

Gold window
{"x":"510","y":"10","width":"240"}

Item list
{"x":"10","y":"82","width":"500","height":"350"}

Sell item list
{"x":"10","y":"154","width":"500","height":"278"}

Possessed item list
{"x":"510","y":"82","width":"240"}

Actor stat window
{"x":"510","y":"154","width":"295","height":"218"}
 

CCCreations

CCCreations
Veteran
Joined
Feb 14, 2019
Messages
364
Reaction score
569
First Language
English
Primarily Uses
RMMV
I have an Item shop, Armor shop, Weapon shop.... and in a few cities im making illl have like a florist, jeweler, ect. I LOVE this plug in... but how touse different images to come up instead of the one? I think i maybe missed it if it was possible.
 

dragoonwys

Freelance Illustrator
Veteran
Joined
Jul 26, 2016
Messages
451
Reaction score
1,204
First Language
english
Primarily Uses
RMMV
@gothicvoid
It's written in the help file.
First, change the variable chosen in Shopkeeper Variable to the index of your NPC, in the Shopkeepers list. 1st NPC = 0, 2nd = 1, 3rd = 2, etc.
Then, call the shop as per normal!

Here's the example of how the event looks in an event.
gtHZqUy.png
 

CCCreations

CCCreations
Veteran
Joined
Feb 14, 2019
Messages
364
Reaction score
569
First Language
English
Primarily Uses
RMMV
@gothicvoid
It's written in the help file.
First, change the variable chosen in Shopkeeper Variable to the index of your NPC, in the Shopkeepers list. 1st NPC = 0, 2nd = 1, 3rd = 2, etc.
Then, call the shop as per normal!

Here's the example of how the event looks in an event.
gtHZqUy.png
how do i do the part after the shop... i kinda am just learning or should i have PMed this?
 

dragoonwys

Freelance Illustrator
Veteran
Joined
Jul 26, 2016
Messages
451
Reaction score
1,204
First Language
english
Primarily Uses
RMMV
After the shop part? Sorry, I don't think I understand. ^^'
Basically, to change the shopkeeper image, you have to do it before you start your Shop Processing

First, open the plugin parameters and place the number of the Variable you want to use in Shopkeeper variable param.
Second, make as many shopkeepers you want in the Shopkeeper Param.
Finally, make an event, use Control Variables to change the stored number of the Variable that you have listed in step 1 and then add Shop processing. The 1st shopkeeper = 0, 2nd shopkeeper = 1 etc

When you open the shop, it will have different shop keepers depending on the number.
 

CCCreations

CCCreations
Veteran
Joined
Feb 14, 2019
Messages
364
Reaction score
569
First Language
English
Primarily Uses
RMMV
so... im sorry... i dont get it. I tried.. it doesnt look anything like the image you posted It comes out like

Control Variables : #0001 = Shop NPC = 1

.. can you dumb it down for me? seriouslly. i just need step by steps the first time then i know how to do it. it this old brain of mine. not as sharp as it used to be.
 
Last edited:

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
998
Reaction score
875
First Language
English
Primarily Uses
N/A
@gothicvoid

There's some setup necessary to get everything running here. If you double click on shopkeepers, then on an empty row, it should pop up something like this:

upload_2019-3-10_23-21-11.png

That's how you add shopkeepers. Just follow the instructions and read the description boxes/names to figure out what each thing is.

Once you configure all of that you set the shopkeep variable (control variable #1, in this case) equal to whatever shopkeep you want to use.

After that, make sure your event looks something like what dragoon posted:

Here's the example of how the event looks in an event.
gtHZqUy.png

run, and you should be good to go! Let me know if you need a video tutorial, but that will take some time to make. I'm a bit busy at the moment, and it may be at least 3 or 4 weeks before I can find the time to sit down and do all of that.
 

Latest Threads

Latest Posts

Latest Profile Posts

Today I released one of my favourite tutorials :3 Learn how to make consistent yet interesting towns!
As always, I am very open for feedback!
1679673622425.png
This girl is jealous because I haven't drawn her again in months.
Fr_RrgwaUAAafNa

New sprites in my project!
Updating my stream thumbnail collection here Streaming more game dev in 30 minutes or so. :LZSexcite:

Programming languages are amazing.

Someone needed help with a problem in C#. I've got 0 experience in C#. I read 0 lines of their code. I only knew what they wanted to do. I wrote a completely generic code in Javascript containing the generic answer. But they understood what I was doing and translated that to their code. 20 seconds later, problem solved.

Forum statistics

Threads
129,816
Messages
1,205,456
Members
170,935
Latest member
bennyr24
Top