WikiWiki
Home
  • Getting Started
  • Wiki
  • Creating Your Own Items
Home
  • Getting Started
  • Wiki
  • Creating Your Own Items
  • Content

    • Creating Your Own Items
    • Custom Items
    • Creating Soldier POIs
    • Adding new Teams
    • Item Set Types
    • Tags
    • Examples
    • Item Properties
    • Soldier Attributes
    • Common Values

Common Values

This page provides an overview of commonly used values in Clay Soldiers Remake JSON files, including their formats, examples, and how to use them

Color

In Clay Soldiers Remake, color values in JSON files can be specified in two formats:

  • Hex Code: A string in the format #RRGGBB.
  • Integer: A numeric representation of the hex code.

Important

The " are required for hex-color to work, this "color": "#RRGGBB", however this "color": #RRGGBB would not work.

Example: Setting the Color Orange

For example, the color orange has the hex code #FFA500. When converted to an integer, #FFA500 becomes 16753920. This can be represented in two ways:

Hex Code
{
  "color": "#FFA500"
}
Integer
{
  "color": 16753920
}

Both of these formats will produce the exact same color effect in game.

Special Color: Jeb_

There is also a unique color option called "jeb_". When used, it creates a rgb effect.

{
  "color": "jeb_"
}

Chance

Chance values determine the likelihood of an action occurring. They are specified as:

  • Number: A value between 0.0 (never happens) and 1.0 (always happens).
  • String: You can use predefined values like "never" (equivalent to 0.0) or "always" (equivalent to 1.0).

Examples

Number
{
  "cahnce": 0.5 // -> 50% 
}
String
{
  "cahnce": "never" // -> 0%
}

Time

Time values in Clay Soldiers Remake can be expressed in two formats:

  • Ticks: An integer, where 1 second equals 20 ticks.
  • Seconds: A string in the format "<number>s".

Both formats are interchangeable and yield the same results.

Conversion Note

1 second = 20 ticks.

Ticks
{
  "time": 25 // -> 1,25 Seconds
}
Seconds
{
  "time": "3s" // -> 3 Seconds
}
Last Updated:
Contributors: XcraX1
Prev
Soldier Attributes