User Tools

Site Tools


adding_a_new_npc_in_game

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
adding_a_new_npc_in_game [2019/02/12 10:45]
thorfinio
adding_a_new_npc_in_game [2019/02/12 10:52] (current)
thorfinio
Line 32: Line 32:
  }  }
 We can note that in this object we have a full description of the Npc we want to add to the scene. The various properties are quite straightforward to grasp, but you can refer to the [[NPC Moddig Guide|NPC Moddig Guide]] for a full explaination of all the possible properties and related values. We can note that in this object we have a full description of the Npc we want to add to the scene. The various properties are quite straightforward to grasp, but you can refer to the [[NPC Moddig Guide|NPC Moddig Guide]] for a full explaination of all the possible properties and related values.
 +
 +===== Edit the mod's descriptor file =====
 +
 +Everything left to do now is to edit the mod's descriptor file to let it know we have to load also npc data when we load the mod:
 +  C:​\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\Descriptor.json
 +And add the "​questGiversNpcsFolder"​ property to those already present in the file. It will point to the name of the folder we created before. So the descriptor file will look somewhat like this:
 + {
 +   "​modName":​ "​MyMod_MODPKG",​
 +   "​author":​ "​RadicalFiction",​
 +   "​gameVersion":​ "",​
 +   "​langFolder":​ "​Lang",​
 +   "​itemsFolder":​ "​Items",​
 +   "​shopsFolder":​ "​Shops",​
 +   "​spawnersFolder":​ "​Spawners",​
 +   "​figuresFolder":​ "​Figure",​
 +   "​furnituresFolder":​ "​Furnitures",​
 +   "​recipesFolder":​ "​Recipes",​
 +   "​fishingSpotsFolder":​ "​FishingSpots",​
 +   "​questGiversNpcsFolder":​ "​QuestGiversNpc"​
 + }
 +Assuming you followed all the other guides and already added all the other properties.
  
 ===== Test it out ===== ===== Test it out =====
adding_a_new_npc_in_game.txt ยท Last modified: 2019/02/12 10:52 by thorfinio