Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
Sorry, no, it's the wrong way around.
...gives...Code:recruitment_slots 2 requires not event_counter freeze_recr_pool 1 and building_present_min_level farms farms+2 or building_present_min_level city_hall council_chambers
requires NOT COUNTER AND (BUILDING1 OR BUILDING2)
...which is what you're after.
Whereas yours...
...gives...Code:recruitment_slots 2 requires building_present_min_level farms farms+2 or building_present_min_level city_hall council_chambers and not event_counter freeze_recr_pool 1
requires BUILDING1 OR (BUILDING2 AND NOT COUNTER)
Ahhhh, I understood the "read from right to left" wrongly then, it is in fact "resolved from right to left"?
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
Both, as I see it. But yeah, resolved is what I meant.
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
Well, I'm once again lost trying to understand EDB, could you guys give me a hand again?
I made this coding:The way I understand it there is two xay for the building to be buildable:Code:south_italy_building2_stronghold requires factions { hre, england, france, jerusalem, papal_states, } and hidden_resource sicily or factions { sicily, } and not event_counter CONCENTRIC_CASTLES 1
- the faction is one of { hre, england, france, jerusalem, papal_states, }, there is the hidden ressource "sicily" and CONCENTRIC_CASTLES didn't happen.
- the faction is sicily and CONCENTRIC_CASTLES didn't happen
But the building does never appear for sicily in the building browser, what did I miss? Any help greatly appreciated!
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
In my notes I've got:
; requires factions { xxx, } and condition1 or factions {yyy, } and condition2
; is read: ( ( condition2 and factions {yyy, } ) or condition1 ) and factions { xxx, }
; this means: if factions { xxx, } is false then the entire result is also false, regardless of what else in there is true
; because the engine does NOT give precedence to ANDs before ORs
;
; this means: it is impossible to code (factions{A} and condition1) or (factions{B} and condition2)
Yes, that is also what is explained in the thread, but the logic I'm looking for is this one (parenthesis are there to explicit the priority I'm looking for) :That's why I put the event_counter at the end of my proposed coding: it would be evaluated against everything to it's left.Code:( factions { hre, england, france, jerusalem, papal_states, } AND hidden_resource sicily AND NOT event_counter CONCENTRIC_CASTLES 1) OR ( factions { sicily, } AND NOT event_counter CONCENTRIC_CASTLES 1 )I tried the logic with my excel spreadsheet, can't find the flaw. I'm wondering if there's something tricky with conditions we use?Code:south_italy_building2_stronghold requires factions { hre, england, france, jerusalem, papal_states, } and hidden_resource sicily or factions { sicily, } and not event_counter CONCENTRIC_CASTLES 1
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
My understanding is: it will always be false for the faction sicily because the most-right condition (list of factions) is always false on the sicilian turn.
Sorry, I don't understand: isn't the list of faction the left-most condition?
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
Sorry, I've meant most-left:
Sicily in the Sicilian lands in 12th century:
not event_counter CONCENTRIC_CASTLES 1 -> TRUE ->
OR factions { sicily, } -> TRUE
AND hidden_resource sicily -> TRUE ->
factions { hre, england, france, jerusalem, papal_states, } -> FALSE
Sicily outside South Italy in 12th century:
not event_counter CONCENTRIC_CASTLES 1 -> TRUE ->
OR factions { sicily, } -> TRUE
AND hidden_resource sicily -> FALSE ->
factions { hre, england, france, jerusalem, papal_states, } -> FALSE
Sicily in the Sicilian lands in 14th century:
not event_counter CONCENTRIC_CASTLES 1 -> FALSE ->
OR factions { sicily, } -> TRUE
AND hidden_resource sicily -> TRUE ->
factions { hre, england, france, jerusalem, papal_states, } -> FALSE
Sicily outside South Italy in 14th century:
not event_counter CONCENTRIC_CASTLES 1 -> FALSE ->
OR factions { sicily, } -> TRUE
AND hidden_resource sicily -> FALSE ->
factions { hre, england, france, jerusalem, papal_states, } -> FALSE
Ah yes you're absolutely right, I don't know why I can't get this EDB logic in my head...
I always twist it and confuse myself, even if your explanations and Whitwnar's are quite clear!
So I will test the whole tree and post on our subforum, but the coding for level 2 will be:IIRC "require not" is buggy so I had to add event_counter dummy 1.Code:south_italy_building2_stronghold requires event_counter dummy 1 or not event_counter CONCENTRIC_CASTLES 1 and factions { sicily, } or factions { hre, england, france, jerusalem, papal_states, } and hidden_resource sicily
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats
I don't think this coding would work either. The ( negative + dummy ) solution works at the end of the line, but will it work at the beginning? I doubt.
Just tried it, it works! Good news for our new building tree
Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
Stainless Steel Historical Improvement Project (SSHIP) team member.
Mini-mods: diplomacy and relation/reputation - detailled unit stats