PDA

View Full Version : A method for creating stand alone heroes or unique units!



Oromë
03-06-2005, 18:13
I just devised this relatively simple method for those who would like to see powerful heros or other certain 'individuals' represented on the battlefield.
Since there is a hardcode on the minimum amount of men in a unit we technically cannot have less than 6. To get around simply make a new unit with the entire texture map alpha'd out, so that they are totally invisible on the battlefield.
Now that everyone is invisible it would apear that the unit has no men, unless we have some officers, of which we are allowed up to three I believe. This allows us to create units with less than 6 men, with a maximum of three and a minimum of one.
If you were wanting to make a lone hero type unit simply do the following, plus any other necessary adjustments:

-create an invisible unit model as well as the desired officer hero model.
-create the two necessary entries in descr_models_battle.txt. One for the invisible model and one for the hero.
-create the necessary entry in the export_descr_units.txt. Make sure that the unit you created is the invisible model and that the hero model is set as officer.
-create the proper description entries as well as unit card icons to represent your hero. Instead of the picture of the unit you could use a portrait so that your unit looks for FM'ish and more eye-catching and important than regular units, because really the only thing visually differentiating the FM's from the regular units in the game are the portraits..

Thats basically it. Your unit moves and acts as any other regular unit on the campaign map but has the apearance of an FM unit. On the battlemap it works like any other unit as well except it would have to be made apporpriately uber in order to compete.
Of course there are some side effects since we had to essentially cheat the game engine to get this done, but they are pretty minimal:

- the invisible part of the unit will still have weight, volume and attack value, as well as the most notable effect of casting ground shadows from the invisible soldiers. This can be minimized and is hardly noticable as long as the unit size is set to its absolute minimum of 6 (so you may have to play on normal unit size setting in-game and offset that by adjusting the normal unit level sizes to be larger in the export_descr_unit.txt file)
- since this FM styled hero unit is really just a regular unit it wont age or die of old age, so it is essentially immortal unless it dies in battle; this could be a good thing or a bad thing depending.

Hope that helps anyone batting around this idea. I know its been mentioned a few times now and for some reason this idea popped into my head so I thought Id mention it.

Myrddraal
03-06-2005, 20:20
Yeah but you will get people attacking the invisible units...

Here is another method I thought of, though it requires much more work. Using Vercintorix's animation extractor, make a new mount which looks like a pair of disembodied legs which walk around.

Then place 5 invisible riders on the mount and one visible rider who looks like a disembodied torso....

The problem with this is that if the general is with this unit he will sort of ... merge ... into the hero.

eadingas
03-06-2005, 22:14
Not to mention hilarious effect of visible rider getting killed, while five others live :)

Myrddraal
03-06-2005, 22:48
I didn't think of that ~:)

Dimitri
03-07-2005, 02:57
Why not make all the riders invisible, and use the "mount" as the hero. Mounts can have their own attacks, and the riders can be given no weapons at all, so it theroretically would work like a single man.

The only problem with the mount idea, is that if it becomes the captain unit, the game will put an officer on his shoulders.

Myrddraal
03-07-2005, 11:02
But does the mount actually attack, I thought it just sits there whilst the rider hits.

GodsPetMonkey
03-07-2005, 12:09
Ever seen an elephant charge?

Certian mounts do, others do not, elephants and chariots for example have their own stats and take part in combat. Normal horses and camels on the other hand do not (effectively sharing HP and armour stats with the rider.... I guess)

Myrddraal
03-07-2005, 13:27
Duh!

I can't believe I forgot about elephants!

Maybe someone should try out this idea. I know that hoggy wanted some hero units, and anything which makes blue lotus better has got to be worthwhile...

eadingas
03-07-2005, 13:36
Isn't it possible, IIRC, to mark the unit as _not_ being a leader unit?