Great Combat General

Jagged1971

Chieftain
Joined
Jun 28, 2009
Messages
35
Location
The US
Putmalk has been a lot of help to me so far so I thought I'd throw this out there for its own thread.

I'm trying to make the Great General unit combat capable. They are simply Golden Age Starters for me right now and I thought I'd give this a try.

It's harder than it first appears. After looking at the code, I can't determine why it's not quite working but here's what happens:

He starts with the combat button in the lower left corner of the screen with the other move/start Golden Age/etc. commands. When he moves adjacent to an enemy and you hover the cursor over the enemy it shows your combat numbers. However, when you click... nothing happens. No fighting, and you no longer can see the combat numbers.

Here's the best I could come up with on my own: (With thanks to Putmalk for a couple values there...)
Spoiler :

<GameData>
<Units>
<Update>
<Set>
<Where Type="UNIT_GREAT_GENERAL"/>
<CombatLimit>100</CombatLimit>
<Combat>25</Combat>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Strategy>TXT_KEY_UNIT_SWORDSMAN_STRATEGY</Strategy>
</Set>
</Update>
</Units>
<Unit_AITypes>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
</Update>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<UnitAIType>UNITAI_DEFENSE</UnitAIType>
</Update>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<UnitAIType>UNITAI_EXPLORE</UnitAIType>
</Update>
</Unit_AITypes>
<Unit_Flavors>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>1</Flavor>
</Update>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>2</Flavor>
</Update>
<Update>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>2</Flavor>
</Update>
</Unit_Flavors>
</GameData>

I added the Flavors and AI types on a whim. They don't seem to have had any effect. I thought the issue might be the <combatlimit>0</combatlimit> initially, and wasn't sure how to deal with that, but Putmalk in another thread suggested the number be set to 100. (Combat units have no "combatlimit" number I could find, but he knew about it).

Anyway, thanks for anything anyone can offer! If it's not doable I'll just shoot the Great Generals and be done with them! ;)

Edit: Added spoiler tags. Didn't know anything about that before, sorry...
 
As a follow up to this I also have a question about a mod that has been on the hub since October of 2010.

It's listed as: "Gun Range Units, V5" by CrazyAce

This mod purports to add the bombard ability to gun units, however, I find that it is either broken (presumably due to patches) or just doesn't work at all.

This issue seems related to my Great Combat General in that simply changing xml code (assuming I'm doing that correctly) isn't adding combat abilities that the unit didn't start with.

I am both interested in adding a working version of this mod, and of course... the issue with the general.

Any help, input, or even getting directed to an existing document beyond the modding guide would be appreciated! :goodjob:
 
Back
Top Bottom