Q: Combat bonus vs promotion (species)

jenks

Prince
Joined
Jan 9, 2006
Messages
494
Location
Yorkshire, UK
Can anyone tell me how to get combat bonuses vs units with a specific promotion to work?
I dont want to use vs combat_class cause I would like the unit to have two categories, a unit type (say infantry) and a species (e.g. Borg)

Based basically on what id seen in FfH (e.g. +40% vs. orcish or vs. elvish), i've set up individual promotions for each species but how do I get a promotion to give a combat bonus against units with a specific (species) promotion?

Cheers
 
This currently involves SDK work. Kael accomplished this by setting in the C++ code certain attack modifiers based on promotions. I believe he has this as one of his sample code entries in his thread in the Tutorials section.

I sure wish someone would make generic code to allow for anti-promotion promotions in the XML ...
 
We actually dont use that anymore. Chalid rewrote it as a generic anti-promotion mechanic that allows us to set all those values in xml.

If you are really nice you may be able to talk Chalid into releasing a modpack that does it (though it is an sdk change) or petition the community enhancement project to get the feature added to the next version.
 
Noooooo Kael, I hope that's not you using IE ... try Firefox instead!
 
I'll resease as soon as i have a lager amount of time available. It is mixed with so much other code at the moment that the generation of some clean code is rather difficult.

But if you would need to merge it by yourself anyway i can post a file that contains what i have changed tomorrow (again you might see some references to ffH but it should be useable anyway).
 
Top Bottom