Post tutorial Report RSS Creating a shop

This is a tutorial on how to setup a custom shop for your custom Chronicle.

Posted by on - Basic Mapping/Technical

Tutorial created by Barnabas for e-mods.net's forum. Mirrored here for archival purposes as the website is now down.


Creating shops

I want to add shops in my maps, but don´t want to use the original shops, like Hank or Otto. I´d like to have another NPC as a shop - how do I create a shop?

Edit: Ok, I figured it out by myself. For all, who have the same question/problem:

1. Choose the NPC you want to have as shopowner.

2. Set the NPC to "Talk to" and add the script "ClassMDweapshop.class" or one of the other scripts using NOTeditor (didn´t try with "override" in embrace yet)

If you want to have an indivitual range of goods for your shop, find the "generic_MD_weapon.nbs" in Resource.nob. Make a copy and change the range of goods in the file using the Notepad. Save under an own, unique name.
Edit the "ClassMDweapshop.class" and add the new .nbs file to the script using "Eclipse" for example and save the edited script under an own unique name (don´t forget to edit the rest of the script, when you save under another name - Eclipse will show you where ). Then add the newscript to the "shopowner" using NOTeditor.
Now you have an own shop, selling only guns, or blood, just as you wish....

Notice: Never edit an original file or script. Use copies.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: