Results 1 to 20 of 275

Thread: The CROWNS system

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,506

    Default Re: The CROWNS system

    Some updates on the crowns (most of the code will be included in the next version, perhaps beginning of 2022):

    I. Rus:

    Zoloti Vorota lvl2 will enable FL to get the crown already at the city level.
    Code:
    ;------------------------------------------- 0->1    Trigger Crown_kievan_rus_Fit
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and IsFactionLeader                                 ; just in case of a bug
        and FactionType kievan_rus
        and SettlementName Kiev
        and SettlementBuildingExists >= cathedral_o            ; large city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder < 4                              ; either Legacy (2) or Lands_Conquered (3)
         and Trait Crownholder > 1                              ; just in case of a bug
        and Trait Fit_Crown_kievan_rus < 1                    ; redundant but just in case
        
     Affects Fit_Crown_kievan_rus 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_kievan_rus_Fit_Zoloti_Vorota
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and IsFactionLeader
        and FactionType kievan_rus
        and SettlementName Kiev
        and SettlementBuildingExists >= wonder_kiev_zoloti_vorota_2middle        ; already city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_kievan_rus < 1
        
     Affects Fit_Crown_kievan_rus 1 Chance 100
    This works also for Novgorod, while the base for Novgorod is the Sofijskij Sobor

    Code:
    ;------------------------------------------- 0->1	
    Trigger Crown_russia_Fit_Sofijskij_Sobor
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
    	and FactionType russia
    	and IsFactionLeader
    	and SettlementName Novgorod											; coronation in Novgorod
    	and SettlementBuildingExists >= rus_monastery_6novgorod							; large city level
    	and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
    	and Treasury > 20000
    	and Trait Crownholder < 4
    	and Trait Crownholder > 1
    	and Trait Fit_Crown_russia < 1
    	
     Affects Fit_Crown_russia 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_kievan_rus_Fit_Zoloti_Vorota
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and IsFactionLeader
        and FactionType russia
        and SettlementName Kiev                                                ; coronation also in Kiev
        and SettlementBuildingExists >= wonder_kiev_zoloti_vorota_2middle    ; already city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_russia < 1
        
     Affects Fit_Crown_russia 1 Chance 100
    II. Poland
    Given that the first coronation in Krakow took place in 1320, and we've got a new St Adalbertus wonder, then the place of coronation will be Poznan or Krakow, and with
    Code:
    ;------------------------------------------- 0->1    Trigger Crown_poland_Fit_Cathedral_Krakow
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType poland
        and IsFactionLeader
        and SettlementName Krakow                                    ; coronation in Krakow
        and SettlementBuildingExists >= cathedral                    ; large city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_poland < 1                                ; redundant but just in case
        
     Affects Fit_Crown_poland 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_poland_Fit_Marienkirche
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType poland
        and IsFactionLeader
        and SettlementName Krakow                                            ; coronation in Krakow
        and SettlementBuildingExists >= wonder_krakow_Marienkirche2            ; already city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_poland < 1
        
     Affects Fit_Crown_poland 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_poland_Fit_St_Adalbertus
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType poland
        and IsFactionLeader
        and SettlementName Poznan                                            ; coronation in Poznan
        and SettlementBuildingExists >= wonder_poznan_gniezno3_romanic        ; already city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_poland < 1
        
     Affects Fit_Crown_poland 1 Chance 100
    III. Scotland

    Only with the highest level (but already city level) of the Edinburgh castle:
    Code:
    ;------------------------------------------- 0->1    Trigger Crown_scotland_Fit
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType scotland
        and IsFactionLeader
        and SettlementName Edinburgh
        and SettlementBuildingExists >= wonder_edinburg4_castle            ; already city level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_scotland < 1
        
     Affects Fit_Crown_scotland 1 Chance 100
    IV. France

    A kind to fall-back: coronation possible also in Naples (eg. if Rheims is lost, or the FL doesn't have time to come back) with Maschio Angioino and in Jerusalem with St Sepulchre:
    Code:
    ;------------------------------------------- 0->1    Trigger Crown_france_Fit_Rheims
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType france
        and IsFactionLeader
        and SettlementName Rheims
        and SettlementBuildingExists >= cathedral
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_france < 1
        
     Affects Fit_Crown_france 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_france_Fit_Naples
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType france
        and IsFactionLeader
        and SettlementName Naples
        and SettlementBuildingExists = south_italy_building6_maschioangioino
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_france < 1
        
     Affects Fit_Crown_france 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_france_Fit_Jerusalem
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType france
        and IsFactionLeader
        and SettlementName Jerusalem
        and SettlementBuildingExists = holy_sepulchre_3_church            ; already large town level
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_france < 1
        
     Affects Fit_Crown_france 1 Chance 100
    V. Aragon

    Coronation possible in Zaragoza and Palermo:

    Code:
    ;------------------------------------------- 0->1    Trigger Crown_aragon_Fit_Zaragoza
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType aragon
        and IsFactionLeader
        and SettlementName Zaragoza
        and SettlementBuildingExists >= wonder_zaragoza_aljaferia3_palace
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_aragon < 1
        
     Affects Fit_Crown_aragon 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_aragon_Fit_Palermo
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType aragon
        and IsFactionLeader
        and SettlementName Palermo
        and SettlementBuildingExists = south_italy_building6_maschioangioino
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_aragon < 1
        
     Affects Fit_Crown_aragon 1 Chance 100
    VI. Almoravids

    For the Moors coronation is possible in Marrakesh, Cordoba and Zaragoza

    Code:
    ;------------------------------------------- 0->1    Trigger Crown_moors_Fit_Marrakesh
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType moors
        and IsFactionLeader
        and SettlementName Marrakesh
        and SettlementBuildingExists >= minareted_masjid        ; this city is very difficult to grow!
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_moors < 1
        
     Affects Fit_Crown_moors 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_moors_Fit_Zaragoza
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType moors
        and IsFactionLeader
        and SettlementName Zaragoza
        and SettlementBuildingExists >= wonder_zaragoza_aljaferia3_palace
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_moors < 1
        
     Affects Fit_Crown_moors 1 Chance 100
    
    
    ;------------------------------------------- 0->1    
    Trigger Crown_moors_Fit_Cordoba
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType moors
        and IsFactionLeader
        and SettlementName Cordoba
        and SettlementBuildingExists >= wonder_cordoba_mezquita2_mosque
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_moors < 1
        
     Affects Fit_Crown_moors 1 Chance 100

    VII. Norway

    Crown is possibe to get in both Bergen and Roskilde.
    Code:
    ;------------------------------------------- 0->1    Trigger Crown_norway_Fit_Roskilde
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType norway
        and IsFactionLeader
        and SettlementName Roskilde
        and SettlementBuildingExists >= cathedral
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_norway < 1                    ; redundant but just in case
        
     Affects Fit_Crown_norway 1 Chance 100
    
    
    ;------------------------------------------- both cities should be ok to get the crown
    Trigger Crown_norway_Fit_Bergen
     WhenToTest CharacterTurnEndInSettlement
     
     Condition FactionIsLocal
        and FactionType norway
        and IsFactionLeader
        and SettlementName Bergen
        and SettlementBuildingExists >= cathedral
        and not IsUnderSiege
        and GovernorLoyaltyLevel > loyalty_disillusioned
        and Treasury > 20000
        and Trait Crownholder > 1
        and Trait Crownholder < 4
        and Trait Fit_Crown_norway < 1
        
     Affects Fit_Crown_norway 1 Chance 100
    Last edited by Jurand of Cracow; December 20, 2021 at 01:29 PM.

Posting Permissions

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