Log in

View Full Version : How do I add units?



jfun23
03-31-2008, 01:23
Specifically what I'm trying to do is add some siege engines to a stack (playing as Romani). It's early in my game yet, and I'm guessing siege engines won't be available for a while, but I'd like to get a little practice time in assaulting walled cities before the real thing hits. Do I still use the create_unit cheat? If so, where are the unit ID numbers, and how do I use them in the cheat (a specific example would help, if it's possible...I don't take instruction very well :dizzy2: ). This is my first post here, so I'd also like to congratulate the mod team on a superlative job. It strikes me that "mod" isn't really the right word; this is really a new game entirely, and I'm in awe of anyone who could produce such a thing. Thanks!

MarcusAureliusAntoninus
03-31-2008, 08:23
The code is:
create_unit "<settlement or character>" "<internal unit name>" # experience weapon armor
...such as:
create_unit "Pella" "hellenistic heavy infantry pezhetairoi" 5 9 3 3
...would give five Pezhetairoi with max experience and upgrades.

I think seige units are something like "generic 1 talent". Check the EDU for the names of all the units.

jfun23
03-31-2008, 17:24
Ah...I was using the unit #, not the name. Thanks much for the reply.

Obelics
03-31-2008, 17:29
just profiting of this thread, how can i do to add money to faction X, for example i want to add money to Pahlava, im Roma. Also is there a way to create an enemy army in your country, id like to recreate a Hannibal army.
Any suggestion is much appreciated (please write it simple:beam: ).

MarcusAureliusAntoninus
03-31-2008, 21:22
To add money to Pahlav the code would be:
add_money parthia, 40000
It is impossible to use the in-game codes to create an army from scratch. Though you can add unit to an existing enemy army the same way you would add units to your own. You can also use the the "move_character" cheat to move preexisting enemy armies into your territory.

Spartan198
04-01-2008, 03:43
How do you word where you want to move a character? Do you use internal coordinants,or do you use the name of the region/city?

Korlon
04-01-2008, 03:58
Open up the console and move your mouse to where you wish to move your character to. Type in show_cursorstat in the console and it'll give you the coordinates. As you probably have guessed, it uses the coordinate system. Just don't try dropping the general in a city or the sea/ocean/lake/pond/etc.

pezhetairoi
04-01-2008, 06:47
You CAN, however, create units in a city and hope the enemy moves them out. A sort of very clumsy counterpoint if you over-create armies for the AI is to add money to yourself, teleport a diplomat there and bribe their butts off.

For example, that's how I fueled the Casse expansion in Gaul, by teleporting their invasion force of two fullstacks, and once they settled down, I kept creating armies of 5-6 units of gaeroas and calawre in Britannia, and when they marched out of the city, teleported them over into Gaul, until their borders had stabilised. Hint: don't do that for Baktria though, they have a very bad habit of sitting very tight in their cities rather than coming out. I think it must be the faction personality.

Korlon
04-01-2008, 06:57
Isn't it always Baktria that dominates the eastern part of the map though? I hardly think just sitting on their asses would allow them to get all those provinces even with the weakness of the horse archers in auto resolves.

Obelics
04-01-2008, 19:09
thanks for the tips people, now suppose i see a chartaginian general called, dont know, "Hamilcar The Punic", how can i do to add 4 unit of Punic-Fenician spearmen, 2 of Hiberian assaults, 2 of Afrikan infantry, and a sacred band? and chevrons and armour too? suppose 3 bronzet chevrons, and bronze armour.

Thanks to who will have the pazience!

Korlon
04-02-2008, 15:37
First you'd have to find his surname. Then just do create_unit "Hamilcar surname" unitID x 3 1 1. Surname might be Barca. x being number of units up to 5. The 1s are the armor and weapons. I don't remember which one's weapon and which one's armor, but if you had a blacksmith, you'd probably get both anyhow. 3's for 3 bronze chevrons. You'd have to find the unit IDs from the EDU.

QuintusSertorius
04-30-2008, 23:51
I don't know what it is with my game and some of the cheats, but I just get an error every time I try to use create_unit.

For example I put in:

create_unit Sala african skirmisher javelinmen 2 0 0 0

And it just says err: unit not recognised. I've got a long list of ones I'd copied out of the descr_names.txt (which are the same as the type in the EDU) and none of them work. Get the same error every time, it doesn't recognise the names of the units I put in.

I'm trying to boost the Sab'yn garrisons in settlements I gave to them, and also in Spain boost Qarthadastim garrisons so they might try to conquer Spain.

Any ideas?

Korlon
04-30-2008, 23:55
Put quotes around the unit's name if it's longer than one word, which is pretty much true for every unit in EB. Same for cities if necessary.

QuintusSertorius
04-30-2008, 23:55
Ah, I'll give that a try. Thanks!

Tellos Athenaios
05-01-2008, 04:43
If you need help with the exact phrasing/syntax of console commands/cheats you can type a question mark (?) as prefix to your command.

Example (> is a common abreviation of the start of an input line on a command prompt):
>?toggle_fow
>?create_unit
>?process_cq

And the command prompt should respond with a brief explanation of what the code you entered does; as well as it's syntax fromat -- each argument is enclosed by tags (<) & (>).

QuintusSertorius
05-01-2008, 09:20
It was the quotation marks for long unit names that did the trick.

I still can't get the move_character command to work, always says the destination tile is invalid.