Faustmouse
Deity
- Joined
- Jan 31, 2012
- Messages
- 3,524
I looked at the tutorial and I made a code up like this:
Power should be impossible to store on normal plots. Cities are able to store a little power. Is it possible that they store more with a certain building or a tech?
Then, we'd need places where it gathers (and decays). This would be cities and some improvements.
The Factory Line, Cottage Line, Vertical Farms (they also should produce some energy, maybe?), Modern Mines, Routes past electrical Railroads, Wells... Will complete the list.
Some improvements will produce energy: Windmills (past electricity), Solar Pannels, Offshore Windparks (to be added), Geothermal Factory... They will spread it to cities.
Looks good so far?
Code:
<PropertyInfo>
<Type>PROPERTY_ELECTRICITY</Type>
<Description>TXT_KEY_PROPERTY_ELECTRICITY</Description>
<Strategy>TXT_KEY_PROPERTY_ELECTRICITY_STRATEGY</Strategy>
<ValueDisplayText>TXT_KEY_PROPERTY_ELECTRICITY_DISPLAY</ValueDisplayText>
<ChangeDisplayText>TXT_KEY_PROPERTY_ELECTRICITY_CHANGE</ChangeDisplayText>
<ChangeAllCitiesDisplayText>TXT_KEY_PROPERTY_ELECTRICITY_CHANGE_ALL_CITIES</ChangeAllCitiesDisplayText>
<PrereqMinDisplayText>TXT_KEY_PROPERTY_ELECTRICITY_PREREQ_MIN</PrereqMinDisplayText>
<PrereqMaxDisplayText>TXT_KEY_PROPERTY_ELECTRICITY_PREREQ_MAX</PrereqMaxDisplayText>
<bSourceDrain>1</bSourceDrain>
<iAIWeight>100</iAIWeight>
<AIScaleType>AISCALE_CITY</AIScaleType>
<iOperationalRangeMin>0</iOperationalRangeMin>
<iOperationalRangeMax>1000</iOperationalRangeMax>
<FontButtonIndex>0</FontButtonIndex>
<PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_DECAY</PropertySourceType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_CITY</GameObjectType>
<iPercent>4</iPercent>
</PropertySource>
<PropertyPropagator>
<PropertyPropagatorType>PROPERTYPROPAGATOR_DIFFUSE</PropertyPropagatorType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_CITY</GameObjectType>
<TargetObjectType>GAMEOBJECT_CITY</TargetObjectType>
<TargetRelationType>RELATION_TRADE</TargetRelationType>
<iPercent>5</iPercent>
</PropertyPropagator>
<PropertyPropagator>
<PropertyPropagatorType>PROPERTYPROPAGATOR_DIFFUSE</PropertyPropagatorType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_CITY</GameObjectType>
<TargetObjectType>GAMEOBJECT_PLOT</TargetObjectType>
<TargetRelationType>RELATION_NEAR</TargetRelationType>
<iTargetDistance>10</iTargetDistance>
<iPercent>0</iPercent>
</PropertyPropagator>
<PropertyPropagator>
<PropertyPropagatorType>PROPERTYPROPAGATOR_DIFFUSE</PropertyPropagatorType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_PLOT</GameObjectType>
<TargetObjectType>GAMEOBJECT_CITY</TargetObjectType>
<TargetRelationType>RELATION_NEAR</TargetRelationType>
<iTargetDistance>10</iTargetDistance>
<iPercent>90</iPercent>
</PropertyPropagator>
<PropertyPropagator>
<PropertyPropagatorType>PROPERTYPROPAGATOR_DIFFUSE</PropertyPropagatorType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_PLOT</GameObjectType>
<TargetObjectType>GAMEOBJECT_PLOT</TargetObjectType>
<TargetRelationType>RELATION_NEAR</TargetRelationType>
<iTargetDistance>10</iTargetDistance>
<iPercent>90</iPercent>
<Active>
<Is>TAG_OWNED</Is>
</Active>
</PropertyPropagator>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_DECAY</PropertySourceType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_PLOT</GameObjectType>
<iPercent>100</iPercent>
</PropertySource>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_DECAY</PropertySourceType>
<PropertyType>PROPERTY_ELECTRICITY</PropertyType>
<GameObjectType>GAMEOBJECT_CITY</GameObjectType>
<iPercent>90</iPercent>
</PropertySource>
</PropertyManipulators>
</PropertyInfo>
Power should be impossible to store on normal plots. Cities are able to store a little power. Is it possible that they store more with a certain building or a tech?
Then, we'd need places where it gathers (and decays). This would be cities and some improvements.
The Factory Line, Cottage Line, Vertical Farms (they also should produce some energy, maybe?), Modern Mines, Routes past electrical Railroads, Wells... Will complete the list.
Some improvements will produce energy: Windmills (past electricity), Solar Pannels, Offshore Windparks (to be added), Geothermal Factory... They will spread it to cities.
Looks good so far?