We are in the process of transferring the hosting and maintenance responsibilities of the wiki from Chucklefish to ConcernedApe, which is why the wiki will temporarily be hosted at stardewcommunitywiki.com. Soon the official wiki will resume at stardewvalleywiki.com and will be hosted going forward by ConcernedApe. Prior to the transfer to ConcernedApe we will update this site with the date on which the transfer will occur.

Modding:Quest data

From Stardew Valley Wiki
Jump to: navigation, search

Index

This page explains how the game stores quests. This is an advanced guide for mod developers.

File format

All scripted quests are stored in an XNB file in the following directory Content\Data\Quests.xnb. If you want to add more quests, it is recommended that you make a new XNB package and use the content loader to load them into the game.

Key

Each quest key must be unique positive integer. As of writing this, there doesn't appear to be any limitation on the size of the number (aside system architecture). It is recommended that you use something like the last 5 digits of your Nexus ID number as the first 5 digits and add quest IDs after that.

Parameters

The values of the JSON elements follow a format much like that of the Modding:Dialogue#Format; using a forward slash delimited string to store its parameters. These parameters represent the following details about the quest.


Parameter Index Description
0 Type (e.g. Location, Basic, LostItem, etc)
1 Title
2 Quest details/Flavour text
3 Hint/Condition
4 Solution/Trigger
5 Next quest (-1 if N/A)
6 Gold (0 if none)
7 Reward description (Only if Gold is not -1)
8 Cancelable
9 (Optional) Reaction text


Example: "6": "ItemHarvest/Getting Started/If you want to become a farmer, you have to start with the basics. Use your hoe to till the soil, then use a seed packet on the tilled soil to sow a crop. Water every day until the crop is ready for harvest./Cultivate and harvest a parsnip./24/h7 8/100/-1/true"

See also