Changes

Jump to navigation Jump to search
→‎Format: Fix broken links
Line 2: Line 2:  
You can now add/edit the items which the [[museum]] gives back in rewards through the new <samp>Data/MuseumRewards</samp> data asset.
 
You can now add/edit the items which the [[museum]] gives back in rewards through the new <samp>Data/MuseumRewards</samp> data asset.
   −
====Format====
+
This page details adding custom museum donations and rewards. This is an advanced guide for mod developers
 +
 
 +
==Data format==
 +
You can now add/edit the items which the [[museum]] gives back in rewards through the new <samp>Data/MuseumRewards</samp> data asset.
 
The data asset consists of a string → model lookup, where...
 
The data asset consists of a string → model lookup, where...
 
* The key is a [[Modding:Common data field types#Unique string ID|unique string ID]] for the reward group.
 
* The key is a [[Modding:Common data field types#Unique string ID|unique string ID]] for the reward group.
Line 20: Line 23:  
|-
 
|-
 
| <samp>Tag</samp>
 
| <samp>Tag</samp>
| The [[Modding:Context tags|context tag]] for the items to require.
+
| The [[Modding:Items#Context_tags|context tag]] for the items to require.
 
|-
 
|-
 
| <samp>Count</samp>
 
| <samp>Count</samp>
Line 44: Line 47:  
|-
 
|-
 
| <samp>RewardItemId</samp>
 
| <samp>RewardItemId</samp>
| ''(Optional)'' The [[#Custom items|qualified item ID]] for the item given to the player when they donate all required items for this group. There's no reward item if omitted.
+
| ''(Optional)'' The [[Modding:Common_data_field_types#Item_ID|qualified item ID]] for the item given to the player when they donate all required items for this group. There's no reward item if omitted.
 
|-
 
|-
 
| <samp>RewardItemCount</samp>
 
| <samp>RewardItemCount</samp>
Line 56: Line 59:  
|-
 
|-
 
| <samp>CustomFields</samp>
 
| <samp>CustomFields</samp>
| The [[#Custom data fields|custom fields]] for this entry.
+
| The [[Modding:Common_data_field_types#Custom_fields|custom fields]] for this entry.
 
|}
 
|}
   Line 97: Line 100:  
}</nowiki>|lang=javascript}}
 
}</nowiki>|lang=javascript}}
   −
See also [[Modding:Mail data|mail data]], [[#Custom items|custom items]], and [[#custom machines|custom machines]] to add the custom mail and items.
+
See also [[Modding:Mail data|mail data]], [[Modding:Items|custom items]], and [[Modding:Machines|custom machines]] to add the custom mail and items.
    
====Achievements====
 
====Achievements====
 
The ''A Complete Collection'' [[Achievements|achievement]] is automatically adjusted to require any custom donations added too. This is based on the number of donated items though, so removing custom donations later may incorrectly mark the museum complete (since you may have donated enough items to meet the total required).
 
The ''A Complete Collection'' [[Achievements|achievement]] is automatically adjusted to require any custom donations added too. This is based on the number of donated items though, so removing custom donations later may incorrectly mark the museum complete (since you may have donated enough items to meet the total required).
138

edits

Navigation menu