Changes

Jump to navigation Jump to search
→‎Tokens: update for build 23264 (removed [DataString])
Line 7,432: Line 7,432:  
| <samp>[CharacterName {{t|name}}]</samp>
 
| <samp>[CharacterName {{t|name}}]</samp>
 
| The translated display name for an NPC, given their internal name.
 
| The translated display name for an NPC, given their internal name.
|-
  −
| <samp>[DataString {{t|asset name}} {{t|key}} {{t|index}}]</samp>
  −
| Parses the data asset identified by {{t|asset name}}, finds the entry matching {{t|key}}, splits the slash-delimited string, and returns the value with index {{t|index}} (starting from 0).
  −
  −
For example, <samp>[DataString Data\Blueprints Silo 8]</samp> matches the word "Silo" from this entry in <samp>Data\Blueprints</samp>:
  −
<syntaxhighlight lang="js">
  −
  "Silo": "390 100 330 10 334 5/3/3/-1/-1/-2/-1/null/Silo/Allows you to cut and store grass for feed./Buildings/none/48/128/-1/null/Farm/100/false"
  −
</syntaxhighlight>
   
|-
 
|-
 
| <samp>[DayOfMonth]</samp>
 
| <samp>[DayOfMonth]</samp>
translators
8,445

edits

Navigation menu