Results 1 to 7 of 7

Thread: Kalmar Union - Historic Event 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 Kalmar Union - Historic Event Question...

    i had made a kalmar union script for 2 factions (byzantium, kantakouzenos).... and then in another comletely different script i had this excerpt:

    Code:
        monitor_event BuildingCompleted SettlementBuildingFinished = blahh
    
            if I_LocalFaction byzantium
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_player
            end_if
            if I_LocalFaction kantakouzenos
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_player
            end_if
            if I_IsFactionAIControlled byzantium
            and I_NumberOfSettlements byzantium > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_AI
            end_if
            if I_IsFactionAIControlled kantakouzenos
            and I_NumberOfSettlements kantakouzenos > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_AI
            end_if
    
        end_monitor
    but when i tested it as byzantium, 2 "_player" events poped up... why is that?? does the engine recognise both the united factions as local??

    and also when i didn't have the "I_NumberOfSettlements" condition in the second events, the game had a CTD... was that because when the faction is dead, there is an issue there??
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  2. #2
    Kiliç Alì's Avatar Domesticus
    Artifex

    Join Date
    Feb 2011
    Location
    Italy
    Posts
    2,114

    Default Re: Kalmar Union - Historic Event Question...

    Have you tryed to change I_LocalFaction with not I_IsFactionAIControlled? not sure if this will change things but maybe it worths a try.

    Member of the Imperial House of Hader, proud client of The only and sole Ferrit

  3. #3
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: Kalmar Union - Historic Event Question...

    So the kalmar union script changes Byzantium in kantakouzenos?

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

    Default Re: Kalmar Union - Historic Event Question...

    no, if you play with byzantium: give_everything_to_faction kantakouzenos byzantium true
    and if you play with kantakouzenos: give_everything_to_faction byzantium kantakouzenos true
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

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

    Default Re: Kalmar Union - Historic Event Question...

    Unless I'm misunderstanding the problem: try "false" instead of "true". That is the "faction emerges message" parameter.

    EDIT: sorry, I did misunderstand. You could also try using the I_NumberOfSettlements test in the _player ones. Generally =0 means the faction is dead but I don't know how it works with shadow factions. Also, using "factions { byzantium, }" and "factions { kantakouzenos, }" on the player HEs might work (is that a Kingdoms-only thing?).
    Last edited by Withwnar; February 10, 2012 at 12:36 AM.

  6. #6

    Default Re: Kalmar Union - Historic Event Question...

    Try this to solve the first issue, though I have no clue what causes is this might solve it :p
    Code:
        monitor_event BuildingCompleted SettlementBuildingFinished = blahh
    
            if I_LocalFaction byzantium
            and I_NumberOfSettlements kantakouzenos > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_player
            end_if
    
            wait 1
    
            if I_LocalFaction kantakouzenos
            and I_NumberOfSettlements byzantium > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_player
            end_if
    
            if I_IsFactionAIControlled byzantium
            and I_NumberOfSettlements byzantium > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_AI
            end_if
            if I_IsFactionAIControlled kantakouzenos
            and I_NumberOfSettlements kantakouzenos > 0
                historic_event scripted_religion_patriarchate_romans_in_exile_establish_AI
            end_if
    
        end_monitor
    The second problem is even weirder, but my first guess would be a mistype in the historic_events text strings.

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

    Default Re: Kalmar Union - Historic Event Question...

    i found a solution... i did work-around with a counter...

    thanks anyways...
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

Posting Permissions

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