But I want different conditions for different factions.
But I want different conditions for different factions.
I'm still not here
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!
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.
Alas, I confirmed the hard way today that no nested evaluation of these complex conditionals is possible.Originally Posted by khelvan
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.
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
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
will still allow the unit to be available to the britons.Code:recruit "warband sword briton" 0
Other requirments can be added on as well:
will put the unit in any British province contain resource A.Code:recruit "warband sword briton" 0 requires hidden_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 CoolCool 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
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.Originally Posted by eadingas
That post was 3 months old, we moved on since then a bit :)
I'm still not here
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 CoolCool 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
Hmm then I think that was even before the period when I was the building coordinator for EB... prehistory :)
I'm still not here
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.
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.
Bookmarks