I was wondering if it was possible to make some of the Generals in the game have bodyguard on foot? Don't know where this post should be so feel free to move it. Thank you
I was wondering if it was possible to make some of the Generals in the game have bodyguard on foot? Don't know where this post should be so feel free to move it. Thank you
It should be in Medieval 2 -> Mod Workshop -> Text Editing and Scripting
But anyway, this is a very simple process assuming that your data files are unpacked. You first need to decide what foot unit you want to be your general's bodyguard. Then you need to go into export_descr_units.txt and give them the general_unit attribute. So, for example, let's say I'm playing as England and I want Billmen to be my general's bodyguard unit. I would find their entry in export_descr_unit
Spoiler Alert, click show to read:
Then add what I've bolded to attribute line. When you get a new general, the game automatically chooses the first entry of a "general_unit" in that file to use as his bodyguard. So when you assign your new bodyguard unit, make sure the unit entry is above the old bodyguard unit in the file.
If you want to change your starting bodyguard units, you need to go into data/world/maps/campaign/imperial_campaign/descr_strat.txt and do that. Find the part where all your starting characters are listed and change their bodyguard from something like this:
Spoiler Alert, click show to read:
To something like this depending on what unit you want as the bodyguard.
Spoiler Alert, click show to read:
Last edited by kevindrosario; May 02, 2011 at 05:20 PM.
ThanksSo i can have a different Bodyguard for different Generals?
Only for the starting generals. Any generals you get during the course of the game will receive the default bodyguard unit, which is the one closest to the top of the export_descr_unit file.
But like Prestige said, you could make different types of bodyguard units recruitable.
There's a unit called "Ne_Dismounted_Bodyguard" already in the EDU (export_desrc_units) file. It's near the bottom of the list, near the special character units like "Duke William" and "King Harold" etc...
I'm pretty sure the faction ownership is only for Scotland, france, england, denmark, hre, and maybe a few more of them I forget -- it isn't all the factions.
It's a heavily armored unit that looks a like dismounted broken lances, only with the smaller size shields. In game, if you edit the Buildings File, you can set it so they're recruited - I'm pretty sure body guard units already come with a Character on their own... The game I play has regular Bodyguard recruited and they come as a character with retinues and can buy mercs etc -
For the generals you start out with, data/world/maps/campaign/imperial_campaign/descr_strat.txt. For the generals that spawn from a script data/world/maps/campaign/imperial_campaign/campaign_script.txt. For the generals that you get throughout the campaign either through adoption or coming of age, data/export_descr_units.txt
This is answered in post 2 I think: change the first "unit" under the general in export_descr_strat.txt.
Similarly for when doing it via script using spawn_army. The first "unit" is the bodyguard...
Code:spawn_army faction sicily character Cammiron, named character, age 30, x 123, y 100 unit Gondor Bodyguard exp 2 armour 1 weapon_lvl 0 ..other units in army... end
could you also explain how can an ordinary roster unit be turned into a BG unit with it's own stats ? i just want to use it for more variety of starting generals (don't want to mesh up the spawning ones for now)
so..
1...do i just have to copy-paste the entry for "unit" ,change the title to "unit_BG" (in both type and dictionary entry)
2...tweak the stats according to my preferences
3....set "recruit_priority_offset" to 0 (so that it doesn't become a recruitable roster unit)
and that's it ?
(4)..maybe "no custom" (in order to not jam the custom battle menu) too ?
...and what about "general_unit" ? i guess i don't have to put it in order to not interfere with the usual one ?
EDIT
what about right-click > unit card ? (i guess even though the above seems correct ,it would "get stuck" on not having a card..so what other files besides EDU and descr_strat do i need ?