Results 1 to 7 of 7

Thread: Comprehensive boolean building conditional testing

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

    Default Comprehensive boolean building conditional testing

    Ok, has this been done to date? Specifically, I really need to know what happens in the following cases:

    (building or unit) requires factions { blah, blah,} AND a AND b AND NOT c OR d AND e AND NOT f OR g

    How, exactly, do the OR operators affect this? Has anyone done any comprehensive testing? Or would be willing to?
    Cogita tute


  2. #2

    Default Re: Comprehensive boolean building conditional testing

    For example, does "A" or "B" and etc represent say.. Marian_reforms, or "X" building, or "X" population and whatnot? And will these be in expor_descr_unit and expor_descr_building?

    Finals are over and I'm going to have a clear week till next weekend with all the free time in the world, before a day to travel back and more free time, but I'm going to need a bit of direction pointing to get started as I don't have a great amount of experience modding the files besides small little personal adjustments.

    So it would be a better idea to get a more experienced person to do this, but if needed I could do various experiments with regular vanilla and report any findings to help light the way.

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

    Default Re: Comprehensive boolean building conditional testing

    A and B represent any building or unit conditional. An easy thing to test might be some combination of hidden resources. So "and hidden_resource A" and so on. Or "and building_present_min_level complex_name building_level." Really, any conditional that works.

    Cheers!
    Cogita tute


  4. #4

    Default Re: Comprehensive boolean building conditional testing

    I can't say i have done extensive tests on this, nor that this is something have used to great extent, but from my limited experience, the game engine reads the code like this:

    (building or unit) requires ( factions { blah, blah,} AND a AND b AND NOT c ) OR ( d AND e AND NOT f ) OR ( g )

    I haven't done any tests with this bit exactly, but I would be pretty sure that that's how the game reads it.

    Dark89

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

    Default Re: Comprehensive boolean building conditional testing

    If that's the case (interpreting NOT then AND then OR), that's perfect. We could do anything we wanted with it.
    TWC Administrator

    MediaWiki Developer

  6. #6
    Custom User Title Member zukenft's Avatar
    Join Date
    Aug 2005
    Location
    afrika borwa
    Posts
    82

    Default Re: Comprehensive boolean building conditional testing

    Havn't modded EDB for a while...does brackets work in RTW though?

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

    Default Re: Comprehensive boolean building conditional testing

    Nope. We wish.
    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