1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Stupid question regarding improvements

Discussion in 'Civ4 - Creation & Customization' started by Iceciro, May 6, 2010.

  1. Iceciro

    Iceciro Special Ability: Decimate

    Joined:
    Jul 12, 2006
    Messages:
    1,944
    Location:
    in ur empire, takin ur cities
    Hey. I cannot find this anywhere and it's absolutly drivin' me nuts (yarrr). Where is the field located that sets the technology prerequisites for a given improvement? It doesn't seem to be in improvementinfos, or techinfos. I've been modding forever, but I've literally gone through all the xml looking for this to change it in something that irritates me. A little help? 0_o
     
  2. El_Salmun

    El_Salmun Chieftain

    Joined:
    May 5, 2010
    Messages:
    23
    Location:
    Belgium
    Have u looked at Civ4BuildInfos.xml?

    it contains the preqs for the building action for improvements, like for example the windmill:

    <BuildInfo>
    <Type>BUILD_WINDMILL</Type>
    <Description>TXT_KEY_BUILD_WINDMILL</Description>
    <Help/>
    <PrereqTech>TECH_MACHINERY</PrereqTech>
    <iTime>500</iTime>
    <bKill>0</bKill>
    <ImprovementType>IMPROVEMENT_WINDMILL</ImprovementType>
    <RouteType>NONE</RouteType>
    <EntityEvent>ENTEVENT_BUILD</EntityEvent>
    <FeatureStructs>
    <FeatureStruct>
    <FeatureType>FEATURE_JUNGLE</FeatureType>
    <PrereqTech>TECH_IRON_WORKING</PrereqTech>
    <iTime>400</iTime>
    <iProduction>0</iProduction>
    <bRemove>1</bRemove>
    </FeatureStruct>
    <FeatureStruct>
    <FeatureType>FEATURE_FOREST</FeatureType>
    <PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
    <iTime>300</iTime>
    <iProduction>30</iProduction>
    <bRemove>1</bRemove>
    </FeatureStruct>
    </FeatureStructs>
    <HotKey>KB_W</HotKey>
    <bAltDown>0</bAltDown>
    <bShiftDown>1</bShiftDown>
    <bCtrlDown>0</bCtrlDown>
    <iHotKeyPriority>0</iHotKeyPriority>
    <Button>,Art/Interface/Buttons/Builds/BuildWindMill.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,5,8</Button>
    </BuildInfo>

    this may be what u're looking for, hope it helped :) .
     
  3. Iceciro

    Iceciro Special Ability: Decimate

    Joined:
    Jul 12, 2006
    Messages:
    1,944
    Location:
    in ur empire, takin ur cities
    Hallelujah! Thank you sir.
     

Share This Page