zorman2000
c15e8232d5
Trade: Fully working buy and sell offers.
...
Improvements to prices and price-related mechanisms.
NPC: Improved get_item_name and get_item_count methods.
2016-12-17 12:01:35 -05:00
zorman2000
f717c3f1e5
Trade: Working buy/sell trade mechanism.
...
Various cleanups and modularizations for supporting dedicated traders.
Data: Added more favorite items for phase 1.
2016-12-15 20:51:06 -05:00
zorman2000
376c6e1df0
Trade: Casual trading dialogues are now shown for NPCs correctly.
...
Added infrastructure to hold results from dialogues.
Added casual buy/sell trade formspec.
WIP: Trade mechanism for casual buy/sell.
2016-12-15 14:42:45 -05:00
zorman2000
da30d96395
Dialogues: Made multi-option dialogue less tall, negative option now normally spaced compared to the rest of the buttons.
...
Slight code cleanup.
2016-12-14 20:14:34 -05:00
zorman2000
0b0abc4706
NPCs: Now spawn with 1 or 2 items from the favorite items list.
...
Trade: Added dialogues for buys and sells for casual trading.
Dialogues: Added a 30% chance for NPC to make a trade offer.
Trade: Trade offers WIP.
2016-12-14 20:03:51 -05:00
zorman2000
83c9b2c681
Cleanup: moved relationships into own file.
...
Moved trading and pricing code to another folder, separate files.
NPC: Added further inventory functionality.
Trading: Added price data structure, which allows for setting prices for items. Also includes some default definitions.
2016-12-11 20:52:57 -05:00
zorman2000
a3b463ff26
Relationships: Added married NPC dialogue
2016-12-04 15:00:55 -05:00
zorman2000
f956101f61
Relationships: Added favorite and disliked items hints to dialogues.
2016-12-04 13:14:03 -05:00
zorman2000
216c77ca81
Dialogues: fixed bug with options dialogue
2016-12-04 10:01:37 -05:00
zorman2000
f462e6af75
Dialogues: added support for custom functions on multi-option dialogues.
...
Data: dialogues are now Lua tables indexed by numbers
2016-12-04 09:30:25 -05:00
zorman2000
e89cd1e18d
Relationships: completed support to increase relationship on talk. Implemented timer on this too.
...
Dialogues: Improved way responses are being stored into table for each player.
Added support for multi option dialogue and the dialogue action as well. WIP in function action type.
Cleaned up code.
2016-12-02 18:39:06 -05:00
zorman2000
762337cc6d
Dialogues: Added function to select random dialogues for NPCs from random data.
...
Modified NPCs so random dialogues are chosen on initialization.
Added function to start a dialogue, choosing randomly NPCs dialogues.
Changed NPC code to use new dialogue code
2016-12-01 14:37:00 -05:00