Aller au contenu

Photo

Wandering Merchants?


  • Veuillez vous connecter pour répondre
10 réponses à ce sujet

#1
Bubba McThudd

Bubba McThudd
  • Members
  • 147 messages
 Greetings all,

Anyone have any suggestions on how to best go about creating wandering merchants like in Fallout 3?  I have the wandering part down - but how best to handle the store wp?

Cheers

#2
TSMDude

TSMDude
  • Members
  • 865 messages
The store does not need to be in the same spot. We have a "room" that we store things in and in it is several stores that different merchants open up. The script to open a store just looks for the closest properly named store in the module.

#3
Bubba McThudd

Bubba McThudd
  • Members
  • 147 messages
Ah, I did not know that. Thanks!

#4
Bubba McThudd

Bubba McThudd
  • Members
  • 147 messages
Ah, slight problem. I should have mentioned that my wandering merchant is wandering over several areas. He can't seem to access his store outside of the area where the store WP is. Anyway around this while keeping the inventory persistent?

#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Change the line that gets the object. I am guessing that it is something like

oStore = GetNearestObject...

Change it to something more like.

oStore = GetObjectByTag....

that will allow allow it to get the store fome another area.

#6
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
You can also make your script create a store if none exists then destroy it at the end of the transaction. That will also fix any problems with variables on infinite items. All depends on how the end result you want.

#7
Bubba McThudd

Bubba McThudd
  • Members
  • 147 messages
Thanks Lightfoot, that works!

#8
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
Could you post the completed script?I know im so darn lazy.But at least i know itll work.

#9
MrZork

MrZork
  • Members
  • 942 messages
Also, doesn't Vokarion in HotU work pretty much like Lightfoot8 described? I remember something like that when I modified his store script to randomly replenish certain items every so often. (There were also a few dead items in the script that needed fixing, IIRC.) But, the basic idea of Volky as a wandering merchant seem similar, with the added twist that he was a summonable NPC via the lamp.

#10
Bubba McThudd

Bubba McThudd
  • Members
  • 147 messages
I now have a working wandering merchant who, along with a guard and pack horse, traverses winding forest trails through 3 large maps, setting up shop for a spell in each. Rather like the merchants in Fallout 3, which was what I was aiming for.
I used Axe Murderers' Killer Walkway system to make the merchant wait at each of the 3 market locations for a spell, and L8s' suggestion solved the Merchant inventory problem. Still a few kinks (merchant won't stop if you meet him between markets, so you need to shop fast) but as I get more familiar with the KWW system I reckon I'll suss it out.
Thanks for the feedback!

#11
Luspr

Luspr
  • Members
  • 44 messages
HOTU had the scripts you were looking for I suspect, for the Genie in a bottle.