Results 1 to 5 of 5

Thread: Self-replenishing units

  1. #1
    Merciless Mauler Member TheLastPrivate's Avatar
    Join Date
    Jul 2007
    Location
    South Korea
    Posts
    336

    Default Self-replenishing units

    How do I give a unit a self-replenishing property like the general units or the unique units in M2TW:Kingdoms?

    I'm trying to add them to a unique unit with a unit cap of 1, but is not a general's bodyguard unit.


    Gae Ma Ki Byung:
    Possibly the earliest full-armored heavy cavalry in human history, deployed by the Goguryeo from the 3rd century A.D.

  2. #2

    Default Re: Self-replenishing units

    By far the easiest way would be to make it a general unit.

    It may be possible to script in a monitor, but I'm not entirely sure, and it would take quite a script if it is.

  3. #3
    Merciless Mauler Member TheLastPrivate's Avatar
    Join Date
    Jul 2007
    Location
    South Korea
    Posts
    336

    Default Re: Self-replenishing units

    Oops, I think this is the wrong forum. Was tryign to post it in the questions forum..

    anyhow, so the "General_Unit" trait gives them a self-replenishing property?


    Gae Ma Ki Byung:
    Possibly the earliest full-armored heavy cavalry in human history, deployed by the Goguryeo from the 3rd century A.D.

  4. #4

    Default Re: Self-replenishing units

    Yes, but there are a couple things to consider..
    1 - When a general is created on the campaign map the game reads the export_descr_unit.txt top to bottom and gives it the first body-guard unit found for that faction. So if you dont want your new unit to be the default bodyguard just make sure it comes after the unit you do want to be the bodyguard type.
    2 - This unit will be a general just like any of your other generals who will gain/lose traits etc, it also means if the general dies the unit is gone after the battle. Also like other generals he will have more hp then a regular 'captain'

  5. #5
    Death and Glory TW modder Member Flying Pig's Avatar
    Join Date
    Dec 2007
    Location
    Looking for a place to land...
    Posts
    313

    Default Re: Self-replenishing units

    What does the attributes line for a unique unit look like?
    Death And Glory TW Needs You - Sign Up Now! All it takes is one PM!

    Ὦ ξεῖν', ἀγγέλλειν Λακεδαιμονίοις ὅτι τῇδε
    κείμεθα, τοῖς κείνων ῥήμασι πειθόμενοι.

    Ō zein', angellein Lakedaimoniois hoti tēide
    keimetha tois keinōn rhēmasi peithomenoi.

    Go, thou that passeth, to the Spartans tell
    That as per their orders, here we fell.

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