Jump to content

Photo

Fallout 3 - Minit Tutorial #4


  • Please log in to reply
15 replies to this topic

#1
jaysus

jaysus

    Mishka The Ape & The Seven Dutchmen

  • Members
  • PipPipPipPipPip
  • 3,442 posts
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


#2
eldiabs

eldiabs

    Faithful poster

  • Supporter
  • PipPipPipPip
  • 1,079 posts
Very cool. You just saved me a couple of hours. Thank you.

#3
BlessedSoul

BlessedSoul

    Regular

  • Members
  • PipPip
  • 52 posts
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

#4
jaysus

jaysus

    Mishka The Ape & The Seven Dutchmen

  • Members
  • PipPipPipPipPip
  • 3,442 posts
1.
change any npcs id and youll get a dialogue box upon hitting ok wich asks if youd like to create a new npc
2.
double click the reference in the redner window, theres an ownership tab in which you specify an owner

#5
BlessedSoul

BlessedSoul

    Regular

  • Members
  • PipPip
  • 52 posts
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.

#6
sumoftwosins

sumoftwosins

    Fan

  • Members
  • PipPipPip
  • 456 posts
Does your NPC have any AI Packages? If so do you have "offer services" enabled as the flag?

#7
BlessedSoul

BlessedSoul

    Regular

  • Members
  • PipPip
  • 52 posts
No the NPC doesn't have any AI packages.
If it does need any, which packages do I need?

#8
jaysus

jaysus

    Mishka The Ape & The Seven Dutchmen

  • Members
  • PipPipPipPipPip
  • 3,442 posts
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 shop
his class also needs to support services

#9
BlessedSoul

BlessedSoul

    Regular

  • Members
  • PipPip
  • 52 posts
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

#10
BlessedSoul

BlessedSoul

    Regular

  • Members
  • PipPip
  • 52 posts
EDIT: Sorry, double post.




Page loaded in: 0.759 seconds