Modding Key Terms

From wiki
Revision as of 09:01, 20 August 2017 by DeamonHunter (Talk | contribs) (Initial commit.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is a list of key terms that are used often in modding pages. This page will be edited as more values appear.


Variable Types

Blob

In terms of Staxel, "blob" is a generic term for anything that contains a number of properties. Blobs are always contained between { } . Every single new file you create is actually known as a blob, as each file will always start with { and end with } otherwise it would not work.


In terms of what this means when modding. A blob is just a collection of properties that can be edited. Whenever this term comes up, just know that it will make use of { }.


List of [Blank]

When writing files, you'll occasionally be asked to make a list of items. What this means is that you can specify multiple things that will generally all act the same. This comes up most times whenever a file can do multiple things. Files such as Treasures make use of this type heavily.

When making lists you will need to do the following;

"propertyName" : [
  item1,
  item2
]

All lists start with a property name as usual. This is followed up by the opening square bracket. Square brackets always denote a list. With that you can now add items. In a lot of cases this will be #Strings that are seperated by commas. Each comma is needed to specify a new item will follow afterwards. (Though it is fine to have a final comma with no item.) After all of this, you can follow up with the closing square bracket to finish the list off.

An example of this would be;

"particles" : [
  "staxel.particle.dirt.Dirt",
  "staxel.particle.dirt.Dirt2"
],


String

A string is anything that is a collection of letters. Strings can take any valid string characters, with only a couple exceptions. A string will always be encased in quotation marks. An example is provided below;

"propertyName" : "This is a string. It allows anything that is normal text. Even, The quick brown fox jumped over the lazy dog."