Modding:Coding An Item: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 3: Line 3:
Your root template lsx may look something like this:
Your root template lsx may look something like this:


<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<save>
<save>
     <version major="4" minor="0" revision="6" build="5" />
     <version major="4" minor="0" revision="6" build="5" />
     <region id="Templates">
     <region id="Templates">
         <node id="Templates">
         <node id="Templates">
             <children>  
             <children>  
 
(START OF ITEM)
(START OF ITEM)
<code>
  <node id="GameObjects"> '''Beginning of Circlet item. You may wish to annotate this with a title'''
  <node id="GameObjects"> Circlet
  <attribute id="Description" type="TranslatedString" handle="HANDLE2" version="1" /> '''Generate a handle for this in your .loca file.'''
  <attribute id="Description" type="TranslatedString" handle="HANDLE2" version="1" /> '''Generate a handle for this in your .loca file.'''</code>
  <attribute id="DisplayName" type="TranslatedString" handle="HANDLE1" version="1" /> '''Generate a handle for this in your .loca file.'''
  <attribute id="DisplayName" type="TranslatedString" handle="HANDLE1" version="1" /> '''Generate a handle for this in your .loca file.'''</code>
  <attribute id="EquipSound" type="FixedString" value="ea27b98e-5fc0-4b0d-8602-e4a421dd481e" /></code> '''Not necessary but you may wish to specify one or it will use whatever default sound is in the parent template.'''
  <attribute id="EquipSound" type="FixedString" value="ea27b98e-5fc0-4b0d-8602-e4a421dd481e" /></code>
  <attribute id="Icon" type="FixedString" value="Item_Cloth_Headwear_Circlet_Silver_A" /> '''Sets it up to use a base game icon- custom icons require addition lsx and texture work'''</code>
  <attribute id="Icon" type="FixedString" value="Item_Cloth_Headwear_Circlet_Silver_A" /> '''Sets it up to use a base game icon- custom icons require addition lsx and texture work'''</code>
  <attribute id="LevelName" type="FixedString" value="" /></code>
  <attribute id="LevelName" type="FixedString" value="" /></code>
  <attribute id="MapKey" type="FixedString" value="0000000000000000000000000002" /> '''This links up to the armor.txt to form the armor.'''</code>
  <attribute id="MapKey" type="FixedString" value="0000000000000000000000000002" /> '''This links up to the armor.txt to form the armor.'''</code>
Line 23: Line 22:
  <attribute id="PhysicsTemplate" type="FixedString" value="327039da-0827-811f-24e8-fc57e86c7ba2" /></code>
  <attribute id="PhysicsTemplate" type="FixedString" value="327039da-0827-811f-24e8-fc57e86c7ba2" /></code>
  <attribute id="Type" type="FixedString" value="item" /></code>
  <attribute id="Type" type="FixedString" value="item" /></code>
  <attribute id="UnequipSound" type="FixedString" value="f4c24367-83af-484e-bcc5-0438b8e64dec" /></code>
  <attribute id="UnequipSound" type="FixedString" value="f4c24367-83af-484e-bcc5-0438b8e64dec" /></code> '''Not necessary but you may wish to specify one or it will use whatever default sound is in the parent template.'''
  <attribute id="VisualTemplate" type="FixedString" value="2136f57a-a35f-c2fe-69fb-29afa9ebc8db" /> This is the mesh mapkey to the LOOT model (the one that appears when you examine it, or throw the item. For a weapon, the LOOT model and the item model are the same. </code>
  <attribute id="VisualTemplate" type="FixedString" value="2136f57a-a35f-c2fe-69fb-29afa9ebc8db" /> This is the mesh mapkey to the LOOT model (the one that appears when you examine it, or throw the item. For a weapon, the LOOT model and the item model are the same. </code>
  <attribute id="_OriginalFileVersion_" type="int64" value="144115207403209032" /></code>
  <attribute id="_OriginalFileVersion_" type="int64" value="144115207403209032" /></code>
Line 36: Line 35:
  <node id="DreadShortHair" /></code>
  <node id="DreadShortHair" /></code>
  <node id="LongHair" /></code>
  <node id="LongHair" /></code>
  <node id="ParentRace"> These set the parent races for githyanki, Dragonborn and Tiefling.  Unless this line is specified, they will use Human Body or Strong Human Body. (Which may be fine for some races such as Tieflings.)</code>
  <node id="ParentRace"> '''These set the parent races for githyanki, Dragonborn and Tiefling.  Unless this line is specified, they will use Human Body or Strong Human Body. (Which may be fine for some races such as Tieflings.)'''</code>
  <children></code>
  <children></code>
  <node id="Object"></code>
  <node id="Object"></code>
Line 60: Line 59:
  <children></code>
  <children></code>
  <node id="MaterialPresets" /></code>
  <node id="MaterialPresets" /></code>
'''(We can add any colour available to us (cloth, leather, accent) but this circlet is only metal 1 so we only need to list metal 1.)'''</code>
'''(We can add any colour available to us (cloth, leather, accent) but this circlet is only metal 1 so we only need to list metal 1.)'''</code>


<node id="Vector3Parameters"></code>
<node id="Vector3Parameters"></code>
<attribute id="Color" type="bool" value="False" /></code>
<attribute id="Color" type="bool" value="False" /></code>
<attribute id="Custom" type="bool" value="True" /></code>
<attribute id="Custom" type="bool" value="True" /></code>
<attribute id="Enabled" type="bool" value="False" /></code>
<attribute id="Enabled" type="bool" value="False" /></code>
<attribute id="Parameter" type="FixedString" value="Metal_Primary" /></code>
<attribute id="Parameter" type="FixedString" value="Metal_Primary" /></code>
<attribute id="Value" type="fvec3" value="0.7667436 0.7667436 0.7667436" /> You can get a line of </code>
<attribute id="Value" type="fvec3" value="0.7667436 0.7667436 0.7667436" /> You can get a line of </code>
</node></code>
</node></code>
</children></code>
</children></code>
</node></code>
</node></code>
  <node id="RealMaterialOverrides" /></code>
  <node id="RealMaterialOverrides" /></code>
</children></code>
</children></code>
</node></code>
</node></code>
<node id="Visuals"></code>
<node id="Visuals"></code>
<children></code>
<children></code>
<node id="Object"></code>
<node id="Object"></code>
<attribute id="MapKey" type="guid" value="71180b76-5752-4a97-b71f-911a69197f58" /> Human Male Race IUUD example</code>
<attribute id="MapKey" type="guid" value="71180b76-5752-4a97-b71f-911a69197f58" /> Human Male Race IUUD example</code>
<children></code>
<children></code>
<node id="MapValue"></code>
<node id="MapValue"></code>
<attribute id="Object" type="FixedString" value="00000000000000000000000000001" /> Your Mesh for Human Male</code>
<attribute id="Object" type="FixedString" value="00000000000000000000000000001" /> Your Mesh for Human Male</code>
</node></code>
</node></code>
</children></code>
</children></code>
</node></code>
</node></code>
(Removed for length - all the other mapkeys/mapvalues of every race this item is available for)</code>
(Removed for length - all the other mapkeys/mapvalues of every race this item is available for)</code>
  </children></code>
  </children></code>
Line 94: Line 93:
  </node></code>
  </node></code>
   </node>
   </node>
'''(END OF ITEM)'''
'''(END OF ITEM)'''
             </children>
             </children>
         </node>
         </node>
     </region>
     </region>
</save>
</save>
</code>     
 




Navigation menu