Difference between revisions of "Creating a new vendor"
Jump to navigation
Jump to search
imported>Henning |
imported>Scallywag38 |
||
Line 2: | Line 2: | ||
#Make sure the new NPC has "Autocalc Services" ticked under the AI Data tab | #Make sure the new NPC has "Autocalc Services" ticked under the AI Data tab | ||
#Create a Quest, tick start game enabled, enter a quest ID and then click "Ok", then open the quest again. | #Create a Quest, tick start game enabled, enter a quest ID and then click "Ok", then open the quest again. | ||
#Make sure to set the priority to 25 under the Quest Data Tab or your NPC will not speak the dialogue. | |||
#Go into the topics tab of your quest, right click the white list on the left, click add topic, scroll down to "GREETING" and left click. | #Go into the topics tab of your quest, right click the white list on the left, click add topic, scroll down to "GREETING" and left click. | ||
#Also, create a new topic named "Buy" by right clicking on the list where you found "GREETING" | #Also, create a new topic named "Buy" by right clicking on the list where you found "GREETING" |
Revision as of 06:38, 23 June 2010
- Create a new NPC.
- Make sure the new NPC has "Autocalc Services" ticked under the AI Data tab
- Create a Quest, tick start game enabled, enter a quest ID and then click "Ok", then open the quest again.
- Make sure to set the priority to 25 under the Quest Data Tab or your NPC will not speak the dialogue.
- Go into the topics tab of your quest, right click the white list on the left, click add topic, scroll down to "GREETING" and left click.
- Also, create a new topic named "Buy" by right clicking on the list where you found "GREETING"
- Right click the info tab of your GREETING and click new, make the response text whatever you want, this is what he'll say when you first talk to him. (Leave the prompt clear)
- This is very important, right click the "conditions" tab and select new, click the "INVALID" button and scroll down to your NPC's ID (Make it == 1). This makes it so that only your NPC will use the custom greeting you created.
- Go to the new topic you created earlier, by using the same methods you used to create the GREETING.
- (right click the "conditions" tab and select new, click the "INVALID" button and scroll down to your NPC's ID (Make it == 1)
- Response text: (This is what he'll say when you click the "Buy" Button)
- Prompt: (Whatever you want it to be) Example: I'd like to buy something.
- Now, at the bottom in the "Result Script (Begin)" box type: SHOWBARTERMENU
- Create a NEW (Meaning new ID etc.) container. You can copy a container or similar object in the editor by attempting to change the editor ID (either in its edit box or by clicking twice in the object window). When you do this, a box pops up asking if you would like to create a new object or re-ID the existing object. Hit 'yes' to create a new one.
- Check off the Persistent Reference Box.
- Once that's done, you are ready to put the container inside your store's cell. A good place to put it is somewhere the player won't be able to gain access to it. If you do choose to place it inside the store itself, then be sure the container is locked. Then put whatever you want in it, this is what the merchant will sell. Be sure to put some caps in it so the vendor has some money to buy some of your things.
- Place your NPC inside your store, double click him in the render window and select merchant container, and scroll down to your container's ID, click okay, save and you're done.
- Go to you quest's topic tab again and click the GREETING, go over to the "Add Topic" tab, right click it, select Add Topic and select your "Buy" topic ID.
Optional
Phew, now, if you want to talk to him through an intercom.
- Go to the Talking Activator Tab under "actors" and create a new one (New ID) and put it in your house.
- Double click your NPC inside the store, at the top type a new ID at the top where it says "Reference Editor ID"
- Create a new script:
ScriptName scriptID Begin OnActivate setTalkingActivatorActor VendorReferenceID activate End
- and attach the script to your talking activator
<please delete when corrected> Hey all, this is about as clear as mud. If you are able to create a new merchant, please follow the steps outlined here and assume nothing. <for instance step 5 begins with Also, but step 4 did not seem complete as it did not indicate do you left click on the Greeting or not?> Would you please correct? Thanks