Fork of Advanced NPC for Minetest, using mobs_redo API.
Go to file
zorman2000 80b7eb6ec9 Actions: Added action to use a bed (from the default beds mod). 2016-12-29 21:34:41 -05:00
actions Actions: Added action to use a bed (from the default beds mod). 2016-12-29 21:34:41 -05:00
locale First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00
textures Added new texture for marriage ring. 2016-12-15 21:33:57 -05:00
trade Actions: added experimental, still WIP path-finding code in Lua 2016-12-28 22:10:06 -05:00
README.md Relationships: Added married NPC dialogue 2016-12-04 15:00:55 -05:00
depends.txt First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00
description.txt First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00
dialogue.lua Trade: Fully working buy and sell offers. 2016-12-17 12:01:35 -05:00
init.lua Actions: Added some fundamental movement actions. 2016-12-18 12:32:39 -05:00
license.txt License change to GPL3 2016-12-03 07:41:38 -05:00
mod.conf Progress on gifts and relationships. Still requires further debugging to understand some timer issues. 2016-11-14 06:28:37 -05:00
npc.lua Actions: Added action to use a bed (from the default beds mod). 2016-12-29 21:34:41 -05:00
random_data.lua Trade: Working buy/sell trade mechanism. 2016-12-15 20:51:06 -05:00
relationships.lua Actions: Added some fundamental movement actions. 2016-12-18 12:32:39 -05:00
trader.lua First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00
trader_test.lua First commit. Using mobs_npc code as start. 2016-11-12 07:06:09 -05:00

README.md

advanced_npc

Advanced NPC framework for Minetest, based on mobs_redo. The goal of this mod is to be able to have live villages in Minetest. These NPCs are highly inspired by the typical NPCs of Harvest Moon games. The general idea is that on almost all buildings of a village there are NPCs that are kind of intelligent: they have daily tasks they perform, can speak to players, can trade with the player, can use their own items (chests for example), know where to go around their village, can be lumbers, miners or any other Minetest-suitable profession and can ultimately engage into relationships with the player. And while basically only players are mentioned here, the ultimate goal is that they can do all of this also among themselves, so that villages are completely alive and evolving by themselves, without necessary player intervention.


Current roadmap:

Version 1.0

Phase 1: Gifts and relationships: In progress

  • NPCs should be able to receive items
  • NPCs will have favorite and disliked items
  • Giving an NPC their favorite or disliked item will affect positively/negatively their relationship with that player.
  • Eventually, an NPC can fall in love with that player and marry him/her
  • Relationships among NPCs should be possible too

Phase 2: Dialogues: Completed

  • NPCs should be able to perform complex dialogues:
    • Use yes/no or multiple option dialogue boxes to interact with player
    • Answers and responses by player TODO: Specific dialogues on certain environment flag (so that events can change what an NPC says

Phase 3: Trading

  • NPCs should be able to trade, either buy or sell items to/from player and other NPCs
  • Goal is to implement trading with player first

Phase 4: Owning nodes, being able to go to places

  • NPCs should be able to own chests, furnaces and doors and use them
  • NPCs should be able to go to specific places in their own homes or villages or in the world in general:
    • For this, a places framework should be defined
    • NPCs at least should know where their bed is, and use it

Phase 5: Activities and jobs

  • NPCs should be able to dig and place nodes
  • NPCs should be able to perform different activities on different times of the day

Phase 6: Advanced spawners for villages

Version 2.0

Phase 7: Make NPCs scriptable

Phase 8: Improve NPCs so that they can be farmers, lumberjacks and miners

Phase 9: Improve NPCs so that they can tame and own farm animals

Phase 10: Improve NPCs so that they can run on carts, boats and (maybe) horses

Version 3.0

Phase 11: Integrate with commerce mod

Phase 12: Improve relationships for obtaining more benefits from a married NPC

Phase 13: Improve AI to include support for house families

Phase 14: Improve AI to create village communities

License for Code

Copyright (C) 2016 Zorman2000

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.