NPCquests.json - AlPepino/Next-Days GitHub Wiki
File contains declared NPC quests (object array).
Object has these variables:
AssociatedTraders
integer array contains associated NPC ID (his stock ID) to this quest
AssociatedMission
takes mission name which is spawned while quest starting. Mission is also despawned when the quest is completed. You can also force spawn "WantedItem" in mission loot container by enabling "spawnQuestItem" in loot element
Important hints:
- That mission must be set up as a slave mission ("isManaged":1,)
- Mission "nominal" must be equal to count of items in array "AssociatedTraders". E.g.: "AssociatedTraders":[1,2], (quest) == "nominal": 2, (mission template)
StartMessage
message shown at the start of this event. There are some reserved keyword, which can be used in this title:
- #item - will be replaced by display name of item declared in variable "WantedItem"
- #pos - will be replaced by location label
- #reward - will be replaced by reward description
EndMessage
message shown at the end of this event
RepeatStartMessageEvery
takes integer representing time between repeating start message ( in seconds)
MapTitle
title shown in map. There is not allowed to use reserved keyword
Chance
takes real number representing spawn chance. 1 means 100 % spawn
Nominal
takes integer representing max count of this event. E.g. 1 means just one quest of this type throughout the server runtime
LifeTime
takes integer representing mission life time ( in seconds). 0 means mission life time till the quest is compleated
CoolDown
takes integer representing cool down ( in seconds). 0 means mission can be spawned somewhere else once again
HideWantedItems
takes 0/1 (false/true). 1 means hiding wanted items in trader menu (buy option) while running quest
WantedItem
class name of wanted item
WantedItemAllowedType
allowed typename of wanted item, e.g.: WantedItem is "Truck_01_Covered_Blue", then you can set up WantedItemAllowedType to "Truck_01_Base" => all trucks are accepted
WantedRequiredCount
takes integer representing count of wanted item
RewardItem
class name of rewarded item
WantedRequiredCount
takes integer representing count of rewarded item
RewardPrice
takes real number representing price multiplicator
RewardReputation
takes integer representing reputation bonus for completing quest