View Full Version : creating merchants


shadows
Sun, 11th Aug '02, 5:41am
i cant figure out how to make the merchant apear in my tool thing all it shows is an arrow on the screen and then nothing in the game... i have gone online and asked people in there mods but they all said stuff like make it converstion activated wich i dont get completly... i have no clue at all how to do anything on it at all mostly. so i nee a step bye step thing almost so i can at least see if i like it ( wich i sure i would if i could acually make it to work) . if anyone could plz help me with this i would be gratefull. so plz help me out. and remembr no big words i not tht good at it

:confused: :confused: :confused: :confused:

Zorac
Sun, 11th Aug '02, 6:27am
Yep. That's it, activate through dialogue;)

You need two things. First the merchant object which as you say only show up as a arrow in the toolkit. Second you need the actual merchant. I.e. a character that tends the store.

You have to make some sort of dialogue for the character along the lines of.
NPC - "Welcome <sir/madam>, what can I do for you?"
PC - "I would like to see what you have for sale, please"
NPC - "Certainly, have a look"

To the last line you need to attach a script under 'Actions taken' which could look somthing like this:

void main()
{
object oStore = GetObjectByTag("Merchant001");
OpenStore(oStore,GetPCSpeaker());
}Substitue "Merchant001" with whatever tag you merchant object has.

Note: If you use the wizard on 'Actions taken' script you will get help on creating the script.

[ August 11, 2002, 07:28: Message edited by: Zorac ]

Lazy Bonzo
Sun, 11th Aug '02, 10:42am
If you're stil having dificulty then try this tutorial (http://ralathar.fateback.com/tutorial/nwn/merchant/index.html) . It is a little of the long way to do it but it will definetly work and you can just modify the store/merchant to make the different merchants you need.

shadows
Sun, 11th Aug '02, 6:11pm
thk you i will try both things. thk you so much and im sure i can figure it out now if not youll know thanks alot : )