Results 1 to 16 of 16

Thread: [solved] EDB question: (!!!)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default [solved] EDB question: (!!!)

    i have this:
    Code:
            small_church_o city requires factions { eastern_european, slavic, } or factions { greek, } and event_counter byzantium_catholic_conversion 0  
            {
                convert_to 0
                capability
                {
                    agent priest  0  requires factions { eastern_european, slavic, greek, } 
                    agent priest  0  requires factions { eastern_european, slavic, greek, } 
                    happiness_bonus bonus 1
                    religion_level bonus 2
                    agent_limit priest 1
                }
                material wooden
                construction  1 
                cost  800 
                settlement_min town
                upgrades
                {
                    church_o
                }
    i have this building of a building tree....BUT i have this problem: when the counter is set to 1 (when playing with a faction of the greek culture) the building is still able to be built....

    is it because of the event_counter?? should it be written instead as "and not event_..... 1"????
    Last edited by SpyrosM91; October 27, 2012 at 08:08 AM.
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Yes, that sounds right.

  3. #3
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    ok, i wrote this:
    Spoiler Alert, click show to read: 

    small_church_o city requires factions { eastern_european, slavic, } or factions { greek, } and not event_counter byzantium_catholic_conversion 1
    {
    convert_to 0
    capability
    {
    agent priest 0 requires factions { eastern_european, slavic, greek, }
    agent priest 0 requires factions { eastern_european, slavic, greek, }
    happiness_bonus bonus 1
    religion_level bonus 2
    agent_limit priest 1
    }
    material wooden
    construction 1
    cost 800
    settlement_min town
    upgrades
    {
    church_o
    }
    }


    but the building does not appear at all... even before the counter is set to 1....
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Then, assuming your script is working, make a new event counter so it can read as 1.

  5. #5
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    thanks! that worked.... but i have another small problem:

    Spoiler Alert, click show to read: 

    cath_parish_c castle requires factions { southern_european, northern_european, eastern_european, } and building_present_min_level worship_catholic_castle small_chapel or factions { greek, } and event_counter byzantium_catholic_conversion 1
    {
    capability
    {
    happiness_bonus bonus 1
    pope_disapproval 1
    }
    material wooden
    construction 1
    cost 800
    settlement_min town
    upgrades
    {
    }
    }


    i have this other building, but for the converted byzantium, it doesn't work....
    for the other catholics it does, without any problem.... but for the byzies... there is an issue...

    PS: if i want to place the min_building for the byzies ( {greek, } ) also, where should i put it???
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  6. #6
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Quote Originally Posted by SpyrosM91 View Post
    i have this other building, but for the converted byzantium, it doesn't work....
    for the other catholics it does, without any problem.... but for the byzies... there is an issue...
    Looks like it should work, I'd suspect the issue is with your script.

    Quote Originally Posted by SpyrosM91 View Post
    PS: if i want to place the min_building for the byzies ( {greek, } ) also, where should i put it???
    After the 'or factions...' somewhere. Just like the code before the or.

  7. #7
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    Quote Originally Posted by Taiji View Post
    Looks like it should work, I'd suspect the issue is with your script.
    i don't think so.... the event_counter works without any problem... and also in other case, it shows that it works...

    i have it in another building and there isnt't any problem...:
    Spoiler Alert, click show to read: 
    small_church city requires factions {...othercatholicfactions..., } or factions { greek, } and event_counter byzantium_catholic_conversion 1
    {
    convert_to 0
    capability
    {
    agent priest 0 requires factions { normans, bosnia, austria, france, rhodes, }
    agent priest 0 requires factions { hungary, }
    agent priest 0 requires factions { papal_states, genoa, trinacria, naples, florence, venice, }
    happiness_bonus bonus 1
    religion_level bonus 1
    pope_disapproval 1
    agent_limit priest 1
    }
    material wooden
    construction 1
    cost 800
    settlement_min town
    upgrades
    {
    church
    }

    ----------------------------------------------------------------------------------------------
    while here it doesn't work for the byzies....


    cath_parish_c castle requires factions { southern_european, northern_european, eastern_european, } and building_present_min_level worship_catholic_castle small_chapel or factions { greek, } and event_counter byzantium_catholic_conversion 1
    {
    convert_to 0
    capability
    {
    happiness_bonus bonus 1
    pope_disapproval 1
    }
    material wooden
    construction 1
    cost 800
    settlement_min town
    upgrades
    {
    }
    }

    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  8. #8
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: EDB question:

    You can't use "not event_counter". If you want "not event_counter x 1" then use "event_counter x 0". And vice versa.

    But make sure that the event counter has been set to something at campaign start. If it has not yet been set to anything then it doesn't exist. And if it doesn't exist then EDB will interpret that condition as "true". i.e. Both "event_counter x 0" and "event_counter x 1" will be treated as true until such time as a "set_event_counter x 1/0" is carried out.

    In campaign_script just put "set_event_counter byzantium_catholic_conversion 0" somewhere, outside of any monitors. (Or use 1 if you want it to start as 1.)

  9. #9
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    @Withwar.... i had already taken care of that....
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  10. #10
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Building added properly for the Greek culture?

  11. #11
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    meaning??

    pics -not added (everywhere... not just in greek culture)..... but there isn't any problem
    text -kept the basic one for all cultures... but since the other cultures recognise it (i've tested it), there shouldn't be a problem with the greek description missing...


    {cath_parish_c} Parish
    {cath_parish_c_desc} E... on your territory.
    {cath_parish_c_desc_short} A parish is ...
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  12. #12
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Try this maybe:

    cath_parish_c castle requires factions { greek, } and building_present_min_level worship_catholic_castle small_chapel and event_counter byzantium_catholic_conversion 1 or factions { southern_european, northern_european, eastern_european, } and building_present_min_level worship_catholic_castle small_chapel

  13. #13
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    that worked!! thanks!! (+rep) but why it needed for the arguments to be "inverted" ????
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    Possibly it wants the one with more conditions to come first...

    No idea really, I just expect this kind of stuff in EDB and have learnt to play accordingly.

  15. #15
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: EDB question:

    i suppose if i want a hidden resource, i will add it to both faction groups... right?



    and what happens, when i want another faction for the building, eg:

    greek: min_level_building + event_counter (just like before)
    midl. east.: min_level_building + event_counter (+the same)
    all others: min_level_building

    because i had seen a post of SignifierOne...
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  16. #16
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: EDB question:

    1) Yeah.

    2) More ors and more duplicates of common conditions. If you have problems then just experiment until you succeed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •