NPC Dialogue Shop

Discussion in 'JS Plugin Releases (RMMV)' started by mjshi, Oct 15, 2018.

    Tags:
  1. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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

    ** For a layout in MV's default resolution, try one of these**
    suggested layout
    alternate layout by tale
    alternate layout by gothicvoid

    Feel free to share your own layouts, and I'll link them here!

    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

    Credit
    mjshi
     
    Last edited: Mar 13, 2019
    #1
  2. bohutang

    bohutang Villager Member

    Messages:
    24
    Likes Received:
    4
    First Language:
    china
    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.
     
    #2
  3. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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 ^^)
     
    #3
  4. Kupotepo

    Kupotepo Fantasy realist Veteran

    Messages:
    664
    Likes Received:
    661
    Location:
    Oblivious
    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.
     
    #4
  5. tale

    tale Volunteer Veteran

    Messages:
    299
    Likes Received:
    410
    Location:
    USA
    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:
    [​IMG]

    Also this plugin is compatible with Menu Screen Layout Resize.
     
    Last edited: Oct 16, 2018
    #5
    TheTitan99, Lonewulf123 and mjshi like this.
  6. Lonewulf123

    Lonewulf123 Veteran Veteran

    Messages:
    271
    Likes Received:
    78
    Location:
    United States
    First Language:
    Enlish
    Great work as always!
     
    #6
  7. Finnuval

    Finnuval World (his)story builder and barrel of ideas Veteran

    Messages:
    1,079
    Likes Received:
    3,031
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    This is awesome. plain and simple
     
    #7
  8. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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.
     
    #8
    Lonewulf123 likes this.
  9. HintonR

    HintonR Veteran Veteran

    Messages:
    162
    Likes Received:
    12
    First Language:
    English
    Would this be compatible with Yanfly's Shop Plugin?
     
    #9
    Lonewulf123 likes this.
  10. ShadeMattson

    ShadeMattson Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    Español/Spanish
    [​IMG]

    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
     
    #10
    Lonewulf123 likes this.
  11. tale

    tale Volunteer Veteran

    Messages:
    299
    Likes Received:
    410
    Location:
    USA
    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: Nov 2, 2018
    #11
    ShadeMattson likes this.
  12. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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.
     
    #12
    ShadeMattson likes this.
  13. ShadeMattson

    ShadeMattson Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    Español/Spanish
    It fixed the problem, thank you very much
     
    #13
  14. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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"}
     
    #14
    dragoonwys likes this.
  15. gothicvoid

    gothicvoid Veteran Veteran

    Messages:
    43
    Likes Received:
    10
    Location:
    Texas
    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.
     
    #15
  16. dragoonwys

    dragoonwys Freelance Illustrator Veteran

    Messages:
    291
    Likes Received:
    602
    Location:
    Malaysia
    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.
    [​IMG]
     
    #16
    mjshi likes this.
  17. gothicvoid

    gothicvoid Veteran Veteran

    Messages:
    43
    Likes Received:
    10
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    how do i do the part after the shop... i kinda am just learning or should i have PMed this?
     
    #17
  18. dragoonwys

    dragoonwys Freelance Illustrator Veteran

    Messages:
    291
    Likes Received:
    602
    Location:
    Malaysia
    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.
     
    #18
  19. gothicvoid

    gothicvoid Veteran Veteran

    Messages:
    43
    Likes Received:
    10
    Location:
    Texas
    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: Mar 11, 2019
    #19
  20. mjshi

    mjshi Jack of Most Trades Veteran

    Messages:
    864
    Likes Received:
    692
    Location:
    USA
    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:

    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.
     
    #20
    dragoonwys likes this.

Share This Page