MTW Unit Prod File

From Totalwar.org
Revision as of 05:59, 19 July 2008 by Drone (talk) (Initial revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The unit_prod file for a campaign describes the cost, requirements, stats, and abilities of the units available within the campaign. The location of the unit_prod file for a specific campaign is specified the startpos file for the campaign, on the key line "Prodfiles::". For the main campaign, the unit_prod file is "Medieval - Total War\CRUSADERS_UNIT_PROD11.TXT", for the Viking Invasion campaign, the unit_prod file is "Medieval - Total War\VIKINGS_UNIT_PROD.TXT".

This file, along with the build_prod.txt file, essentially define the tech tree for the chosen campaign.

Contents

Column names and effects

These are the column described in the unit_prod file.

Name/Identifier

This is the internal name of the unit. The location files may give the unit a different name for the player.

Unit Type

Different capabilities based on the entries. Hardcoded abilities with ships and agents.

  • INFANTRY
  • ARTILLERY
  • CAVALRY
  • MOUNT
  • SHIP
  • ASSASSIN
  • SPY
  • EMISSARY
  • BISHOP
  • CARDINAL
  • INQUISITOR
  • GRAND_INQUISITOR
  • PRIEST
  • ORTHODOX_BISHOP
  • MULLAH
  • ULAMA
  • PRINCESS
  • CRUSADE
  • JIHAD

Cost Integer

The recruitment cost of the unit at the default size.

Support Cost Integer

Support cost factor of the unit. The total support cost per year will be this value, times the number of men in the unit, divided by 8, rounded down.

Production Time

Number of turns it takes to build the unit (not on huge sizes).

Starting Honour

Honour adjustment used for balancing. In the vanilla game, this is used to decrease the starting accuracy of certain siege weapons.

Unit Base Strength

A value used when determining the results of auto-calc'ed battles, retreat decisions, and morale adjustments.

Number of Men

Number of men in the unit when recruited at default size.

Honour Step Value

Number of kills necessary to level up valour for each man. Used to balance the valour leveling for certain units.

General Candidate

Used to determine the chances of a general present in unit.

  • PREFERRED
  • OK
  • DISCOURAGED

Rebelling Troop Mixes

Chances of the unit being present in various rebellion types.

Ruler ID Troop Advantage

Factions listed here get a recruitment discount on the unit.

Region ID Troop Advantage

Units built in the listed provinces get a +1 valour bonus.

Dojo Advantage

Not used.

Unit Choices (AI)

Affects the build choices of the AI factions based on AI faction personality.

Unit Specialty Building Influences

Not used.

Buildings Necessary

Building necessary in the province to recruit the unit.

Unit Class

Roles the unit can be good at.

Morale Bonus

No idea.

Applicable Periods

Periods that the unit is recruitable in.

  • EARLY
  • HIGH
  • LATE
  • ALL_PERIODS

Scaleable

Does the unit scale with the unit size selected for the game?

Stats and General Info

Columns denoting various features of the unit.

HEIGHT

RADIUS

SCALE

PROJECTILE_TYPE

SAMURAI

MARCH_SPEED

RUN_SPEED

CHARGE_SPEED

MIN_TURNSPEED

MAX_TURNSPEED

TURN_TO_MOTION_SPEED

MAX_INMOTION_TURN

FORMATION_WIDTH_SPACING

FORMATION_LENGTH_SPACING

ENGAGEMENT_THRESHOLD

CHARGE_BONUS

MELEE_BONUS

DEFENCE_BONUS

ARMOUR_LEVEL

HONOUR_LEVEL

AMMO

FORMATIONS_PREFERRED_NUM_ROWS

Invisible

Can the unit hide anyware?

Unit Specialties

No idea.

Tooltip Labels

Mainly used for agent tooltip designations, when the cursor is over a campaign map piece.

Mount Type

  • HORSE
  • CAMEL

Body Type

Faction Leader

If a faction is listed, that factions royals will use this unit to represent the leader and princes.

Faction Association

Factions that the unit is available to.

Region Label

Regions that the unit can be recruited/retrained in.

Formation Suitability

Determines where in the formations the unit will be placed.

Task Suitability

Roles.

Culture

Culture that the unit is available to.

Ship Info

Statistics of ship units.

Supporting Ranks

The number of ranks capable of supporting action in combat.

Morale Effects

  • DISCIPLINED
  • UNCONTROLLED

Unit Spacing

Shield Type

  • NONE
  • SMALL
  • LARGE
  • PAVISE
  • CAV

Melee with Shield

Can the unit use the shield in melee (add to defense value?)

Shield Modifier

Multiplier for the shield rating, used for balancing/graphics purposes.

Armour Piercing Weapon

Does the unit have an armour piercing melee attack.

Cavalry Attack Bonus

Unit attack bonus giving when fighting against cavalry. +1 for spearmen, +2 for pikemen, +3 for polearms/halberdiers.

Cavalry Defense Bonus

Unit defense bonus when fighting cavalry. +1 for polearms/halberdiers, +4 for spearmen, +6 for pikemen.

Feared Units

Units that this unit fears.

Zeal Effects

Affect on province zeal when the unit is situated in a province (agents only?).

Faith Effects

Affect on province religious faiths when the unit is situated in a province (agents only?).

Dismounts to

Unit type that a cavalry unit can dismount to.

Dismount in open battle

Can the unit dismount anytime, or just for siege battles.

Weapon type

Melee weapon type (for animations?)

  • SWORD
  • SPEAR
  • AXE
  • CLUB

Mercenary Unit

Can the unit be a mercenary, and during what period.


TBD - need better formatting and description text