f4c374314aActions: Enhance walking reliability by adding a moveto() at the end of every step and just before the next step. Increase walking speed constants to more normal values.
Hector Franqui
2017-05-05 09:13:30 -04:00
55c6146e94Spawning: Find entrance doors to building.
Zorman2000
2017-04-10 22:42:21 -04:00
ef973e47ccPathfinding: Cleaned up pathfinder.lua logs. Changed init.lua to refer to proper files. Updated comment about Jumper library in pathfinder.lua
Zorman2000
2017-04-04 10:20:19 -04:00
297dd379a6Pathfinding: Fix for mod security - joining up Jumper library code (WIP)
Zorman2000
2017-04-03 21:48:17 -04:00
afe8dc8f6ePlaces: Detect building entrances (WIP)
Zorman2000
2017-03-27 20:05:18 -04:00
d375762d11NPCs: Add random female and male names. Spawner: Start adding metadata to spawner, places to NPCs. (WIP)
Zorman2000
2017-03-27 14:47:31 -04:00
b5ef1f8ed8Spawner: automatic and manual spawning now works completely.
Zorman2000
2017-03-27 14:03:20 -04:00
d18d1ce897Trading: Fix price items not being accounted for.
Zorman2000
2017-03-27 10:53:21 -04:00
626ca68eb5Spawner: Working node spawning.
Zorman2000
2017-03-23 10:20:08 -04:00
e937cc4ce4Spawner: Moved all spawning code to spawner.lua. Started progress on node timer-based NPC spawning (WIP)
Zorman2000
2017-03-22 22:08:41 -04:00
3649d5bc6aSpawner: Adds ABM for replacement for when LBM fails.
Zorman2000
2017-03-18 12:58:36 -04:00
f5fbda142eSpawner: Adds LBM to replace mg_villages:plotmarker with advanced_npc:auto_spawner (WIP). Adds initial scan code (WIP).
Zorman2000
2017-03-18 10:32:37 -04:00
bd6d735170Actions: Change use sittable and use bed interface to use them as tasks. Schedules: Allow tasks to be added as well as actions.
zorman2000
2017-03-09 19:41:44 -05:00
d8b90d95c3Trade: Add function to store trade offers on NPC data based on the trading status. Add support to avoid flipping sold items out of stock to buy immediately.
zorman2000
2017-02-01 11:36:20 -05:00
54c005ec34Trade: Add dedicated trading prompts. Dialogue: Add support to show dedicated trading prompts for dedicated traders. (WIP) Get buy/sell offers for dedicated traders.
zorman2000
2017-01-29 20:30:43 -05:00
d7a8de5b86Trade: A list of buyable items is now calculated with the maximum amount buyable (given the currency), the minimum buyable amount and the minimum price. Port casual trading to use this system. Refactor the offer function to also support dedicated trading.
zorman2000
2017-01-29 20:08:34 -05:00
75af34beb5Dialogue: full support for flag-based dialogues. Added support for nested dialogue trees. Trade: (WIP) Refactor code to support dedicated trading.
zorman2000
2017-01-26 12:55:04 -05:00
7c3801a5ceNPC: Fix small bug due to actions API change
zorman2000
2017-01-19 21:31:40 -05:00
5d2c820d88Actions: No longer have 'self' as part of the arguments object for each action. This caused an error with Lua serialization that crashed Minetest while the NPC was executing actions and it got unloaded (like exit game or mapblock unloaded).
zorman2000
2017-01-19 20:42:46 -05:00
dd4d445b3aActions: Fix unlock not working properly. Pathfinding: Fix bug of map not generating if difference between z-coordinates is zero. Code cleanup.
zorman2000
2017-01-19 20:11:11 -05:00
60b847a02aActions: (WIP) Add locks, unlocks and re-execution of actions if there are interruptions. Need to improve the lock/unlock mechanism. Dialogues, trading: Add lock and unlock upon starting/finishing an interaction. Updated README with progress. Pathfinding: Fix slight bug that avoid a map being generated if the difference of start and end positions' z coordinate is zero.
zorman2000
2017-01-18 19:34:02 -05:00
e265bc283eActions: Set default walking speed to two nodes per second. NPC: Set default wandering speed to one node per second.
zorman2000
2017-01-16 12:16:42 -05:00
9556e76b79Actions: Add ability for NPC to fully use a furnace. Add ability to add tasks to action queue.
zorman2000
2017-01-13 22:54:27 -05:00
137f02e863Actions: Add set interval action, that allows to increase the action timer interval to effectively produce wait times.
zorman2000
2017-01-13 07:22:00 -05:00
e3fc7be783Places: Add correct detection of sittable nodes, including stairs used as benches. Add staircase detection method, for basic staircases. Ability to detect the bottom, middle and top nodes. Useful for future implementation of being able to use 2nd floors.
zorman2000
2017-01-12 19:40:20 -05:00
7e41e328e8Actions: Support for sitting on benches and stairs.
zorman2000
2017-01-11 07:54:50 -05:00
e69272c359Actions: Default doors and cottages' mod doors are fully supported now. Default bed and cottages' mod beds fully supported now.
zorman2000
2017-01-10 14:21:45 -05:00
641bdd8874Actions: Fully working 2D pathfinding code, including doors. Added NPC actions so that it now closes doors after opening them. Fixed rotations for opening/closing doors and for reaching the goal point. Added full support to cottages mod gates and half doors. WIP: Support for cottages beds and sleeping mats.
zorman2000
2017-01-09 11:34:38 -05:00
49cdae423fMore fixes to Readme.
zorman2000
2017-01-06 08:05:06 -05:00
461749f8afMore fixes to the Readme to reflect properly progress
zorman2000
2017-01-06 08:02:35 -05:00
73a12d76ccFurther fix to the README.:
zorman2000
2017-01-06 08:01:16 -05:00
554fde4643Adds pathfinding library Jumper by Ronald Yonaba. This includes an implementation of the A* pathfinding algorithm which makes NPC now always get to their goal node. Pathfinding: Adds functions that allows to map the Minetest 3D map to a 2D array to use by the pathfinding algorithm. Actions: Use new code for find_path function. Improves door opening while walking on paths, and also now close them. Cottages fence gates and doors are also now supported in addition to the default doors and gates. Changes to the Readme and the License.
zorman2000
2017-01-06 07:57:42 -05:00
80b7eb6ec9Actions: Added action to use a bed (from the default beds mod).
zorman2000
2016-12-29 21:34:15 -05:00
7f22a74d7dActions: Added door opening/closing to walk action.
zorman2000
2016-12-29 19:02:25 -05:00
cffd307cfeActions: Added action to open/close doors, fence gates and anything that uses the default doors mod.
zorman2000
2016-12-29 17:26:09 -05:00
6549a7e4f9Actions: Fixed turns walking through paths. Improved algorithm to include doors and fence gates using default API. NPC: Improved collisionbox.
zorman2000
2016-12-29 15:09:30 -05:00
d78fee695eActions: added experimental, still WIP path-finding code in Lua
zorman2000
2016-12-28 22:10:06 -05:00
646b422082Actions: Added some fundamental movement actions. Places: Added functions for adding and getting places, and for finding places of specific types. Added beds, chairs and chest as places. NPC: Added places map and action queue.
zorman2000
2016-12-18 12:32:39 -05:00
c15e8232d5Trade: Fully working buy and sell offers. Improvements to prices and price-related mechanisms. NPC: Improved get_item_name and get_item_count methods.
zorman2000
2016-12-17 12:01:35 -05:00
72ab610cd8Added new texture for marriage ring.
zorman2000
2016-12-15 21:33:57 -05:00
f717c3f1e5Trade: Working buy/sell trade mechanism. Various cleanups and modularizations for supporting dedicated traders. Data: Added more favorite items for phase 1.
zorman2000
2016-12-15 20:51:06 -05:00
376c6e1df0Trade: 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.
zorman2000
2016-12-15 14:42:45 -05:00
da30d96395Dialogues: Made multi-option dialogue less tall, negative option now normally spaced compared to the rest of the buttons. Slight code cleanup.
zorman2000
2016-12-14 20:14:34 -05:00
0b0abc4706NPCs: 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.
zorman2000
2016-12-14 20:03:51 -05:00
83c9b2c681Cleanup: 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.
zorman2000
2016-12-11 20:52:57 -05:00
2720be8d48Trading: WIP Added functions to determine trade state. NPC: Added inventory and inventory functions. Added variables to definition related with trading
zorman2000
2016-12-05 20:22:33 -05:00
a77dfacac7Removed old chat code
zorman2000
2016-12-04 15:37:12 -05:00
01699d1d4aRelationships: Improved marriage dialogue. When relationships change phase, dialogues are now updated as well. Data: Added placeholder dialogues for both sexes and all phases.
zorman2000
2016-12-04 15:24:32 -05:00
a3b463ff26Relationships: Added married NPC dialogue
zorman2000
2016-12-04 15:00:55 -05:00
f956101f61Relationships: Added favorite and disliked items hints to dialogues.
zorman2000
2016-12-04 13:14:03 -05:00
216c77ca81Dialogues: fixed bug with options dialogue
zorman2000
2016-12-04 10:01:37 -05:00
f462e6af75Dialogues: added support for custom functions on multi-option dialogues. Data: dialogues are now Lua tables indexed by numbers
zorman2000
2016-12-04 09:30:25 -05:00
293500e5e1Update readme with copyright notice.
Héctor Franqui
2016-12-03 07:46:56 -05:00
14a121498eLicense change to GPL3
Héctor Franqui
2016-12-03 07:41:38 -05:00
e89cd1e18dRelationships: 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.
zorman2000
2016-12-02 18:39:06 -05:00
eeabe601ddWIP: Gain relationship points by talking
zorman2000
2016-12-02 08:09:14 -05:00
762337cc6dDialogues: 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
zorman2000
2016-12-01 14:37:00 -05:00
46e3d2543bAdded random data store: helps on generating random NPCs
zorman2000
2016-12-01 14:01:47 -05:00
9f82ae5b7bDialogues: 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.
zorman2000
2016-12-01 09:26:57 -05:00
d6fd49b1aeFinished 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
zorman2000
2016-11-29 23:53:46 -05:00
a877fe64cbAdded yes/no dialogue box using normal formspecs. Added handler for formspecs
zorman2000
2016-11-29 14:44:27 -05:00
f89dfe780eRemoved SmartFS as not supporting the wanted features
zorman2000
2016-11-29 14:10:32 -05:00
47847d2951Fix bug in marriage check for receiving gifts
zorman2000
2016-11-29 14:05:09 -05:00
f53abf7072Chat: started working on dialogue formspec. Added smartfs for formspec functionality as library:
zorman2000
2016-11-29 04:27:07 -05:00
00e6531f91Change to chat.lua
zorman2000
2016-11-26 14:30:24 -05:00
0c018729dbCreate copy of chat.lua
zorman2000
2016-11-26 14:27:35 -05:00