• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Colonies Mod

washy

Chieftain
Joined
Feb 9, 2015
Messages
61
Hello, im working in a mod that add Colonies, it´s an outside border improvment that let you have distant luxuries, but i didn´t found a way to add the luxuries outside border, because this improvment isn´t tied to a city.

First I try with this in the improvementClass
Code:
<aeResourceCityEffect>       
            <Pair>
                <zIndex>RESOURCE_WINE</zIndex>
                <zValue>EFFECTCITY_GIVE_WINE</zValue>
            </Pair>           
        </aeResourceCityEffect>

Then i tried adding a effect player adding this in the Improvment
<EffectPlayer>EFFECTPLAYER_GIVE_WINE</EffectPlayer>

Code:
<Entry>
        <zType>EFFECTPLAYER_GIVE_WINE</zType>
        <Name>TEXT_GIVE_WINE</Name>
        <SourceImprovement>IMPROVEMENT_WINE_COLONY</SourceImprovement>
        <CapitalEffectCity>EFFECTCITY_GIVE_WINE</CapitalEffectCity>
    </Entry>

But because its outside borders its not working (if i do the same inside borders it work)

The other solution maybe its creating a event that trigger when you build the colony that give you the luxury, but the i have to make more events for when they pillage and you rebuild.

Somebody know a better path?
 
if you put expand borders property to an improvment outside your borders nothing hapend, so i think it has to be contiguous
 
  • Like
Reactions: PiR
Back
Top Bottom