Aller au contenu

Photo

Help with Merchant


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

#1
Hammer Fang

Hammer Fang
  • Members
  • 78 messages
I'm trying find a simple tut that will show me a simple way to have a merchant sell me things.

I have a critter, dialoge, and store and have failed to link them together.

I am also having trouble finding the information I need in the wikki ....

any help would be appricated.

gg

#2
Trampzabout

Trampzabout
  • Members
  • 30 messages
Here is a link to the Wiki "Merchant" page - it explains how to setup a merchant. The missing link you are looking for would probably be the scripting, the part that links them together.
http://social.biowar...ex.php/Merchant

#3
Hammer Fang

Hammer Fang
  • Members
  • 78 messages
thank you, tried that ....



the script wont complie, not quite sure what I'm doing wrong. Does it need a specific header?



such as



#include something ?

#4
Trampzabout

Trampzabout
  • Members
  • 30 messages
Yes, the snippet of code on the page i linked above is just a snippet, its not a complete script so wont compile if you paste it as-is. That particular script would more than likely be triggered through a conversation with your NPC. At the particular node of the convo that says something like "Yes, Show me your wares." you would trigger that script to run as an action.



You do need to create the script first. It would only need to be simple, with just the snippet contained within a "void main() { }" block, im not sure if you need to include any headers though, maybe someone else could answer that. You can open the merchant_core script to see, its just an empty void main() block.



I think you should be able to trigger the store to open without actually using an NPC in the same way, you could try using a simple placeable, a lever or a chest or something, and trigger the store to open in the placeable script.

#5
Hammer Fang

Hammer Fang
  • Members
  • 78 messages
thank you, problem resolved by silentcid's video tut, and his completed code



30 seconds to get it working, 6 hours to track down the information.



at this rate, I'll have my mod done in ...... 10 years ;)