Commit Graph

19 Commits

Author SHA1 Message Date
zorman2000
01699d1d4a Relationships: Improved marriage dialogue.
When relationships change phase, dialogues are now updated as well.
Data: Added placeholder dialogues for both sexes and all phases.
2016-12-04 15:25:22 -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
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
eeabe601dd WIP: Gain relationship points by talking 2016-12-02 08:09:14 -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
zorman2000
9f82ae5b7b Dialogues: Changed prompt for yes/no dialogue to show on formspec instad of sent as message.
Added item name now when giving a gift to NPC.
Positive answer for yes/no dialogue is now a constant.
2016-12-01 09:26:57 -05:00
zorman2000
d6fd49b1ae Finished yes/no dialogue for dialogues.
Implemented using function callbacks for each option (positive or negative answer)
Implemented dialogue for confirming that player wants to give a gift to NPC rather than just losing the item
2016-11-29 23:53:46 -05:00
zorman2000
a877fe64cb Added yes/no dialogue box using normal formspecs. Added handler for formspecs 2016-11-29 14:44:27 -05:00
zorman2000
47847d2951 Fix bug in marriage check for receiving gifts 2016-11-29 14:05:09 -05:00
Hector Franqui
6e806d1d5b Marriage NPC cannot receive gifts from other NPC/players 2016-11-19 13:19:59 -05:00
Hector Franqui
39224ed644 Fixed bug with gifts on marriage 2016-11-19 13:01:00 -05:00
Hector Franqui
c60d13112b Finished implementation of gifts per phases. Added relationship timer decrease. Added disliked items 2016-11-19 12:38:16 -05:00
Hector Franqui
032cf67d99 Finished implementation of gifts per phases. Added relationship timer decrease. Added disliked items 2016-11-19 12:34:41 -05:00
Hector Franqui
82b9d97d6f Started partial implementation for per-phase gifts 2016-11-19 08:04:45 -05:00
Hector Franqui
7d85cdc063 Bugfix for correct timerand entity parameters 2016-11-14 18:39:41 -05:00
Héctor Franqui
9ee5c186f1 Update npc.lua
Removed child options for gifts, relationships and favorite items.
2016-11-14 15:40:35 -05:00
Hector Franqui
18657cc108 Progress on gifts and relationships. Still requires further debugging to understand some timer issues. 2016-11-14 06:28:37 -05:00
zorman2000
eb158f6f15 First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00