Several Questions To Do With My Merchant Mod.

Post » Sun Sep 19, 2010 11:32 am

The first question, I want to give the player a pack brahmin. How do I set it as initially diasbled, so it only appears/recognises the player as the owner after event A. At the moment I am thinking of possibly just adding a Pack Brahmin pen, and once event A happens, the package that makes the brahmin recognise the player will begin. Which do you think would be best??

Second question, I want to have certain NPCs buy and sell only 8 or so items. Is there any way to do this?? Was thinking of doing it through conversation topics, and just writing a script that takes into account the players barter skill etc. to determine the price you pay/sell. Is there anyway to just do it in the barter menu?? I know I can just place only the items I want sold in the NPCs merchant container, but that won't stop them buying my junk :(

That's all for now :)
User avatar
Shaylee Shaw
 
Posts: 3457
Joined: Wed Feb 21, 2007 8:55 pm

Post » Sun Sep 19, 2010 5:28 pm

Place brahmin in world, double-click it in the world cell, in the properties box for the brahmin, check the box that says 'Initially disabled'.
You could also do it with a brahmin pen, and add the follow package, or add the right faction when the time is right.

Probably have to script the NPC if you only want a few items to be purchased or sold. :shrug:
That would not be too terribly hard.
User avatar
Penny Flame
 
Posts: 3336
Joined: Sat Aug 12, 2006 1:53 am

Post » Sun Sep 19, 2010 10:44 am

OK, thanks. Any ideas where to start on the script for only buying and selling certain items??
User avatar
Dean
 
Posts: 3438
Joined: Fri Jul 27, 2007 4:58 pm

Post » Sun Sep 19, 2010 1:44 pm

Make a quest with dialogue. Have some of the topics discuss buying or selling the individual items, then perform the transaction manually by removing items from the player inventory and adding them to the merchant inventory and visa-versa. Use conditions on the buy/sell dialogue topics such that they only appear if the merchant/player has them in their inventory - use http://geck.gamesas.com/index.php/GetItemCountfor this.
User avatar
Anna Kyselova
 
Posts: 3431
Joined: Sun Apr 01, 2007 9:42 am

Post » Sun Sep 19, 2010 11:50 pm

You can start with the http://geck.gamesas.com/index.php/Begin block.
Probably want the 'OnActivate' block.

You can use http://geck.gamesas.com/index.php/GetItemCount to see if the player has certain objects to sell. You can use the same to see if the merchant has the items, or you can just always sell them from the merchant.

You can use http://geck.gamesas.com/index.php/GetGold to see how many caps the player or merchant has available.

You can use http://geck.gamesas.com/index.php/AddItem to add the sold or bought items to the player or merchant.

You can use http://geck.gamesas.com/index.php/RemoveItem to delete the sold or bought items from the player or merchant.

You should look through the available functions on the http://geck.gamesas.com/index.php/Category:Functions.
User avatar
Connor Wing
 
Posts: 3465
Joined: Wed Jun 20, 2007 1:22 am

Post » Sun Sep 19, 2010 1:27 pm

You can start with the http://geck.gamesas.com/index.php/Begin block.
Probably want the 'OnActivate' block.

You can use http://geck.gamesas.com/index.php/GetItemCount to see if the player has certain objects to sell. You can use the same to see if the merchant has the items, or you can just always sell them from the merchant.

You can use http://geck.gamesas.com/index.php/GetGold to see how many caps the player or merchant has available.

You can use http://geck.gamesas.com/index.php/AddItem to add the sold or bought items to the player or merchant.

You can use http://geck.gamesas.com/index.php/RemoveItem to delete the sold or bought items from the player or merchant.

You should look through the available functions on the http://geck.gamesas.com/index.php/Category:Functions.


Thanks, had something like that in mind. Have made containers for each merchant so the items can be taken and added into there. Will get to work with the script at some point today.

Might be back here for some more help :)

Edit: nevermind

?
User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm

Post » Sun Sep 19, 2010 1:26 pm

Is there any way to show the barter menu, but change which containers it is between? so when you show barter menu, instead of being between you and the person you are talking to, it is between two separate containers??

EDIT:

Also, why isn't this working?

Begin SayToDone WESellSuppliesShowmessage WETradeSupplies. . . . End


The message shows when i put Showmessage WETradeSupplies as the end result script in the topic section, but not sure how to make the menu work from there. Would i just be able to put the menu script in the end result script box in the topic section?
User avatar
TIhIsmc L Griot
 
Posts: 3405
Joined: Fri Aug 03, 2007 6:59 pm


Return to Fallout 3