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
Help with Merchant
Débuté par
Hammer Fang
, déc. 14 2009 03:22
#1
Posté 14 décembre 2009 - 03:22
#2
Posté 14 décembre 2009 - 04:14
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
http://social.biowar...ex.php/Merchant
#3
Posté 14 décembre 2009 - 05:06
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 ?
the script wont complie, not quite sure what I'm doing wrong. Does it need a specific header?
such as
#include something ?
#4
Posté 14 décembre 2009 - 08:07
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.
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
Posté 14 décembre 2009 - 11:24
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
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





Retour en haut






