Modeling and Evaluating Unit Stats in Historical Strategy Games
A practical framework for evaluating unit strength in historical strategy games, moving beyond single-stat judgments to a structured, multi-attribute model. It covers core combat, mechanic, deployment, and economy stats; armor penetration math; range and initiative windows; melee survivability; pre-battle deployment such as obstacles; unlock rules and cost efficiency; a weighted scoring function; and automated simulation for balance testing. The goal is to help designers make more stable balance decisions and preserve meaningful strategic differentiation between units.
Modeling and Evaluating Unit Stats in Historical Strategy Games
1. From “Unit Strength” to Multi-Attribute Evaluation
In historical strategy games, unit evaluation is often oversimplified into claims like “high attack means strong,” “high armor means tanky,” or “long range means advantage.” From a developer’s or balance designer’s perspective, however, this kind of single-stat judgment hides the real complexity of combat. Whether a unit is actually strong usually depends on what it faces, when it is deployed, whether it can break armor, whether it can claim positions early, and whether it offers economic or upkeep advantages.
For this reason, unit evaluation should evolve from a “one-line verdict” into a structured model. A structured model breaks a unit’s attributes into configurable, computable, and verifiable dimensions, then evaluates them across different combat scenarios. For example, a ranged unit might have low attack but possess armor penetration; a gunpowder unit might have impressive stats but short range; a low-cost unit might deal limited damage but have low upkeep, fast replenishment, and the ability to handle garrison and line-filling duties. Only by bringing all these factors into a unified framework can designers avoid misjudgments such as “strong on paper, weak in practice” or “looks weak, but very strong in the right scenario.”
2. Building a Unified Unit Attribute Model
To evaluate units, you first need a unified unit data model. A fairly complete unit model typically includes four categories: base combat attributes, mechanic attributes, deployment attributes, and economy attributes.
Base combat attributes include ranged attack, melee attack, melee defense, armor, range, move speed, reload time, and similar values. They determine how a unit performs in direct engagements.
Mechanic attributes include armor penetration, the ability to deploy obstacles or caltrops, accuracy modifiers, counter relationships, morale, fatigue, and so on. These attributes often do not appear directly on the stat panel, yet they can significantly change real combat outcomes.
Deployment attributes include pre-battle positioning, formation changes, terrain adaptability, and siege equipment carrying. Some units are valuable not because they win duels, but because they can change the rules of the battlefield before combat even begins.
Economy attributes include recruit cost, upkeep, garrison contribution, replenishment speed, unlock conditions, and more. A unit with extremely low upkeep may hold high overall value in large-scale wars even if its damage output is average.
The following pseudocode describes a generic unit structure:
Unit {id: stringcategory: "ranged" | "melee" | "cavalry" | "artillery"ranged_attack: numbermelee_attack: numbermelee_defense: numberarmor: numberarmor_penetration: numberrange: numberreload_time: numbermove_speed: numberupkeep: numberrecruit_cost: numbercan_deploy_obstacle: boolunlock_event: stringbarracks_level: number}
The value of this model is that it turns “strength judgment” into “attribute-combination judgment.” Armor penetration, for instance, does not exist in isolation; its actual payoff depends on attack, range, and reload time together. Likewise, range is not standalone; its value depends on move speed, reload time, and the enemy’s time to close the distance to determine the initiative window.
3. Abstracting and Calculating Armor Penetration
Armor penetration is one of the common combat mechanics in historical strategy games. It is often used to solve the problem of “high-armor units being hard to defeat with regular ranged or infantry attacks.” Different designs use different implementations, such as flat armor reduction, percentage armor reduction, a chance to ignore armor, or bonus damage after penetration. To stay general, the following illustrative formula shows how armor penetration affects damage calculation.
Assume the target’s armor is armor and the attacker’s penetration ratio is penetration. A simplified model first computes effective armor:
effective_armor = target.armor * (1 - attacker.armor_penetration)
The armor then participates in damage reduction. To prevent armor from reducing damage without limit, designers usually set a cap or introduce an armor coefficient:
damage_reduction = effective_armor / (effective_armor + armor_constant)final_damage = attacker.ranged_attack * (1 - damage_reduction)
Here, armor_constant is an important parameter for tuning the armor payoff curve. Its role is to prevent high-armor targets from becoming completely unkillable, and also to prevent armor-penetration units from gaining excessive value against low-armor targets.
From this model, you can see that armor-penetration units become markedly more efficient against heavy-armor targets, because effective armor is greatly reduced. But against low-armor or unarmored targets, the penetration payoff drops. If you only compare the two words “armor penetration,” it is easy to overestimate a unit’s strength. What really needs evaluating is this: given how large a share of the enemy force is heavy armor, is the penetration payoff significant enough; and when the enemy fields many unarmored units, will this unit become a weak “chip-damage” dealer because of its low attack.
This is also where many unit evaluations go wrong. An armor-penetrating ranged unit might perform very well against heavy infantry, but against light skirmishers, militia, or numerous low-armor units, its damage efficiency may be unremarkable. Therefore, armor penetration must be calculated within target composition and scenario weighting.
4. Range, Initiative Windows, and the Short-Range Problem
Range is one of the lifelines of a ranged unit. A range difference is not merely about “how far it can shoot”; it decides whether a unit can gain extra output windows before the enemy closes in. Suppose two ranged units have ranges of 120 and 160 respectively; the latter can usually fire earlier when facing the former. If the enemy’s move speed is limited and reload time is long, the range advantage can be converted into several free shots.
A simplified initiative-window judgment can be expressed as:
if attacker.range > target.range:free_shot_window = time_for_target_to_enter_range(attacker.range - target.range)else:free_shot_window = 0
In a real system, time_for_target_to_enter_range is related to move speed, pathing, terrain, formation, and obstacles. Therefore, range evaluation cannot look only at the numerical gap; it must also consider both sides’ time to close.
If a high-attack ranged unit has short range, it may deal more damage per shot, but if the enemy’s elite ranged unit has longer range, it may already have taken losses before it can fire. In that case, high attack may not compensate for the range disadvantage. Conversely, a unit with longer range but lower per-shot output may accumulate a health advantage through the initiative.
Range evaluation should therefore include three levels: first, the theoretical range difference; second, the sustained output frequency created by reload time; and third, battlefield closing speed and terrain modifiers. Only by combining all three can you judge whether a ranged unit truly has suppression capability.
5. Melee Capability, Line-Holding Ability, and the Survival Boundary of Ranged Units
Ranged units are usually not built for melee. Even if a ranged unit has some melee capability, it should not be simply treated as a replacement for melee infantry. When evaluating a ranged unit’s melee value, the key question is not whether it can beat heavy infantry, but whether it can buy time, open distance, or hold off the enemy after being caught.
If a ranged unit has only very low melee defense, it can collapse quickly against heavy infantry. Even if its ranged output is decent, once its formation is broken, its overall value drops sharply. Therefore, melee defense and armor are more of a “survival floor” than a “core of victory” for ranged units.
Higher-tier ranged units may raise armor and melee capability, letting them hold out a bit longer against enemy infantry. But this kind of improvement usually changes the survival boundary, not the role. They still need front lines, terrain, obstacles, or covering fire. If designers mistakenly use a high-survival ranged unit as heavy infantry, an obvious tactical mismatch appears.
A simple survival judgment can illustrate this:
if enemy_melee_charge and unit.melee_defense < required_threshold:unit.survival_time = base_survival * modifier
Here, required_threshold represents the critical value of the current enemy melee pressure. This idea helps designers understand that a ranged unit’s value is not isolated, but comes from its value within a system.
6. Deployment Ability: The Value of Caltrops, Obstacles, and Pre-Battle Setup
Pre-battle deployment ability is a mechanic that is easy to undervalue. Some ranged units have mediocre output but can place caltrops or obstacles before the battle begins, reducing the effectiveness of enemy cavalry charges. This kind of ability changes the opening rules of the battle, giving otherwise fragile units extra protection.
From a systems perspective, deployment ability can be seen as a “pre-battle state modifier.” It does not increase a unit’s direct attack, but it may raise the unit’s survival rate at key phases. Pseudocode can be expressed as:
if battle_phase == "deployment" and unit.can_deploy_obstacle:battlefield.obstacles.append(unit.obstacle_type)if enemy.charge and obstacle_in_path:charge_damage *= obstacle_reduction_factorenemy.move_speed *= obstacle_slow_factor
The design value of these units lies in “changing the enemy’s action efficiency” rather than raw output alone. They may not win a straight frontal clash, but through deployment they can force the enemy to change attack routes, reduce the payoff of charges, or buy output time for their own side.
Therefore, when evaluating units, deployment ability should be listed separately with scenario weights. For example, on a battlefield with many enemy heavy cavalry, the deployment weight rises; in an open-ground ranged duel scenario, the deployment weight may be low; in city defense or defensive terrain, deployment ability may become a core value.
7. Economy Attributes, Upkeep Costs, and the Positioning of Low-Cost Units
Unit evaluation cannot ignore the economy dimension. A unit with extremely low upkeep may offer higher cost-efficiency in a long war even if its per-unit output is limited. Conversely, an elite unit with complex unlock conditions and expensive upkeep must provide enough payoff in key battles; otherwise, its overall value is dragged down.
Low-cost units usually take on three kinds of tasks: filling numbers, maintaining order, and draining enemy resources. They may not decide victory, but they influence battle stability. A low-cost ranged unit without armor penetration deals limited damage against heavy-armor targets; but against unarmored targets, in situations of numerical suppression, or for garrison duties, it may still have practical meaning.
Therefore, when evaluating low-cost units, you should not only ask “can it beat elites,” but look at its marginal value within the overall army composition. The higher the marginal value, the more worth keeping it; if its marginal value is fully covered by high-cost units, it may face elimination.
A simplified cost-efficiency formula:
value = combat_contribution / recruit_cost + maintenance_efficiency + security_value
Here, combat_contribution is the unit’s combined output and survival contribution in typical scenarios, maintenance_efficiency represents the efficiency between upkeep cost and combat payoff, and security_value represents non-combat value such as order-keeping or replenishment. This avoids the bias of “evaluating units only by duel strength.”
8. Unlock Conditions, Event Triggers, and Config-Driven Systems
Many units are not available from the start; they are unlocked through barracks level, event triggers, or tech conditions. This means unit evaluation must also consider unlock cost and time windows. A unit that unlocks too late may have high strength but still miss the key phase of a campaign; a unit with too high an unlock threshold needs compensation through stronger mechanics or lower upkeep.
In engineering terms, unlock conditions should not be hard-coded into combat logic; they should be abstracted into configuration items. For example:
UnlockRule {unit_id: stringrequired_level: numberrequired_events: listavailability_by_faction: list}
The benefit of this design is that balance designers can independently adjust the unlock pace without modifying core combat code. For batch testing and automated verification, configuration also significantly improves iteration efficiency.
If a unit depends on event triggers, such as a gunpowder-related ranged unit, designers also need to evaluate the event’s trigger frequency, players’ strategic choices, and whether the enemy may obtain similar units. If event triggering is too random, unit strength evaluation becomes unstable. Therefore, the unlock system should be traceable, replayable, and reproducible as much as possible.
9. A Composite Scoring Function: Putting Multiple Dimensions into One Framework
After building the attribute model and resolution logic, you can introduce a composite scoring function. The scoring function is not the sole standard, but an auxiliary decision tool. Its role is to compress complex attributes into comparable metrics while preserving scenario weights.
A general scoring framework can look like this:
score =w_armor_pen * armor_penetration_value+ w_range * range_advantage+ w_melee * melee_survival+ w_economy * economy_efficiency+ w_deployment * deployment_value- w_unlock_cost * unlock_penalty
Different scenarios should use different weights. For example:
- On battlefields dense with heavy-armor infantry, raise
w_armor_pen; - On battlefields with frequent ranged duels, raise
w_range; - On battlefields with many enemy cavalry, raise
w_deployment; - In long wars of attrition, raise
w_economy; - In versions with a slow unlock pace, raise
w_unlock_cost.
The resulting score will not replace real combat testing, but it provides a more stable comparison baseline. Designers can first use the scoring function to filter out obviously unreasonable units, then validate them through simulated battles.
10. Automated Simulation and Balance Verification
As the number of units grows, it is hard to cover all combinations through manual playtesting alone. At this point, you need an automated simulation system. The basic idea is: read unit configurations, build two armies, run a large number of battles, and collect metrics such as win rate, trade ratio, survival time, output share, and cost efficiency.
A simplified simulation loop:
for scenario in scenario_set:for iteration in range(N):battle = create_battle(scenario.army_a, scenario.army_b)result = simulate(battle)collect_metrics(result)
Key metrics include:
- Win rate: the unit’s overall tendency to win or lose in the current scenario;
- Trade ratio: the ratio of unit losses to enemy losses;
- Initiative hits: whether the range advantage converts into actual payoff;
- Melee collapse time: how long the unit holds up after being caught in melee;
- Cost efficiency: the combat contribution delivered per unit of cost;
- Unlock value: the marginal improvement brought by unlocking the unit.
If conditions allow, the simulation service can be deployed on a container platform, using object storage to save configuration versions and battle replays, a message queue to schedule batch tasks, and logging and monitoring services to observe abnormal results. This kind of engineering approach does not change the balance goals, but it can significantly improve verification efficiency and traceability.
11. Common Pitfalls and Tuning Advice
First, do not look only at attack. High attack without the support of range, accuracy, or survival will have its practical value greatly reduced.
Second, do not stack armor penetration without limit. Armor penetration must have an armor cap, a damage floor, or target-type restrictions; otherwise, it can easily strip heavy-armor units of their reason to exist.
Third, do not ignore upkeep. The value of low-cost units often shows up in long wars and large-scale compositions.
Fourth, do not use ranged units as melee units. Even if some ranged units improve in melee, their ranged role should be preserved as the priority.
Fifth, do not ignore the unlock pace. A unit that unlocks too late needs stronger mechanics as compensation; otherwise, player perception will be poor.
Sixth, tuning should be done in small steps. Change only one key variable at a time, such as range, penetration ratio, or upkeep, then observe the layered results, avoiding multi-variable changes that make it impossible to pinpoint the cause.
Seventh, establish a baseline force. For example, heavy-armor infantry, light-armor ranged, unarmored numerical units, and elite ranged as test benchmarks. All new or modified units should be compared against the baseline force across multiple scenarios.
12. Summary
Unit evaluation in historical strategy games is essentially a system design problem under multiple objectives, multiple scenarios, and multiple constraints. Developers cannot stop at surface judgments like “this unit has high attack” or “that unit has armor penetration.” Instead, they should abstract unit attributes into configurable data models, turn combat resolution into reproducible logic flows, and verify through composite scoring and automated simulation.
Armor penetration, range, melee, deployment, economic cost, and unlock conditions together determine a unit’s true value. Only when designers can examine units from the angles of systems, scenarios, and costs can they make more stable balance decisions and let players feel the differentiated strategies between different units, rather than simple numerical strength
