Changes

Jump to navigation Jump to search
update links for unique string ID
Line 167: Line 167:  
|-
 
|-
 
| <samp>ID</samp>
 
| <samp>ID</samp>
| The [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string ID]] for this entry (not the item itself) within the current list.
+
| The [[Modding:Common data field types#Unique string ID|unique string ID]] for this entry (not the item itself) within the current list.
    
This is semi-optional — if omitted, it'll be auto-generated from the <samp>ItemId</samp>, <samp>RandomItemId</samp>, and <samp>IsRecipe</samp> fields. However multiple entries with the same ID may cause unintended behavior (e.g. shop items reducing each others' stock limits), so it's often a good idea to set a globally unique ID instead.
 
This is semi-optional — if omitted, it'll be auto-generated from the <samp>ItemId</samp>, <samp>RandomItemId</samp>, and <samp>IsRecipe</samp> fields. However multiple entries with the same ID may cause unintended behavior (e.g. shop items reducing each others' stock limits), so it's often a good idea to set a globally unique ID instead.
Line 294: Line 294:     
===Add custom item queries===
 
===Add custom item queries===
You can define new item queries <code>ItemQueryResolver.Register("Example.ModId_QueryName", handleQueryMethod)</code>. To avoid conflicts, custom query names should apply the [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string ID]] conventions.
+
You can define new item queries <code>ItemQueryResolver.Register("Example.ModId_QueryName", handleQueryMethod)</code>. To avoid conflicts, custom query names should apply the [[Modding:Common data field types#Unique string IDs|unique string ID]] conventions.
    
[[Category:Modding]]
 
[[Category:Modding]]
translators
8,445

edits

Navigation menu