Results 1 to 8 of 8

Thread: Adding & Removing Units via Console Command

  1. #1
    Βασιλευς και Αυτοκρατωρ Αρχης Member Centurio Nixalsverdrus's Avatar
    Join Date
    Jan 2007
    Location
    Γερμανια Ελευθερα
    Posts
    2,321

    Default Adding & Removing Units via Console Command

    Hi,

    I fought a huge battle but unfortunately the game ctd'ed afterwards. So I replayed the battle with "auto_win defender", but you all know that the computer doesn't fight so well as you do. So I need to remove a bunch of Apeleutheroi fellas from Sidon.

    How do I add or remove units via console command? What do I have to type in?

    add_unit "apeleutheroi" Sidon
    remove_unit "apeleutheroi" Sidon

    How about that? Thank you.

  2. #2
    :.:: Member Connacht's Avatar
    Join Date
    May 2008
    Location
    Where I end and you begin
    Posts
    148

    Default Re: Adding & Removing Units via Console Command

    As far as I know the "auto_win" command works only with automatically resolved battles, not if you choose to command directly your army.

    For adding unit, the command is:

    create_unit City/Character "internal name of the unit" #,#,#,#

    The internal name of the unit is displayed in the export_descr_units file, in example the one of the freed slaves is "generic militia" if I don't remember bad, while for elite Seleucid phalanxes it is "hellenistic infantry argyraspidai". The four # aren't required and you can leave them, but if you want to create more units and choose their experience and weaponry upgrade they should be replaced with numbers.
    So in example:

    create_unit Rome "roman infantry polybian triarii" 3,8,2,1

    This creates in Rome three Triarii with eight xp levels (two gold mark), two levels of upgrader armor (silver) and one level of upgraded weapon (bronze).
    If you simply write:

    create_unit Rome "roman infantry polybian triarii"

    You'll get one clean triarius without upgrades.
    You can add any unit you want unless the stack is full, but you need to give units to a city or to a character, you can't create an army from nothing in the map.

    Again as far as I know, there isn't a remove_unit cheat, so enemy units must be killed in the traditional way. However your units can be disbanded by right clicking on them and pressin the specific button on the left of their scroll.

    I hope I cleared your doubts. ;)
    Last edited by Connacht; 07-27-2008 at 19:12.
    You're an island of tranquillity in a sea of chaos.



    O! Plus! Perge! Aio! Hui! Hem!

  3. #3
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Adding & Removing Units via Console Command

    The "remove enemy unit cheat" is to create a unit by script (or easier, add_money if you can spare the recruitment slot in a city), then teleport it over and use auto_win, finally disbanding the extra created unit.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  4. #4
    Βασιλευς και Αυτοκρατωρ Αρχης Member Centurio Nixalsverdrus's Avatar
    Join Date
    Jan 2007
    Location
    Γερμανια Ελευθερα
    Posts
    2,321

    Default AW: Adding & Removing Units via Console Command

    Thank you for the detailed explanation Connacht.

    Bovi, sorry I don't get what you mean.

  5. #5
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Adding & Removing Units via Console Command

    *Create a unit or select one from a city you own
    *Teleport it to the enemy army that you want gone
    *Auto_win to win the battle against the enemy you want gone
    *Disband your teleported unit.
    *Add money to recompense for the unit you sent to do the work

    Voila! You have cheated and the enemy unit is removed.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  6. #6
    Βασιλευς και Αυτοκρατωρ Αρχης Member Centurio Nixalsverdrus's Avatar
    Join Date
    Jan 2007
    Location
    Γερμανια Ελευθερα
    Posts
    2,321

    Default AW: Adding & Removing Units via Console Command

    OK, but the problem is that auto_win does not delete the enemy units. There are always soldiers left and the enemy just retreats in most cases.

    What's the cheat for teleporting?

    move_character "xxx" ###,### ###,###

    that way? What when the unit has a captain?

  7. #7
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Adding & Removing Units via Console Command

    move_character "Captain Carrot" x,y

    Does it matter that he has a unit with 10 people left? Anyway, that's as close as you get. It's a workaround.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  8. #8
    Βασιλευς και Αυτοκρατωρ Αρχης Member Centurio Nixalsverdrus's Avatar
    Join Date
    Jan 2007
    Location
    Γερμανια Ελευθερα
    Posts
    2,321

    Default AW: Adding & Removing Units via Console Command

    Do Makedonians use internal names? Or just "Menelas Argeades" with space between the names?

    show_cursorstat is the command to find out the coordinates, right?

    Sorry for buggering. I just slaughtered that slave scum in Sidon yesterday btw.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO