Stardew_Valley_Mods/Custom_NPC_Plus_Shop
janavarro95 e133f8326f Update ReadMe.md 2016-05-08 20:54:19 -07:00
..
Class1.cs Added files via upload 2016-05-08 20:49:47 -07:00
Custom_NPC_With_Custom_Shop_Redux.dll Added files via upload 2016-05-08 20:45:32 -07:00
My_Streaming_Shop.txt Added files via upload 2016-05-08 20:45:32 -07:00
ReadMe.md Update ReadMe.md 2016-05-08 20:54:19 -07:00
manifest.json Added files via upload 2016-05-08 20:45:32 -07:00

ReadMe.md

Custom_NCP_Plus_Shop v 1.0.0

Posted on 5/8/16 at 8:46 P.M.

This is an example mod of how to create and bind a Custom Shop to an NPC. The source code for this mod can be used and simply altered to create your own merchant shop, and is heavily recommended that you just copy paste the source to save yourself a headache.

The custom shop bound to the NPC in the example will only launce once the NPC has gone though all of it's dialogue. There are other ways to launch it, but this was the simplest for me.

Remember that this mod is an example/template. Use the Class.cs as a starting point for making a new merchant NPC.

If you wish to make your NPC more complex and such feel free, but this is where I'm satisfied.

Here is the documentation for how to call the custom shop with full functionality.

Custom_Shop_Mod_Redux.Class1.external_shop_file_call(path, filename, shop_chat, myNPC);

Where

(string)path=path to the folder where the shop is stored.

(string)filename= the name of the shop file. Ex "MyShop.txt"

(string)shop_chat= the dialogue the npc says while in the shop.

(NPC)myNPC= the NPC that the shop uses as the base for the portrait.

-Good luck

-Alpha Omegasis