Editing Modding Tutorials/ThingDef
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | '''ThingDef''' is a def type for making entities, such as buildings and pawns (NPCs). | |
− | |||
− | = | + | ==Buildings== |
− | + | Buildings are static entities. They usually require construction and perform a special function. | |
− | = | + | ===Elements=== |
− | |||
− | + | ==Pawns== | |
− | + | Pawns are NPCs. | |
− | |||
− | + | ==Items== | |
+ | Items are anything that can be hauled, such as weapons, debris, or resources. | ||
− | = | + | ==Plants== |
− | + | Plants grow in growing areas, in the landscape, in a hydroponics table, or in a plant pot. | |
− | + | ===Elements=== | |
− | = | + | ==Filth== |
− | + | Filth is just an image that is overlaid above the floor. It contributes to the "ugly environment" thought in pawns. | |
− | = | + | ==Global elements== |
− | + | These elements can be used in all ThingDef types. | |
− | + | {| class="wikitable sortable" | |
− | + | ! scope="col"| Element | |
− | + | ! scope="col"|Function | |
− | + | ! scope="col"| Available options | |
− | + | |---- | |
− | + | ! scope="row"| category | |
− | + | |Designates a category to be used internally. | |
− | + | |Building, Pawn, Plant, Item, Filth | |
− | + | |---- | |
− | + | ! scope="row"| eType | |
− | + | |Provides a more specific description of an object. This may be equal to the category's name. | |
− | + | |Varies per category | |
− | + | |---- | |
− | + | ! scope="row"| thingClass | |
− | + | |Provides an attachment to an internal class in the code. | |
− | + | |Varies per category | |
− | + | |---- | |
− | + | ! scope="row"| selectable | |
− | + | |Specifies whether or not the item can be selected in the atlas. | |
− | + | |true, false | |
− | + | |---- | |
− | + | ! scope="row"| useStandardHealth | |
− | + | |Determines whether or not health will be calculated normally. (?) | |
− | + | |true, false | |
− | + | |---- | |
− | + | ! scope="row"| label | |
− | + | |User-friendly name of a Thing | |
+ | |String | ||
+ | |---- | ||
+ | ! scope="row"| textureFolderPath | ||
+ | |Specifies location of the textures (root folder is assumed to be Textures) | ||
+ | |String | ||
+ | |---- | ||
+ | ! scope="row"| altitudeLayer | ||
+ | |Influences whether pawns can walk through the Thing or must travel around it. | ||
+ | |Filth, DoorMoveable, BuildingTall, FloorEmplacement, Waist, Item, LowPlant, Projectile, Floor, PawnState | ||
+ | |---- | ||
+ | ! scope="row"| flammability | ||
+ | |Influences how likely it is for the Thing to catch fire and take damage. | ||
+ | |0 to 1.0 | ||
+ | |---- | ||
+ | ! scope="row"| maxHealth | ||
+ | |Sets the maximum health of the Thing (if applicable). | ||
+ | |Any value above 0 | ||
+ | |---- | ||
+ | ! scope="row"| tickerType | ||
+ | |Decides the tick type. | ||
+ | |Never, Normal (60 Ticks a second), Rare (1 Tick every 4.17 seconds or 1 tick every 250 normal ticks) | ||
+ | |---- | ||
+ | |} | ||
[[Category:Defs]] | [[Category:Defs]] | ||
− |