Repository navigation
π¬ Event Expansion
JiHyeon Lee edited this page Sep 25, 2025
·
2 revisions
Event files are stored inside the states folder of each NPC, alongside dialogue files.
They follow the naming format N_event.json, where N is the cycle number.
-
N_event.jsonβ Event file for cycle N -
Example:
-
0_event.jsonβ Cycle 0 events -
1_event.jsonβ Cycle 1 events
-
{
"events": {
"4": {
"1001": {
"event": "playMusic wedding/warp farmer 10 15/strings intro/strings react/end",
"strings": {
"intro": "Abigail: Today is such a special day for us!",
"react": "Player: This is a moment I'll never forget."
},
"d": "spring_15",
"l": "Town",
"t": "900-1200",
"w": "Sunny"
}
}
}
}-
Heart Level β Key that groups events by friendship level (e.g.
"4") -
Event ID β Unique identifier for the event (e.g.
"1001") - event β Event script string, using standard Stardew Valley event commands
- strings β Dialogue text replacements inside the event script
- conditions β Event restrictions (date, time, weather, etc.)
Event files use the same condition keys as dialogue files. Examples:
-
dβ Date (e.g."spring_15") -
lβ Location (e.g."Town") -
tβ Time range (e.g."900-1200") -
wβ Weather (e.g."Sunny","Rainy") -
fβ Flag (e.g."mail.clubCard") -
eβ Event completion (e.g."1001","!1002")
π All conditions are treated as AND (all must be true).
- If multiple events are defined at the same heart level, the mod will log a conflict warning.
- Use
stringsto separate dialogue text from the event script for easier localization.