Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
adding_a_new_npc_in_game [2019/01/11 11:24] thorfinio created |
adding_a_new_npc_in_game [2019/02/12 10:52] thorfinio |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== Creating the NPC ===== | ===== Creating the NPC ===== | ||
- | All of the mod's npcs can be found in the QuestGiversNpc folder: | + | All of the mod's npcs have to be located in the QuestGiversNpc folder: |
C:\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\QuestGiversNpc | C:\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\QuestGiversNpc | ||
- | As usual we will delete all of the files there contained, since they are clones of the Vanilla ones.\\ | + | After creating the folder we will create a brand new file: |
- | After that we will create a brand new file: | + | |
C:\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\QuestGiversNpc\modder_npc.json | C:\Users\{YOUR USERNAME}\AppData\LocalLow\RadicalFiction\HARDTIMES\Mods\MyMod_MODPKG\QuestGiversNpc\modder_npc.json | ||
So that it will look just like this: | So that it will look just like this: | ||
Line 33: | 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 ===== |