Changes

parsing info
Line 1: Line 1:  
← [[Modding:Index|Index]]
 
← [[Modding:Index|Index]]
  −
{{stub|missing parsing info}}
      
This page explains how the game stores and parses achievement data. This is an advanced guide for mod developers.
 
This page explains how the game stores and parses achievement data. This is an advanced guide for mod developers.
Line 44: Line 42:  
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! index
+
! Index
! field
+
! Field
! example value
+
! Example Value
 
|-
 
|-
 
| 0
 
| 0
Line 57: Line 55:  
|-
 
|-
 
| 2
 
| 2
| ???
+
| display achievement on collections tab before it's earned
 
| ''true''
 
| ''true''
 
|-
 
|-
 
| 3
 
| 3
| ???
+
| prerequisite achievement
 
| ''-1''
 
| ''-1''
 
|-
 
|-
 
| 4
 
| 4
| (possibly achievement ID)
+
| hat earned (index from <tt>hats.xnb</tt>)
 
| ''13''
 
| ''13''
 
|-
 
|-
 
|}
 
|}
    +
If index 2 is "true" and index 3 is "-1" then the achievement star will be displayed on the collections tab (greyed out if not yet achieved).  Otherwise, index 3 shows the number of the achievement that must be earned before the achievement will be displayed on the Collections tab.  (Example: you must earn achievement 28 "Treasure Trove" before achievement 5 "A Complete Collection" will be displayed.)
 +
 +
The only achievement with a value of "false" in index 2 is the secret achievement that doesn't display until it's earned.
    +
For a list of hats, see [[Modding:Hat data|Hat data]].
    
[[Category:Modding]]
 
[[Category:Modding]]
105,789

edits