Commit Graph

8 Commits

Author SHA1 Message Date
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