Jagged1971
Chieftain
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...)
<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...
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...