Technology Design by Jason Bishop

http://wildfiregames.com/~code/techs.zip

Example:

 <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
    
 <Tech
      Parent="template_tech"
 >
    <ID>
        <Generic>Improved Architecture</Generic>
        <Specific>Willow Reeds</Specific>
        
        <Icon>sheet_tech_shared</Icon>
        <Icon_Cell>13</Icon_Cell>
        
        <Classes>Buff</Classes>
        
        <Rollover></Rollover>
        <History></History>
    </ID>
    
    <Req>
        <Time>120</Time>
        <Resource>
                <Food>50</Food>
                <Wood>80</Wood>
                <Stone>90</Stone>
                <Ore>10</Ore>
        </Resource>
        <Entity>
                <civil_centre>
                <market>
                <female_citizen>
        </Entity>
        <Tech>
                <tech_shared_phase_city>
                <tech_shared_food_gather_1>
        </Tech>
    </Req>
    
    <Effect>
        <Target>
                <infantry_spearman>
                <Infantry />
                <Organic />
        </Target>
        
        <Pair>tech_shared_wood_gather_1</Pair>
        
        <Modifier>
                <Traits>
                        <Gather>
                                <Speed>10</Speed>
                        </Gather>
                        <Health>
                                <Max>-5</Max>
                        <Health>
                </Traits>
        </Modifier>
    
        <Set>
                <Traits>
                        <ID>
                                <Specific>Somebody Else</Specific>
                        </ID>
                </Traits>
        </Set>
    </Effect>

ID

BRIEF DESCRIPTION :: This group of properties identify the tech. Those that are used for techs are exactly the same as their counterparts for entities. (Possibly could inherit the structure?)

Generic

BRIEF DESCRIPTION :: Generic name used to refer to the tech across all civs; usually inherited from a shared template.

Specific

BRIEF DESCRIPTION :: The civ's unique name for this tech. If none is specified, the generic name is displayed by the GUI.

Icon

BRIEF DESCRIPTION :: Either the name of an icon sheet containing this icon, or a single portrait image.

Icon_Cell

BRIEF DESCRIPTION :: The cell index of the icon in the icon sheet.

Classes

BRIEF DESCRIPTION :: List of names that describe this tech, which could be used elsewhere to refer to a category of techs. eg Buff, Phase, or Upgrade.

Rollover

BRIEF DESCRIPTION :: Tooltip text that describes this tech in game mechanics terms.

History

BRIEF DESCRIPTION :: Interesting description of the history behind this text, used by manual.

Req

BRIEF DESCRIPTION :: This category of properties define the requirements of the tech, such as how many resources it will cost to research, and what buildings must first be constructed for it to become available.

Time

BRIEF DESCRIPTION :: The amount of time it will take to research this tech.

Resource

BRIEF DESCRIPTION :: Contains names of resources, and the amount of this resource that will be deducated to research the tech.

Entity

BRIEF DESCRIPTION :: Contains template name of entities (building or unit) that the player must currently have on his battlefield in order to quality for the tech.

Tech

BRIEF DESCRIPTION :: Contains template name of techs that the player must currently have on his battlefield in order to quality for the tech.

Effect

BRIEF DESCRIPTION :: This category of properties define what effect will occur when the tech is active.

Target

BRIEF DESCRIPTION :: Contains a list of entity templates which will be affected by this tech.

Pair

BRIEF DESCRIPTION :: The name of the tech which is this tech's pair. Tech pairs are mutually exclusive; if the player researches one tech, its tech pair will no longer be researchable for the remainder of the game.

Modifier

BRIEF DESCRIPTION :: Lists properties that are modified by the tech, and the value of the modifier. (A positive value adds this modifier to the property. A negative value reduces the value of the property by this amount.)

Set

BRIEF DESCRIPTION :: Lists properties that are set by the tech, and the new value of the property.

Last modified 9 years ago Last modified on Feb 23, 2008, 4:18:58 AM