Results 1 to 4 of 4

Thread: is it possible to make a unit unique?

  1. #1
    Viceroy of the Indian Empire Member Duke Malcolm's Avatar
    Join Date
    Oct 2003
    Location
    Dùn Dèagh, the People's Republic of Scotland, the United Kingdom of Great Britain and Ireland.
    Posts
    2,783

    Default is it possible to make a unit unique?

    Is it possible to make a trained or mercenary unit unique, i.e. only one of the unit can be recruited?
    It was not theirs to reason why,
    It was not theirs to make reply,
    It was theirs but to do or die.
    -The Charge of the Light Brigade - Alfred, Lord Tennyson

    "Wherever this stone shall lie, the King of the Scots shall rule"
    -Prophecy of the Stone of Destiny

    "For God, For King and country, For loved ones home and Empire, For the sacred cause of justice, and The freedom of the world, They buried him among the kings because he, Had done good toward God and toward his house."
    -Inscription on the Tomb of the Unknown Warrior

  2. #2
    EB insanity coordinator Senior Member khelvan's Avatar
    Join Date
    Sep 2002
    Location
    Oakland, CA
    Posts
    8,449

    Default Re: is it possible to make a unit unique?

    Mercenary, I think so. I believe in the mercenaries file you can set the values for initially available and frequency separately. So you may be able to have 1 available and none ever appear again, making the unit unique.

    On building them, no, unless you have some rather elaborate scripts running in conjunction with traits, and even then I don't know if you could do it.

    You could simply never add the unit to the building capabilities to be built, and have it exist at the start of the game....that would make it unique.
    Cogita tute


  3. #3
    Member Member Stuie's Avatar
    Join Date
    Aug 2001
    Location
    Upper Gwynedd, PA
    Posts
    406

    Default Re: is it possible to make a unit unique?

    Quote Originally Posted by khelvan
    On building them, no, unless you have some rather elaborate scripts running in conjunction with traits, and even then I don't know if you could do it.
    The script wouldn't have to be too elaborate. Just have a unique building with a script that spawns the unit when the unique building is built. The script could even be written such that it would only trigger once (so the player cannot destroy the building, build it again and get another unit).

    Of course this assumes that the player's faction is the one building the building/unit... getting the AI to build it would be a bit more involved.

    But khelvan's merc idea is a lot easier.

  4. #4

    Default Re: is it possible to make a unit unique?

    Actually, you wouldn't necessarily need the building either. The complexity of the script would all depend on exactly when and where you wanted to place the unit. The simplest one would be the creation of the unit in a specific city in a specific date for the player. The most complicated would involve a variety of different triggers, citing the unit in different places and giving it to the AI (which you'd be best off having a background script for, unless the player's willing to go along with it).
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

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