Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Guide to using hidden resources for unit recruitment

  1. #1

    Default Guide to using hidden resources for unit recruitment

    Is there a guide anywhere for what the title is. Ive been looking for ages and can't find one. I remember veiwing a thread years ago about making geonise crossbowmen recruitable with hidden resources. That explained it all quite well but can't find it. Thanks

  2. #2
    UndrState's Avatar Centenarius
    Join Date
    Nov 2009
    Location
    Montreal, QC, Canada
    Posts
    851

    Default Re: Guide to using hidden resources for unit recruitment

    Sorry , what do you mean by "hidden resources" ?

  3. #3

    Default Re: Guide to using hidden resources for unit recruitment


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

    Default Re: Guide to using hidden resources for unit recruitment


  5. #5

    Default Re: Guide to using hidden resources for unit recruitment

    The mechanics of setting it up is pretty simple; you enter them on the fifth line of the region's entry in the descr_regions and to the top line in the EDB listing all the valid ones. The "4 digit" code is useful, but not enough by itself. The real power of hidden_resources comes with the combinations with others in ways that don't require four h_r's in order to single out a province. With a varied enough spread of them, you can often identify a province with just two, which is much more efficient. It also means in non-recruitment areas, where you may not be able to use "and not hidden_resource", you have options.

    Here's an example of AoR'd recruitment in EBII:

    Spoiler Alert, click show to read: 
    Code:
    ;;; MYSIA
    recruit_pool "hellenistic cavalry hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry lonchophoroi hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry thureopherontes hippeis"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic infantry hemithorakitai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry thureophoroi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry pantodapoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy
    recruit_pool "hellenistic infantry akontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry akontistai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry sphendonitai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource greek1 and hidden_resource satrapy
    ;;; BITHYNIA
    recruit_pool "hellenistic cavalry hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry lonchophoroi hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia and event_counter ecThorakitaiReform 1
    recruit_pool "celtic cavalry eponados"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia
    recruit_pool "celtic infantry galatian raiders"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia
    recruit_pool "hellenistic infantry pantodapoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia
    recruit_pool "hellenistic infantry akontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry akontistai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia and event_counter ecThureosReform 1
    recruit_pool "thracian infantry sphendonitai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource anatolian and hidden_resource thrakia
    ;;; LYDIA
    recruit_pool "hellenistic cavalry lydian lancers"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h
    recruit_pool "hellenistic cavalry hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry thureopherontes hippeis"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic infantry hemithorakitai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry thureophoroi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry pantodapoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h
    recruit_pool "hellenistic infantry akontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry akontistai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry toxotai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource lydian and hidden_resource hr_h
    ;;; TSOPK
    recruit_pool "eastern cavalry nizakahar ayrudzi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core
    recruit_pool "eastern infantry babylonian"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and not event_counter ecThureosReform 1
    recruit_pool "eastern infantry babylonian"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and event_counter ecThureosReform 1
    recruit_pool "eastern infantry kardaka"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and event_counter ecThureosReform 1
    recruit_pool "eastern infantry nizagan eranshahr"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core
    recruit_pool "eastern infantry hai nizagamartik"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and not event_counter ecThureosReform 1
    recruit_pool "eastern infantry hai nizagamartik"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and event_counter ecThureosReform 1
    recruit_pool "eastern infantry galatianised spearmen"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core and event_counter ecThureosReform 1
    recruit_pool "eastern infantry anatolikoi phyletai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource hr_f and not hidden_resource royal_core
    ;;; EGRISI
    recruit_pool "eastern cavalry aspet hetselazor"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core and not event_counter ecThorakitaiReform 1
    recruit_pool "eastern cavalry armenian lancers"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core and event_counter ecThorakitaiReform 1
    recruit_pool "eastern cavalry nizakahar ayrudzi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core
    recruit_pool "eastern infantry circassian"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core
    recruit_pool "eastern infantry kavakaza sparabara"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core ; Pezoi Kolkikhoi
    recruit_pool "eastern infantry kartvelian"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core
    recruit_pool "eastern infantry anatolikoi phyletai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core
    recruit_pool "eastern infantry slinger"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_c and hidden_resource royal_core
    ;;; KARTLI/ALUAN
    recruit_pool "eastern cavalry aspet hetselazor"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy and not event_counter ecThorakitaiReform 1
    recruit_pool "eastern cavalry armenian lancers"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy and event_counter ecThorakitaiReform 1
    recruit_pool "eastern cavalry nizakahar ayrudzi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy
    recruit_pool "eastern infantry tabargane eranshahr"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and hidden_resource hr_i ; Aluan
    recruit_pool "eastern infantry kartvelian"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and hidden_resource royal_core ; Kartli
    recruit_pool "eastern infantry kavakaza sparabara"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy
    recruit_pool "eastern infantry anatolikoi phyletai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy
    recruit_pool "eastern infantry thanvare kavakaza"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy
    recruit_pool "eastern infantry slinger"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource caucasus and hidden_resource hr_d and not hidden_resource satrapy
    ;;; SYRIA
    recruit_pool "hellenistic cavalry xystophoroi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry aspidiotai hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry thureopherontes hippeis"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic infantry hemithorakitai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry thureophoroi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and event_counter ecThureosReform 1
    recruit_pool "hellenistic missile cretan archers"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire ; Iturean/Syrian Archers
    recruit_pool "hellenistic infantry pantodapoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire
    recruit_pool "hellenistic infantry akontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry akontistai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire and hidden_resource hyparchia and event_counter ecThureosReform 1 ; Syria Koile
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hellen1 and event_counter ecThureosReform 1 and not event_counter ecThorakitaiReform 1 ; Syria
    recruit_pool "hellenistic infantry promachoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hellen1 and event_counter ecThorakitaiReform 1 ; Syria
    recruit_pool "hellenistic infantry sphendonitai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource nabatu_empire
    ;;; ADIABENE
    recruit_pool "eastern cavalry aspet hetselazor"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern cavalry armenian horse archers"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern cavalry nizakahar ayrudzi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern infantry babylonian"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern infantry nizagan eranshahr"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern infantry hai nizagamartik"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    recruit_pool "eastern infantry anatolikoi phyletai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and hidden_resource hr_j and not hidden_resource arabian
    ;;; MESOPOTAMIA
    recruit_pool "hellenistic cavalry xystophoroi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry aspidiotai hippeis"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and not event_counter ecThorakitaiReform 1
    recruit_pool "hellenistic cavalry thureopherontes hippeis"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThorakitaiReform 1
    recruit_pool "eastern infantry babylonian"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and not event_counter ecThureosReform 1
    recruit_pool "eastern infantry babylonian"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry thureophoroi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThureosReform 1
    recruit_pool "eastern infantry nizagan eranshahr"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j
    recruit_pool "hellenistic infantry pantodapoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j
    recruit_pool "hellenistic infantry akontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and not event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry akontistai"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThureosReform 1
    recruit_pool "hellenistic infantry euzonoi"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource hr_river and not hidden_resource hr_j and event_counter ecThureosReform 1
    ;;; MEDIA
    recruit_pool "eastern cavalry mada asabara"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i
    recruit_pool "eastern cavalry asiatikoi hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i
    recruit_pool "eastern infantry tabargane eranshahr"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i and not event_counter ecThureosReform 1
    recruit_pool "eastern infantry tabargane eranshahr"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i and event_counter ecThureosReform 1
    recruit_pool "eastern infantry kardaka"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i and event_counter ecThureosReform 1
    recruit_pool "eastern infantry nizagan eranshahr"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i
    recruit_pool "eastern infantry skirmisher"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i
    recruit_pool "eastern infantry slinger"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource hr_b and not hidden_resource hr_river and not hidden_resource nabatu_empire and not hidden_resource hr_i
    ;;; PERSIS
    recruit_pool "eastern cavalry asiatikoi hippeis"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i
    recruit_pool "eastern cavalry asiatikoi hippakontistai"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i
    recruit_pool "eastern infantry tabargane eranshahr"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i and not event_counter ecThureosReform 1
    recruit_pool "eastern infantry tabargane eranshahr"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i and event_counter ecThureosReform 1
    recruit_pool "eastern infantry kardaka"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i and event_counter ecThureosReform 1
    recruit_pool "eastern infantry nizagan eranshahr"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i
    recruit_pool "eastern infantry archer"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i
    recruit_pool "eastern infantry slinger"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource eastern and hidden_resource satrapy and hidden_resource royal_core and hidden_resource hr_i
    ;;; SKYTHIAPOLIS
    recruit_pool "steppe cavalry scythian nobles"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource skythian and hidden_resource mixed
    recruit_pool "steppe cavalry scythian horse archers"  1  0.12  3  0  requires factions { f_pontos, } and hidden_resource skythian and hidden_resource mixed
    recruit_pool "eastern infantry doryphoroi pontikoi"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource skythian and hidden_resource mixed
    recruit_pool "steppe infantry voini spearmen"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource skythian and hidden_resource mixed
    recruit_pool "steppe infantry scythian archers"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource skythian and hidden_resource mixed
    ;;; KHSAITAI UBASTRA
    recruit_pool "steppe cavalry early sarmatian nobles"  1  0.04  1  0  requires factions { f_pontos, } and hidden_resource sarmatian and hidden_resource royal_core
    recruit_pool "steppe cavalry aorsi horse archers"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource sarmatian and hidden_resource royal_core ; Raukhsalan Baragatae
    recruit_pool "steppe cavalry sarmatian horse archers"  1  0.12  3  0  requires factions { f_pontos, } and hidden_resource sarmatian and hidden_resource royal_core
    recruit_pool "steppe infantry scythian archers"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource sarmatian and hidden_resource royal_core ; Sotajat
    recruit_pool "steppe infantry sarmatian archers"  1  0.08  2  0  requires factions { f_pontos, } and hidden_resource sarmatian and hidden_resource royal_core


    Some of those titles are single provinces, others are groups of provinces. You get different options in different places, and with event_counters trigged by the script, you also get varying recruitment over time as well.

    Our "4 digit" h_r's are hr_a to hr_j, but as you can see above, they're rarely used except in combination with others. There are no instances where I've had to use a combination of four of them, because there are other overlaps which achieve the same with fewer h_r's.

  6. #6
    Titus le Chmakus's Avatar Biarchus
    Join Date
    Aug 2014
    Location
    Skiing on the Spine of the World or hunting in Lurkwood
    Posts
    650

    Default Re: Guide to using hidden resources for unit recruitment

    You mean you can have more than one hidden_ressource condition to enable recruitment of some units ? Didn't know that ! Thanks

  7. #7

    Default Re: Guide to using hidden resources for unit recruitment

    Quote Originally Posted by Titus le Chmakus View Post
    You mean you can have more than one hidden_ressource condition to enable recruitment of some units ? Didn't know that ! Thanks
    Yes, the combinations of them is where the real sophistication comes in, all the different overlaps allow unique collections of single or groups of provinces. You can use AND, OR and NOT, though if you use OR, there are no brackets so you can only use one per line (and at the end of the line to be sure).

  8. #8
    Laetus
    Join Date
    Jan 2014
    Location
    The Western Military Frontier of the Empire
    Posts
    22

    Default Re: Guide to using hidden resources for unit recruitment

    Quote Originally Posted by QuintusSertorius View Post
    though if you use OR, there are no brackets so you can only use one per line (and at the end of the line to be sure).
    If by this you meant you can only use OR once in a hidden_resource requirement, then that's not my case. I actually used much more than one in my own modification of Chivalry II and it works perfectly.

    Code:
    		recruit_pool "Varangian Guard"  1   0.3   2  1  requires factions { byzantium, } and event_counter russia_converts 1 and hidden_resource byz or hidden_resource armen or hidden_resource norman or hidden_resource saxon or hidden_resource rus_steppe and not event_counter musket_invented 1

  9. #9

    Default Re: Guide to using hidden resources for unit recruitment

    You can use a string of OR's as long as you don't put any AND or AND NOT after them. They you get into unreliable territory, because there are no brackets to prioritise the order they should be parsed.

  10. #10
    Titus le Chmakus's Avatar Biarchus
    Join Date
    Aug 2014
    Location
    Skiing on the Spine of the World or hunting in Lurkwood
    Posts
    650

    Default Re: Guide to using hidden resources for unit recruitment

    Sorry but your last post gets confusing. Do you mean you should not use AND NOT for hidden resources ? Varangon, in his example has a AND NOT at the end of his code ... But not with a ressource ...

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

    Default Re: Guide to using hidden resources for unit recruitment

    Actually there is a problem with "not hidden_resource": http://www.twcenter.net/forums/showthread.php?705939

    But Quintus is saying that the game has its own set way of reading conditions (back to front, right to left) and there's no way for us to tell it to behave otherwise, like e.g. "work out the ORs first then the ANDs". http://www.twcenter.net/forums/showt...1#post13437909

  12. #12

    Default Re: Guide to using hidden resources for unit recruitment

    No, I'm saying putting an AND or and AND NOT after a string of OR's is unreliable. Taking the example above:

    Code:
    and event_counter russia_converts 1 and hidden_resource byz or hidden_resource armen or hidden_resource norman or hidden_resource saxon or hidden_resource rus_steppe and not event_counter musket_invented 1
    If the event_counter musket_invented is universal for all those hidden_resource areas, then this is less fraught:

    Code:
    and event_counter russia_converts 1 and not event_counter musket_invented 1 and hidden_resource byz or hidden_resource armen or hidden_resource norman or hidden_resource saxon or hidden_resource rus_steppe
    Alternatively, if that last event_counter is only associated with the last hidden_resource, then turning it into two lines is solid:

    Code:
    and event_counter russia_converts 1 and hidden_resource byz or hidden_resource armen or hidden_resource norman or hidden_resource saxon
    Code:
    and event_counter russia_converts 1 and hidden_resource rus_steppe and not event_counter musket_invented 1

  13. #13

    Default Re: Guide to using hidden resources for unit recruitment

    Oh boy the EDB is starting to give me headeaches again...

    If a unit recruitment line doesn't have a: factions { faction_name, }
    The unit will never show in the recruitment scroll of any faction, right?
    So to have a event_counter, or more being treated as forced conditions in lines with OR, woudn't this do:
    Code:
    requires event_counter carthage_s 1 and not event_counter rr2 1 and factions { romani, scotland, papal_states, } and hidden_resource italia or hidden_resource sicilia
    Somehow, if a unit need a faction condition anyway, then it seem logical to put event_counter before it? Am I hallucinating from the fever of having to check/redo a big chunck of EDB again?

  14. #14

    Default Re: Guide to using hidden resources for unit recruitment

    I've only ever used recruitment with the requires factions condition, and that should be the first one. Even if that requires factions is { all, } it should be there.

    So in your example, it should be ordered thus:

    Code:
    requires factions { romani, scotland, papal_states, } and event_counter carthage_s 1 and not event_counter rr2 1 and hidden_resource italia or hidden_resource sicilia
    Doesn't matter which way around you put event_counters and hidden_resources, unless you have the positioning of an OR condition to consider.

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

    Default Re: Guide to using hidden resources for unit recruitment

    Quote Originally Posted by selv View Post
    If a unit recruitment line doesn't have a: factions { faction_name, }
    The unit will never show in the recruitment scroll of any faction, right?
    It will. No factions{} condition means no restrictions on factions; available to everybody. It is exactly the same as FactionType in triggers and script: not having that condition does not mean it doesn't work on any faction, it means the faction type is irrelevant and so works on all factions.

  16. #16

    Default Re: Guide to using hidden resources for unit recruitment

    Ok, for a while I was afraid but I tried this with a few quick changes to my c_s and descr_strat to run fast tests:

    Code:
    requires factions { romani, scotland, papal_states, } and event_counter carthage_h 1 and not event_counter rr2 1 and hidden_resource italia or hidden_resource siria or hidden_resource gallia_south
    Guess what, the engine play ball without being a vicious bastard for once. It understand that the event counters are for the three hidden resources, including the last OR. Like Quintus said, OR just need to be the last conditions, and several don't appear to be a problem. I tried a few variants, setting the recruitment line to different levels of different buildings depending on towns, and it work just as planned.

    Though, for the 'fun', this appear to work as well:
    Code:
    requires event_counter carthage_h 1 and not event_counter rr2 1 and factions { romani, scotland, papal_states, } and hidden_resource italia or hidden_resource siria or hidden_resource gallia_south
    But it's not that 'clean' to read and I didn't test it as much than the other, so no need to bother with it I guess.
    Thanks guys.

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

    Default Re: Guide to using hidden resources for unit recruitment

    Just for the record, "OR(s) need to be the last condition(s)" isn't a rule. It depends on what you're trying to do.

    e.g. If the intention was [hidden_resource X AND event_counter ABC] or [hidden_resource Y], i.e. either of those hidden resources but if the X one then only when ABC is 1, then it would be...

    requires hidden_resource Y or event_counter ABC 1 and hidden_resource X

    or

    requires hidden_resource Y or hidden_resource X and event_counter ABC 1

  18. #18

    Default Re: Guide to using hidden resources for unit recruitment

    That sounds like a distinctly unsafe way to structure it, how can you be sure how the game is going to parse it? Safer to do two separate lines to guarantee only your intended result. It's not like there's a meaningful limit on the number of capability/recruit_pool lines.

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

    Default Re: Guide to using hidden resources for unit recruitment

    We know how the game parses it: from right to left. http://www.twcenter.net/forums/showthread.php?631100

    Two separate lines is fine for capabilities and upgrades but not for the construction conditions of the first tier. It must be a one-liner and for that we need to know the rules if we're mixing ORs and ANDs.

  20. #20

    Default Re: Guide to using hidden resources for unit recruitment

    I'll grant you the first tier construction condition. You also can't use not hidden_resource in those lines, either.

Page 1 of 2 12 LastLast

Posting Permissions

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