Difference between revisions of "Clothing Items"

From wiki
Jump to: navigation, search
(Initial commit.)
 
m (Corrected grammar)
Line 2: Line 2:
 
[[Items]] are fairly broad in their types. Each [[:Category:Item Modding|type]] has it's own properties and uses. This page is for items that can be worn, Clothing Items.
 
[[Items]] are fairly broad in their types. Each [[:Category:Item Modding|type]] has it's own properties and uses. This page is for items that can be worn, Clothing Items.
  
Clothing items are all items that have the following line;
+
Clothing Items are all items that have the following line;
 
<pre>
 
<pre>
 
"kind": "staxel.item.Clothing",
 
"kind": "staxel.item.Clothing",
 
</pre>
 
</pre>
  
Clothing items contain only two pieces of information, the accessory to wear and the palette to colour that accessory. Otherwise they act like a normal item.
+
Clothing Items contain only two pieces of information, the accessory to wear and the palette to colour that accessory. Otherwise they act like a normal item.
  
  
 
= Creating a Clothing Item =
 
= Creating a Clothing Item =
Unlike [[Craft Items]], Clothing Items are automatically generated from [[Accessory|Accessories]]. You cannot make the item yourself, form a "*.item", as the game will not be able to generate it properly. As such you will have to rely on "*.accessory" files to create clothing items.
+
Unlike [[Craft Items]], Clothing Items are automatically generated from [[Accessory|Accessories]]. You cannot make the item yourself (i.e. Create an "*.item" file) as the game will not be able to generate it properly. As such you will have to rely on "*.accessory" files to create clothing items.
  
  
 
= Spawning in a Clothing Item =
 
= Spawning in a Clothing Item =
As it is not possible to create a proper clothing item. You can only create a clothing item using the following;
+
As it is not possible to create a proper Clothing Item, you can create a clothing item using the following;
 
<pre>
 
<pre>
 
{
 
{
Line 23: Line 23:
 
}
 
}
 
</pre>
 
</pre>
All 3 properties must be included and both kind and accessory cannot be blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Clothing" for the game to recognise it is an article of Clothing. The "accessory" is the code of an [[Accessory]] in which you want to spawn. The "palette" property is the code of the [[Palettes|Palette]] you want to apply, you can leave it blank to just have it apply the default palette, but it must still be included. Be sure to only put a palette that can be used for the item, as other palettes will crash the game.
+
All 3 properties must be included and both kind and accessory cannot be blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Clothing" for the game to recognise it is an article of Clothing. The "accessory" is the code of the [[Accessory]] in which you want to spawn. The "palette" property is the code of the [[Palettes|Palette]] you want to apply, you can leave it blank to just have it apply the default palette, but it must still be included. Be sure to only put a palette that can be used for the item, as other palettes will crash the game.
  
  
Line 36: Line 36:
  
  
A string containing the type of item of the design the blob will be referring to.
+
A string containing the type of item the blob will be referring to.
  
  

Revision as of 03:38, 10 July 2017

Items are fairly broad in their types. Each type has it's own properties and uses. This page is for items that can be worn, Clothing Items.

Clothing Items are all items that have the following line;

"kind": "staxel.item.Clothing",

Clothing Items contain only two pieces of information, the accessory to wear and the palette to colour that accessory. Otherwise they act like a normal item.


Creating a Clothing Item

Unlike Craft Items, Clothing Items are automatically generated from Accessories. You cannot make the item yourself (i.e. Create an "*.item" file) as the game will not be able to generate it properly. As such you will have to rely on "*.accessory" files to create clothing items.


Spawning in a Clothing Item

As it is not possible to create a proper Clothing Item, you can create a clothing item using the following;

{
  "kind": "staxel.item.Clothing",
  "accessory": "your.accessory.here",
  "palette": "your.palette.here"
}

All 3 properties must be included and both kind and accessory cannot be blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Clothing" for the game to recognise it is an article of Clothing. The "accessory" is the code of the Accessory in which you want to spawn. The "palette" property is the code of the Palette you want to apply, you can leave it blank to just have it apply the default palette, but it must still be included. Be sure to only put a palette that can be used for the item, as other palettes will crash the game.


Example Input: {"kind": "staxel.item.Clothing", "accessory": "staxel.accessories.characters.accessories.tiaras.GoldTiara", "palette": "" }


Config Options

"kind"

Valid options (String): A unique string which type of item this object is.

This page is referring to staxel.item.Clothing to view other types of items head to Category:Item Modding


A string containing the type of item the blob will be referring to.


"accessory"

Valid options (String): The code to an Accessory file

Default Value: No default value is specified. Always need to provide your own.


A string containing which accessory you want to spawn.


"accessory"

Valid options (String): The code to an Palette file

Default Value: No default value is specified. Always need to provide your own. A Blank value (i.e. "") is acceptable and will lead to using the default palette.


A string containing which palette you want the accessory to spawn with. Be sure the accessory can use this palette, otherwise it can cause issues.