Modding:Custom wedding events: Difference between revisions
Appearance
imported>BarleyZP Create page with info from Modding:Migrate to Stardew Valley 1.6 (main author Pathoschild) |
imported>Sunbeam135 |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
← [[Modding:Index|Index]] | ← [[Modding:Index|Index]] | ||
This page documents how the game stores and parses data for [[wedding]] events. This is an advanced guide for mod developers. | This page documents how the game stores and parses data for [[Marriage#The Wedding|wedding]] events. This is an advanced guide for mod developers. | ||
== | ==Format== | ||
The [[Marriage#The Wedding|wedding]] event can now be changed by editing the <samp>Data\Weddings</samp> data asset, which consists of a data model with two relevant fields (listed below). | The [[Marriage#The Wedding|wedding]] event can now be changed by editing the <samp>Data\Weddings</samp> data asset, which consists of a data model with two relevant fields (listed below). | ||
| Line 18: | Line 18: | ||
This consists of a string → string dictionary, where... | This consists of a string → string dictionary, where... | ||
* The key is an NPC internal name (like <samp>Abigail</samp>), unique player ID, or <samp>default</samp> for the default script (which handles marrying either an NPC or player); | * The key is an NPC internal name (like <samp>Abigail</samp>), unique player ID, or <samp>default</samp> for the default script (which handles marrying either an NPC or player); | ||
* The value is a [[Modding:Tokenizable strings|tokenizable | * The value is a [[Modding:Tokenizable strings|tokenizable string]] for the event script to play. | ||
The event scripts also have access to three extra tokens: | The event scripts also have access to three extra tokens: | ||
| Line 61: | Line 61: | ||
|} | |} | ||
|} | |} | ||
==See also== | |||
* See [[Modding:Event data]] for more information about event scripting. | |||
[[Category:Modding]] | [[Category:Modding]] | ||
[[ru:Модификации:Пользовательские свадебные события]] | |||
[[zh:模组:自定义婚礼事件]] | |||
Latest revision as of 10:57, 3 January 2026
← Index
This page documents how the game stores and parses data for wedding events. This is an advanced guide for mod developers.
Format
The wedding event can now be changed by editing the Data\Weddings data asset, which consists of a data model with two relevant fields (listed below).
| field | effect | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EventScript | The event scripts which play the wedding. The game will use the script for the spouse NPC/player if it exists, otherwise it'll use the default script.
This consists of a string → string dictionary, where...
The event scripts also have access to three extra tokens:
| ||||||||||||
| Attendees | The other NPCs which should attend the wedding (unless they're the spouse). This consists of a string → model lookup, where the key is the internal NPC name, and the value is a model with these fields:
|
See also
- See Modding:Event data for more information about event scripting.