seZereth
Feb 10, 2006, 03:13 AM
is it possible to change the unit graphics when a unit promotes, like adding another man to the formation, for giving them 10% strength or adding a man with a spear for giving the unit a bonus against cavallery ? ? ?
if it is, tell me how. i only can imagine doing it by paying the gold for updating a unit. but that isnt really what i want :)
Belizan
Feb 10, 2006, 03:21 AM
Well, it's obscenely ugly, but...
You could define a number of looks for your unit, and then, onPromotionReceived (or whatever it's called), switch base unit types as appropriate.
I.e. make 4 version of the warrior...
warrior
warrior_with_4_units
warrior_with_spear
warrior_with_4_units_and_spear
All with the same stats, only different art def info. Then replace the unit with the new unit when it receives the appropriate promotion. I shouldn't have to tell you how ugly or bloated this can get if you start adding a number of distinctive looks, but... You *can* do it.
Other then that. Wait for the SDK, I guess :/.
seZereth
Feb 10, 2006, 10:37 AM
thanks, thats what i thought ;) it is much work, lets see, perhaps i will do something like an rpg-style mod, where i only have to work out the whole "promotion graphics" for some hero regiments or something like this...
The Great Apple
Feb 10, 2006, 04:00 PM
This is one of the things I am cetainly going to work on when the SDK comes out, unless I can convince somebody who actually knows C++ to do it :p