Modding: Buildings

From Surviving the Aftermath Wiki
Jump to navigation Jump to search

Building Template[edit]

Name Usage
Script Non-editable
ID ID number given to the building. Must be unique.
Name Localization key for building's name
Priority The smaller the number, the greater the priority this building gets when several are being built (example: Water Well has Priority: 1, so it's built first)
Big Icon/Icon 2D image this building has in the UI, big and small versions

Script: Non-editable

ID: ID number given to the building. Must be unique.

Name: Localization key for building's name

Priority: The smaller the number, the greater the priority this building gets when several are being built (example: Water Well has Priority: 1, so it's built first)

Big Icon/Icon: 2D image this building has in the UI, big and small versions

Build Resource: Which building materials player needs to construct it

Resources[edit]

  • Size: Number of different resource types
  • Element 0/1/2 etc.: Entry header
  • Type: Type of the building resource (like Metal or Plastic)
  • Value: Amount of those resources

Repair Resource[edit]

  • Type: Type of the resource used in repairs
  • Value: Amount used to repair the building (doesn't scale with amount of damage)

Destruction Resources[edit]

  • Size: Number of different resource types
  • Element 0/1/2 etc.: Entry header
  • Type: Type of the resource gained when Salvaging the building
  • Value: Amount gained when Salvaging

Category: Which Build Menu category this building belongs to (Housing, Storage, Food, Energy etc.)

Menu type: What type of an entry it is (Building, Road, Deconstruct)

Models[edit]

  • Size
  • Element 0/1/2 etc.: Entry header
  • Visual
  • Brush Visual
  • Constructions
  • Size
  • Element 0/1/2 etc.: Entry header
  • Destruction Model

Placement type:

Decal Enabled: Does the building use the default ground decal underneath it (default: yes)

Tile Editor[edit]

Tiles

Editor[edit]

  • B: Blocked, building uses this tile
  • N
  • Reverse C:
  • N: Water
  • S: Shore, this tile must be on the water (for example Fishing Hut)
  • R

Building properties[edit]

ResourceStorage

DestroyBuildingProperty

CorpseStorageProperty

TradeProperty

SchoolProperty

ScavengerProperty

ResourceTransformProperty

Housing

Global Resource Storage Property

Global Resource Production Property

Global Resource Consumption Property

Global Disaster Forecast Property

GateProperty

FieldProperty

Entertainment

HealInjury

Work Paths[edit]