First, this NPC Mod is incredible, thank you to all the creators. You are amazing. This has made the game more fun and interesting for so many, myself included.
I’m trying to do my little part with a nearly completed storyline chain of quests (
https://community.7daystodie.com/topic/31075-new-storyline-quest-mod-looking-for-feedback/https://community.7daystodie.com/topic/31075-new-storyline-quest-mod-looking-for-feedback/) , and the NPC Mod is perfect to incorporate. I did have a few questions that are probably simple and easy to those who know, but remain difficult for those like me who are still trying to figure the code out:
1. How do I spawn a friendly NPC that can be hired near the player? As perhaps, say a quest Reward? Like, you kill 25 zombies, and afterwards two hiding survivors emerge from the woods to join you and are suddenly standing a few feet away, ready to be hired.
Something like <reward type="Item" id="SurvivorSoldier1TRifle" value="2"/> ?
Or at the beginning of the next quest something like
<action type="SpawnNPC" id="Bob,Brian" value="2" phase="1"/>?
2. Can you spawn a friendly, hireable NPC into a nearby POI? Kind of similar coding to the various White River trader “Fetch” quests except instead you are to rescue the NPC (and not a satchel of goods) in the nearby POI? One could easily see the Final Version of the game having White River Traders dole out “rescue” missions of stranded civilians in POI’s, but I’d like to try and do it myself now. Has someone already done this?
3. Is there a way to check that the player has hired an NPC, like an “objective type” that would also fit into quests.xml? That might be impossible but worth an ask and relates to question #2.
4. Is there a max number of NPC’s under player control you recommend? Like under 10 or something?
5. Is there a way for the game to check how many NPC’s are in an area? As an “objective type” again? Let’s say one of the storyline quests is “Find and bring back 10 NPC’s to your base and put them on Stay.” Once you have rescued 10 NPC’s and put them in your base, you have completed the mission etc. Or have each NPC disappear as they cross into your base to reduce lag (if having that many NPC’s is a problem).
6. Lastly, is there a way (didn't see any in Localization) to change a line of the NPC’s dialogue. Like, obviously there is a need for the dialogue options to be “Guard” and “Stay” etc, but one that is just “Hi, I’m a survivor like you. I’m desperate, please take me back to your base.”
Please if you can help in anyway or steer me in the right direction, thank you!