Skip to content

🎬 Event Expansion

JiHyeon Lee edited this page Sep 25, 2025 · 2 revisions

πŸ“– Overview

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.


πŸ“‚ File Naming

  • N_event.json β†’ Event file for cycle N

  • Example:

    • 0_event.json β†’ Cycle 0 events
    • 1_event.json β†’ Cycle 1 events

πŸ“ File Structure

Basic Example (0_event.json)

{
 "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"
   }
  }
 }
}

Rules

  • 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.)

βš™ Supported Condition Keys

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).


⚠ Notes

  • If multiple events are defined at the same heart level, the mod will log a conflict warning.
  • Use strings to separate dialogue text from the event script for easier localization.

Clone this wiki locally