mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
997
Reaction score
851
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
5
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
997
Reaction score
851
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,957
Reaction score
2,109
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
993
Reaction score
1,608
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,448
Reaction score
8,940
First Language
Dutch
Primarily Uses
RMMZ
This is awesome. plain and simple
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
997
Reaction score
851
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
26
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
993
Reaction score
1,608
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
997
Reaction score
851
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
997
Reaction score
851
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"}
 

gothicvoid

[GothicVoid]
Veteran
Joined
Feb 14, 2019
Messages
317
Reaction score
408
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
377
Reaction score
1,059
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
 

gothicvoid

[GothicVoid]
Veteran
Joined
Feb 14, 2019
Messages
317
Reaction score
408
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
377
Reaction score
1,059
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.
 

gothicvoid

[GothicVoid]
Veteran
Joined
Feb 14, 2019
Messages
317
Reaction score
408
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
997
Reaction score
851
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 Profile Posts

Switch actor positions during battle
Download
01010.PNG
SF_People3_1 added!
index.php

Micro rant. The worst part of working from home when you live with your family is seeing how inconsiderate they are. "Hey, you're sitting in front of your computer, that means you're not doing anything! I want to put the TV at 200 decibels!"

If I was working in the office would you still talking me like that?
It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png

Forum statistics

Threads
118,513
Messages
1,116,533
Members
155,514
Latest member
EemeLamsi
Top