Code: Select all
BuildingType
name = "BLD_MEGALITH"
description = "BLD_MEGALITH_DESC"
buildcost = 2500
buildtime = 10
location = And [
OwnedBy TheEmpire Source.Owner
TargetPopulation low = 1
]
effectsgroups = [
EffectsGroup
scope = Contains Source
activation = Source
stackinggroup = "BLD_MEGALITH_EFFECT"
effects = [
SetTargetConstruction Value + 30
SetEmpireCapital
SetTargetPopulation Value + 5
SetFarming Target.TargetFarming
SetMining Target.TargetMining
SetIndustry Target.TargetIndustry
SetTrade Target.TargetTrade
SetResearch Target.TargetResearch
]
EffectsGroup
scope = And [
OwnedBy TheEmpire Source.Owner
TargetPopulation low = 1
]
activation = Source
stackinggroup = "BLD_MEGALITH_EFFECT"
effects = SetTargetConstruction Value + 10
]
graphic = "icons/building/megalith.png"
Code: Select all
SetTargetConstruction Value + 30
Code: Select all
...SetTargetConstruction Value + 10
Code: Select all
TargetPopulation low = 1
Code: Select all
location = OwnedBy TheEmpire Source.Owner
And could you explane all that this does?
Code: Select all
Tech
name = "CON_GAL_INFRA"
description = "CON_GAL_INFRA_DESC"
short_description = "CONSTRUCTION_SHORT_DESC"
techtype = Application
category = "CONSTRUCTION_CATEGORY"
researchcost = 7500
researchturns = 1
prerequisites = "CON_ARCH_MONOFILS"
effectsgroups =
EffectsGroup
scope = And [
OwnedBy TheEmpire Source.Owner
TargetPopulation low = 1
]
effects = SetTargetConstruction Value + 20