Results 1 to 11 of 11

Thread: Idea: Scripted limits to unit recruitment?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Villiage Idiot Member antisocialmunky's Avatar
    Join Date
    Feb 2005
    Location
    ゞ( ゚Д゚)ゞ
    Posts
    5,974

    Default Re: Idea: Scripted limits to unit recruitment?

    Quote Originally Posted by Charge
    Doesn't you not need script at all to emulate this? EDB and limited numbers of unit per building (= per city size), and very low or off spawning frequency (not like vanilla's 0.5-2 units per turn) can do it too.
    This is different, its like agents. It makes it so you can't build units after you have a certain amount of them.
    Fighting isn't about winning, it's about depriving your enemy of all options except to lose.



    "Hi, Billy Mays Here!" 1958-2009

  2. #2
    A pipe smoker Member MiniMe's Avatar
    Join Date
    Dec 2006
    Location
    Moscow, Russia
    Posts
    453

    Default Re: Idea: Scripted limits to unit recruitment?

    Quote Originally Posted by Leão magno
    If this could be implemented...
    "if" is the key word here. I'm not sure whether my idea could be implemented at all. Only serious modders and scripters, not one of my kind (able only to mess with descr_mount, descr_model_battle, EDB, EDU) could answer this question.
    ...we would feel the diference between grand and small factions arise even more...
    quite the opposite. Currently AI priority is unit recruitment. If AI has 15 provinces and enough money (and through script he has), he will recruit 15 units. And next turn he will recruit another 15. And next turn he'll do the same. Heard of Grey Death Ultrastacks, did ye?
    ...how would the AI react to that limitation to all units?
    Just the way he reacts now in Crusades, when he's done recruiting Templar uniqe unit - he'll stop recruit them since there's no more such a possibility for him
    Quote Originally Posted by antisocialmunky
    It makes it so you can't build units after you have a certain amount of them.
    Yep, that's exactly what I was trying to say.
    Last edited by MiniMe; 11-10-2007 at 21:41.


  3. #3
    Member Charge's Avatar
    Join Date
    Jul 2007
    Location
    Russia
    Posts
    1,324

    Default Re: Idea: Scripted limits to unit recruitment?

    It makes it so you can't build units after you have a certain amount of them.
    Disable respawn (2nd i think number)

  4. #4
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Idea: Scripted limits to unit recruitment?

    Unfortunately you don't have a unit number condition, all you got is a unit exists condition. What you can do is to limit the pool to one unit max with some tricks but it's not really possible to limit it to, say, three units or four units (at least unless somebody proves me wrong).

  5. #5
    Member Charge's Avatar
    Join Date
    Jul 2007
    Location
    Russia
    Posts
    1,324

    Default Re: Idea: Scripted limits to unit recruitment?

    @alpaca


    I believe that if you limit number of units per building (=per city),
    recruit_pool "Demi Lancers" 2 0.5 2 0

    and set reappearance to 0 (or very low)
    recruit_pool "Demi Lancers" 2 0 2 0

    you will have limited amount of them which faction can train and have,
    but yet I haven't much testing with it. I suppose you can train new units when some have died, until you fullfill max unit numbers..

    This doesn't appear to mercenaries, etc..

    Explain please if I wrong

  6. #6
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Idea: Scripted limits to unit recruitment?

    Quote Originally Posted by Charge
    @alpaca


    I believe that if you limit number of units per building (=per city),
    recruit_pool "Demi Lancers" 2 0.5 2 0

    and set reappearance to 0 (or very low)
    recruit_pool "Demi Lancers" 2 0 2 0

    you will have limited amount of them which faction can train and have,
    but yet I haven't much testing with it. I suppose you can train new units when some have died, until you fullfill max unit numbers..

    This doesn't appear to mercenaries, etc..

    Explain please if I wrong
    Yeah thing is if you do this, you will get two units of these in every settlement, and then none again until infinity.

  7. #7
    A pipe smoker Member MiniMe's Avatar
    Join Date
    Dec 2006
    Location
    Moscow, Russia
    Posts
    453

    Default Re: Idea: Scripted limits to unit recruitment?

    Charge, I'm afraid Alpaca's right.
    Take a look at Crusades campaign script (I suppose, you have it),
    part "RECRUITMENT - UNIQUE UNITS"
    If they could have limit unique units recruitment your way, they wouldn't bother to write all that staff.


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