Commit Graph

15 Commits

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