Unit Classes/Combat

Gooblah

Heh...
Joined
Jun 5, 2007
Messages
4,282
I have a few specific questions. Thanks for any help!

1) What Unit Class is the Archer in? By this, I mean the Axeman is in the Melee Class, etc, etc, so is the Archer's Class Archer or Archery? I tried loading the mod and it told me Archery is an error, so...

2) When I modify UnitCombatDefense/Attack values, do I have to change it in the other unit as well? Also, can one of those values be negative?
Example: I want the Archer to have -25% defense when attacked by a Swordsman. So in UnitCombatDefense, I put in -25 for the value corresponding to Swordsmen (I got the rest right). Do I have to put +25% v Archer in the Swordsman area as well?

For those who are wondering, I am creating new stats for the Phalanx. They are:

Spoiler :

-replaces Axeman
-Greek Unique Unit
+100% defense v Chariots
+25% defense v Horse Archers
-50% attack v Archers
+50% attack v Melee Units


The point is that Chariots would be screwed by the long spears of the Phalanx. The Horse Archer would have similar problems, but could use arrows or fight on the ground since they could jump off the horse. When attacking Archers, they would charge, but would get assaulted by long-range when their shields are down due to the charge.
 
I have a few specific questions. Thanks for any help!

1) What Unit Class is the Archer in? By this, I mean the Axeman is in the Melee Class, etc, etc, so is the Archer's Class Archer or Archery? I tried loading the mod and it told me Archery is an error, so...

ARCHER

2) When I modify UnitCombatDefense/Attack values, do I have to change it in the other unit as well? Also, can one of those values be negative?
Example: I want the Archer to have -25% defense when attacked by a Swordsman. So in UnitCombatDefense, I put in -25 for the value corresponding to Swordsmen (I got the rest right). Do I have to put +25% v Archer in the Swordsman area as well?

No you don't have to put it on the other as well. And I have no idea about negatives, but it should be a wash since you don't need it on both.
 
I think you're confusing unit classes and unit combats. Axemen are not in the unit class called Melee. They're in the unit class called Axemen. They belong to a "Unit Combat Type" called Melee like Spearmen and Swordsmen.

The basic difference is this: Think of the unit class as being a subcategory of the unit combat.

For example: The Praetorian, Jaguar and the generic Swordsman units are all kinds of swordsmen. Therefore they're in the unit class called Swordsman. So when the program runs through all the different unit classes, it looks to see if a civilization has a special unit of that unit class. In the case of Rome, it will see that it's swordsman unit is the Praetorian, in the case of the Aztecs, the Jaguar, and for most others it will be just the generic Swordsman.

However, the Unit Combat Type for all three of these is Melee... but Melee also includes all the different types of axemen (unit class) and all the different types of spearmen (unit class).
 
Back
Top Bottom