jaysus Posted December 20, 2008 Share Posted December 20, 2008 welocme back to tutorial lesson #4 today we will learn how to set up a working merchant... as usual i ask form you to know the basic workflow of the tool of trade in this case the G.E.C.K. so lets start right away: ------------------------------------------------------- -create a new npc to your liking -go to actor data -> quests -r. click in the list and select new -give it a name and id -set priority to 25 if it aint already -check "enable on game start" -click on topics -r.click left row and select add topic -in the new window r. click again and select new -enter a name -back in the main topic window highlight your new topic in the left row -as topic text choose somin like "show me your good plz" -r.click response text and select new -just enter some response text like "sure here you go" and hit ok -in the upper right checkmark "top level" -under conditions set the following: getofferservicesnow == 1 getisid theIDofyournpc == 1 -under result script enter the following: ShowBarterMenu -hit compile scripts hit ok- save and done... in game your new npc will now have the topic option "show me your goods" on which hell answer "sure here you go" and the barter menu will pop up... ------------------------------------------------------------------------- giving him/her merchandize: basicly vendors sell anything in their cell they own but dont wear including chests... they also offer the option to use a hidden chest called the Merchant Container its is often utilized to have merchants sell some stuff regualry which respawns but is inaccesible for the player for balancing issues... to create one do the following: -create a new cell -create a new container item -checkmark "respawns" if you want the items to respawn after 3 days so the vendor never runs out of merhcandise -give it the VendorMerchantContainerScript -place the new container in the empty cell -double click it in the render view and enter a reference name -set the ownership to the npc you just made -look for your new merchant in the render window and double click him aswell -under the tab "Merchant Container" select your newly created container DONE! --------------------------------------------------------------------------creating working models:tutorial part 1 rigging and skinning:tutorial part 2 collisions:tutorial part 3 Link to comment Share on other sites More sharing options...
eldiabs Posted December 20, 2008 Share Posted December 20, 2008 Very cool. You just saved me a couple of hours. Thank you. Link to comment Share on other sites More sharing options...
BlessedSoul Posted January 21, 2009 Share Posted January 21, 2009 This is really handy! But I got 2 questions. 1. ---------------------------------------- 2. What exactly do you mean with '-set the ownership to the npc you just made'? Kudos for you! :D EDIT: Nevermind the first question :P Link to comment Share on other sites More sharing options...
jaysus Posted January 21, 2009 Author Share Posted January 21, 2009 1.change any npcs id and youll get a dialogue box upon hitting ok wich asks if youd like to create a new npc2.double click the reference in the redner window, theres an ownership tab in which you specify an owner Link to comment Share on other sites More sharing options...
BlessedSoul Posted January 22, 2009 Share Posted January 22, 2009 Alright, It doesn't seem to work. I followed your instructions carefully, and I did it three times over.Could you please help me?I added an image to this post of my final results, please look at it and explain what I'm doing wrong. GECK Screenshot If there is some info missing, I would gladly add it. EDIT: I just found out the Camel model is from your mod :P I'm not stealing, it's for personal use only. And IF I bring this mod to the public, I'm gonna use another model. Link to comment Share on other sites More sharing options...
sumoftwosins Posted January 22, 2009 Share Posted January 22, 2009 Does your NPC have any AI Packages? If so do you have "offer services" enabled as the flag? Link to comment Share on other sites More sharing options...
BlessedSoul Posted January 22, 2009 Share Posted January 22, 2009 No the NPC doesn't have any AI packages.If it does need any, which packages do I need? Link to comment Share on other sites More sharing options...
jaysus Posted January 22, 2009 Author Share Posted January 22, 2009 any package you want... you just need to activate "offer services" for the package that describes his actions in the time you want him to sell somin... sandbox is usually the best choice for a merchant hanging out in his shophis class also needs to support services Link to comment Share on other sites More sharing options...
BlessedSoul Posted January 22, 2009 Share Posted January 22, 2009 Alright, that did the trick, thank you!Maybe you should add that to your tutorial. Keep up the great work, especially your mods Jaysus!! EDIT: The problems seem to keep going after each other! Now when I add items to the Container they won't show up, except for the Caps :huh: When I enter the Barter Menu, it says the Barman has 150 Caps, but no items. I waited for a couple of in-game days, but the items just won't show up. Screenshot Link to comment Share on other sites More sharing options...
BlessedSoul Posted January 22, 2009 Share Posted January 22, 2009 EDIT: Sorry, double post. Link to comment Share on other sites More sharing options...
Recommended Posts