buildings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
buildings [2018/08/17 10:00] – [Link Data to Script] polymorphgames | buildings [2021/10/21 13:28] (current) – removed maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Buildings ====== | ||
- | Here is an exemple of how to declare a new fountain building. | ||
- | Buildings are ensemble of building parts. Simple buildings have only one part. | ||
- | |||
- | ===== Scripts ===== | ||
- | Declare the building: | ||
- | <code lua> | ||
- | myMod: | ||
- | DataType = " | ||
- | Id = " | ||
- | Name = " | ||
- | Description = " | ||
- | BuildingType = " | ||
- | BuildingPartList = { " | ||
- | --VillagerRequired = { Status = " | ||
- | }) | ||
- | </ | ||
- | |||
- | Declare the building part: | ||
- | <code lua> | ||
- | myMod: | ||
- | DataType = " | ||
- | Id = " | ||
- | Description = "", | ||
- | ConstructorData = { | ||
- | DataType = " | ||
- | CoreObjectPrefab = " | ||
- | }, | ||
- | BuildingZone = { 5, 5 }, | ||
- | ConstructionVisual = " | ||
- | Cost = { | ||
- | UpkeepCost = { | ||
- | { Resource = " | ||
- | }, | ||
- | RessourcesNeeded = { | ||
- | { Resource = " | ||
- | { Resource = " | ||
- | } | ||
- | } | ||
- | }) | ||
- | </ | ||
- | ===== Data ===== | ||
- | TODO | ||
- | |||
- | ===== Link Data to Script ===== | ||
- | TODO | ||
- | <code lua> | ||
- | myMod: | ||
- | myMod: | ||
- | </ | ||
- | |||
- | ===== Text and Localization ===== | ||
- | TODO | ||
- | |||
- | ===== Construction Steps ===== | ||
- | TODO |
buildings.1534514457.txt.gz · Last modified: 2018/08/17 10:00 by polymorphgames