NPC Dialogue Shop

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
919
Reaction score
736
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
24
Reaction score
4
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
919
Reaction score
736
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
Veteran
Joined
Jul 5, 2017
Messages
784
Reaction score
756
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.
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
544
Reaction score
884
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:


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

Finnuval

World (his)story builder and barrel of ideas
Veteran
Joined
Aug 1, 2018
Messages
1,431
Reaction score
4,483
First Language
Dutch
Primarily Uses
RMMV
This is awesome. plain and simple
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
919
Reaction score
736
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
25
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


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
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
544
Reaction score
884
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
919
Reaction score
736
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
919
Reaction score
736
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
108
Reaction score
79
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
309
Reaction score
665
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.
 

gothicvoid

[GothicVoid]
Veteran
Joined
Feb 14, 2019
Messages
108
Reaction score
79
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.
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
309
Reaction score
665
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
108
Reaction score
79
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
919
Reaction score
736
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.
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Broke: Dont move. -boring. -passive. -uncreative. Woke: Bewegen Sie Nicht! +authoritative. +foreign. +reminds your son that he's a garden gnome now.
My girlfriend left a note on the fridge saying 'This isn't working, goodbye.' I opened the refrigerator and it works just fine. Weird.
BCj
Could someone translate something from Japanese to English for me?
You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.

Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
World Of Final Fantasy Livestream~!
(Ft. Kaliga)

Forum statistics

Threads
94,385
Messages
920,539
Members
124,162
Latest member
DeadlyCrow
Top