Results 1 to 30 of 44

Thread: Complex conditionals for recruiting and building

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Wandering Historian Member eadingas's Avatar
    Join Date
    Nov 2004
    Location
    Llanfairpwll- gwyngyll- gogerych- wyrndrobwll- llantysilio- gogogoch
    Posts
    4,714

    Default Re: Complex conditionals for recruiting and building

    But I want different conditions for different factions.
    I'm still not here

  2. #2

    Default Re: Complex conditionals for recruiting and building

    I am trying to get some conditional info also. Are time trigger conditionals available? Now, early legionary cohorts are triggered by the Marian Reform event. Can anyone tell me how to include a no earlier than date(around 105 BC) to the original requirement of any Roman faction building an imperial palace? I also want to cause my (later) legionary cohorts to become available with a foundry and a time trigger(apprx 50 BC). Any help would be greatly appreciated!

  3. #3

    Default Re: Complex conditionals for recruiting and building

    Sorry for the slow reply. Been very busy lately. No there ar no date triggers. Sorry. THe only thing that approximates a date trigger is requiring an additional advanced building and then figuring out the date at which this level of development would be possible.

    As to having different conditions for different factions the best way is to use completly seperate recruitment lines. You can have multiple lines for the same unit so put each fractions requirments on its own line.

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

    Default Re: Complex conditionals for recruiting and building

    Just a FYI, we have found that you can string quite a few of these together in the same line with no problems at all, and achieve expected results. So you can get pretty damn complex in defining areas to recruit units, for instance.
    Cogita tute


  5. #5

    Default Re: Complex conditionals for recruiting and building

    Quote Originally Posted by khelvan
    Just a FYI, we have found that you can string quite a few of these together in the same line with no problems at all, and achieve expected results. So you can get pretty damn complex in defining areas to recruit units, for instance.
    Alas, I confirmed the hard way today that no nested evaluation of these complex conditionals is possible.

    Capability1 requires A and (B or C)

    must be expressed as

    Capability1 requires A and B
    Capability1 requires A and C

    where the or is implicit between the two lines.
    "Let us wrestle with the ineffable and see if we may not, in fact, eff it after all." -Dirk Gently, character of the late great Douglas Adams.

  6. #6
    Spends his time on TWC Member Simetrical's Avatar
    Join Date
    Dec 2004
    Location
    New York City
    Posts
    1,358

    Default Re: Complex conditionals for recruiting and building

    But other forms of complex conditionals may be possible, right? "Capability1 requires A and B or C" is probably being parsed as "Capability1 requires (A and B) or C". Or do you have evidence against this? It would be very helpful if someone felt like testing how the computer parsed complex conditionals.

    By the way, might it be a good idea for someone to edit down blitz576's post? It's extremely long and completely irrelevant—those lists are only used for show_me scripts, traits, and ancillaries, not recruitment or building.

    -Simetrical
    TWC Administrator

    MediaWiki Developer

  7. #7

    Default Re: Complex conditionals for recruiting and building

    I've been playing around with ZOR hidden resources for most of the day. I haven't got very far with comprehending the parsing, but this is what I have discovered:

    1. Capability1 requires A and (B or C) worked for me as intended with A as a faction, and B and C as hidden resources with the effect that the unit will appear where either the B resource or the C resource is present. I didn't use any brackets though.

    2. Capability1 requires A and not B and not C also works in that the unit will not appear where either resource B or resource C is present.

    3. Capability1 requires A and not B or not C however appeared not to function as expected or cancelled itself it. The unit appeared where both B and C were present.

    A few other things:

    4. The marian_reform tag has to go at the end if it's going to be used, you can't leave it in the middle.

    5. If you leave the faction blank then the programme will take its reference from export_desc_unit thus the following

    Code:
                    recruit "warband sword briton"  0
    will still allow the unit to be available to the britons.

    Other requirments can be added on as well:

    Code:
                    recruit "warband sword briton"  0  requires hidden_resource A
    will put the unit in any British province contain resource A.

    6. And the double spacing around the experience number and before the and hidden_resource tags doesn't seem to matter too much. I've used single spacing and it's been fine.
    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

  8. #8
    Member Member Periklis's Avatar
    Join Date
    Sep 2004
    Location
    Athens
    Posts
    54

    Default Re: Complex conditionals for recruiting and building

    Quote Originally Posted by eadingas
    But I want different conditions for different factions.
    In that case you have to make two lines one for the romans and one for the greeks with different conditions. If you look in RTR files you will understand.

  9. #9
    Wandering Historian Member eadingas's Avatar
    Join Date
    Nov 2004
    Location
    Llanfairpwll- gwyngyll- gogerych- wyrndrobwll- llantysilio- gogogoch
    Posts
    4,714

    Default Re: Complex conditionals for recruiting and building

    That post was 3 months old, we moved on since then a bit :)
    I'm still not here

  10. #10

    Default Re: Complex conditionals for recruiting and building

    Actually, the board uses the american dating system of putting the month first. Your post was made at the beginning of December, that's seven months ago!

    Was there even RTW modding back then?
    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

  11. #11
    Wandering Historian Member eadingas's Avatar
    Join Date
    Nov 2004
    Location
    Llanfairpwll- gwyngyll- gogerych- wyrndrobwll- llantysilio- gogogoch
    Posts
    4,714

    Default Re: Complex conditionals for recruiting and building

    Hmm then I think that was even before the period when I was the building coordinator for EB... prehistory :)
    I'm still not here

  12. #12

    Default Re: Complex conditionals for recruiting and building

    Does using "or" as a building conditional necessitate restating "factions (x,y,z,)"?

    In other words is example 1 the same as example 2?

    1. requires factions (x, y, ) and buildingalpha or buildingbeta

    2. requires factions (x, y, ) and buildingalpha or (x, y, ) and buildingbeta
    Last edited by Teleklos Archelaou; 10-02-2005 at 20:57.

  13. #13
    Spends his time on TWC Member Simetrical's Avatar
    Join Date
    Dec 2004
    Location
    New York City
    Posts
    1,358

    Default Re: Complex conditionals for recruiting and building

    Depends how it's parsed. If it's simple left-to-right parsing, what you'd want is "requires buildingalpha or buildingbeta and factions { x, y, }", because it would get parsed "requires ((buildingalpha or buildingbeta) and factions { x, y, })". It could also be right-to-left, in which case you'd want "requires factions { x, y, } and buildingalpha or buildingbeta" = "requires (factions { x, y, } and (buildingalpha or buildingbeta))". If it's using some other kind of parsing, God only knows.

    You'll have to try it out for yourself, really. And post the results here.
    TWC Administrator

    MediaWiki Developer

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