This is a custom shop system I have written for nwn2. It should be easy to implement (add the hak, import-compile the shop scripts and add some variables to the shops.)
The screenshots speak for themselves on the changes and additions. If you have questions don't hesitate to ask, you can find my contact information in the read-me file.
I have also written a trade-hub system (which includes an Auction, Bountyand Warehouse system) geared towards PW's. This system is optional and requires NWNX. Check the read-me file for some more details.
======================================
Older version notes are now in the read-me file as the last section. It is always the latest version that is available here, please report bugs or problems if you find any.
-2.11- Fixed an issue where the ds_sell_mod and ds_buy_mod were interchanged.
* Added a feature whereby now users can double click to buy/sell items. When doing so only one item is bought/purchased unless the item is ammunition in which case a whole stack is exchanged. Also added right click support for examining items.
dethia_shop_sys - include file with various constants and functions
gui_dethia_shop - the script that manages the xml (gui) file
ga_store_open - an override of the default ga_store_open script that uses the shop system. External Website Beyond Our Control
NWNX scripts with the SCORCO functions (all credit goes to the nwnx team: http://www.nwnx.org/ )
I am merely making these scripts easily available as they are used by this system. External Website Beyond Our Control
Himmelweiss to use actual currency gold/silver/copper is possible (and you can use platinum but as you said you'd have to adjust positions of things).
I would rather take this conversation via e-mail or possibly an instant messenger if you don't mind though. If you go with this route it will automatically take care of the problem about the acquire message. Other than that, I found it is impossible to change the on acquire message without some nwnx patch which sadly I don't know how to do. If I did, I would do away with the use of variables and retract the data using code. Elven has a ruby nwn library that actually facilitates that but I was unable to get it to work in nwn2. I will add the double click to purchase things over the weekend, it will only purchase 1 item or a stack if the selection is ammo.
Posted by Himmelweiss at 2012-02-23 14:32:22 Voted 9.50 on 02/18/12
Yep you interchanged the use of the variables. Was quite funny i could buy low, sell high :p So i figured something was wrong in the scripts.
Awesome system btw. However i changed everything to make only use of the default gold. Also had to change all the .xml files to display only gold. Was a bit of work, but nothing serious.
I really would like to use, gold, silver, copper and maybe even platinum but i ran into various cosmetic issues when i thought of it:
- gold drop on mobs, not really sure how to make it clear that there is now some silver, copper, gold coins on the corpse.
- Acquiring message, when i pick up a bag of 10000GP (or loot from a mob) it says "Acquired 10000 GP" but with your system this is actually 10000 Copper.
Not really sure how to adjust the entire game to give 100% correct feedback to the player in various situations in the game when actually using the "gold, silver and copper pieces" system.
Thanks for the feedback I'll have these things fixed up asap.
About the nw_it_gold001.uti, it is not necessary for the system but what it does is change the color of the gold coin to copper. I will re-add it back into the hack (don't know how it keeps disappearing from there).
I'll rename the store-open script and about the variables I'm guessing you mean I have interchanged their use in the script somehow I'll take a look at it.
Posted by Himmelweiss at 2012-02-18 14:51:28 Voted 9.50 on 02/18/12
one more thing,
in the readme you mentioned:
V1.02
--I have also now included the modified nw_it_gold001.uti file, it seems I forgot to include it in the HAK sorry about that.
The V1.02 entry is quite old, but int the .hak there is no nw_it_gold001.uti , do i still need it?
Posted by Himmelweiss at 2012-02-18 14:24:24 Voted 9.50 on 02/18/12
You mixed up some stuff in your scripts.
- in the "gui_dethia_shop" script you used the variable "DS_SELL_MOD" instead of "DS_BUY_MOD".
- in "dethia_shop_sys" script you used the variable "DS_BUY_MOD" instead of "DS_SELL_MOD"
- "ga_open_store" is the default script, you named yours "ga_store_open"
- maybe add buy/sell items with doubleclicking on the row
In regards to the bartering system, I've taken a look at some videos for gothic 3. I don't think I can make the system as smooth as in that game. It would really be just *select all items you wish to sell* - *select all items you wish to buy* and either pay or get paid the difference. But a player can do that same thing albeit with twice as many clicks (have to hit the sell button).
Posted by DannJ at 2011-07-25 20:25:23 Voted 10.00 on 03/27/11
The only way I can see to improve the system further would be to introduce a bartering system like in Gothic III. In NWN2 you are limited both by your own amount of gold and by that of the merchant. If you both have something ridiculously expensive, but the merchant lacks the cash to buy your item first, then you can't buy that special something you don't have the gold for.
In Gothic III, you added items to buy and sell into separate windows, then the difference between the two was calculated and change given to whomever necessary (a true bartering system). Sometimes no gold changed hands at all, if the buying and selling items were of equal value.
Posted by Arvirago at 2011-03-28 10:07:54 Voted 8.50 on 03/28/11
Very nice. _________________________ Reino de Aldor
Posted by DannJ at 2011-03-27 14:26:21 Voted 10.00 on 03/27/11
A small update has been made to the scripts, fixed a bug where I forgot to divide the black market modifier by 100 (woops). So D/L the latest version or you can just change line 435 in dethia_shop_sys to:
Posted by EvilShade at 2011-03-22 23:10:36 Voted 10.00 on 03/22/11
Very nice indeed. You put quite some effort in this system. Gonna take a deeper look into it later. _________________________ Level Designer - Ossian Studios NWN2: Mysteries of Westgate - NWN2's only Adventure Pack
You must be Logged In to post comments in this section.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone