Help me read the scripts for Greece Investment

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Autokrator Photios

Private
25 Badges
Sep 28, 2016
21
0
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Holy Fury
Hey all,

I started a couple of Greece games with the latest DLC and I couldn't get the various "investment" decisions to actually do anything.

I decided to read the scripts, hoping to understand them, but I am not experienced enough to read them properly.

Maybe some of you can help me get more information? How can the player benefit from taking these decisions?

Thanks in advance!

Rich (BB code):
#British investment events - British entrepreneurs return from investment negotiations in Greek capital and seek permission from government to invest
country_event = {
    id = bftb_greece.173
    title = bftb_greece.173.t
    desc = bftb_greece.173.desc
    picture = GFX_report_event_gre_allied_diplomacy

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.173.a
        ai_chance = {
            base = 10
        }
        add_timed_idea = {
            idea = GRE_small_investment
            days = 30
        }
        hidden_effect = {
            GRE = {
                add_to_variable = {
                    var = GRE_british_influence_over_greek_government
                    value = 5
                }
            }
            GRE = {
                country_event = { id = bftb_greece.176 days = 2 }
            }
        }
    }
    option = {
        name = bftb_greece.173.b 
        ai_chance = {
            base = 5
            modifier = {
                factor = 10
                num_of_available_civilian_factories < 15
            }
        }
        GRE = {
            country_event = { id = bftb_greece.177 days = 2 }
        }
    }
    option = {
        name = bftb_greece.173.c
        ai_chance = {
            base = 0.1
            modifier = {
                factor = 25
                has_opinion = {
                    target = GRE
                    value < -50
                }
            }
        }
        GRE = {
            country_event = { id = bftb_greece.178 days = 2 }
        }
        hidden_effect = {
            GRE = {
                set_country_flag = GRE_britain_rebuffed
            }
        }
    }   
}
#British investment events - British officials attend Greek national showcase to lure investors
country_event = {
    id = bftb_greece.174
    title = bftb_greece.174.t
    desc = bftb_greece.174.desc
    picture = GFX_report_event_gre_athens

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.174.a
        ai_chance = {
            base = 10
        }
        add_timed_idea = {
            idea = GRE_moderate_investment
            days = 45
        }
        hidden_effect = {
            GRE = {
                add_to_variable = {
                    var = GRE_british_influence_over_greek_government
                    value = 10
                }
            }
            GRE = {
                country_event = { id = bftb_greece.176 days = 2 }
            }
        }
    }
    option = {
        name = bftb_greece.174.b
        ai_chance = {
            base = 5
            modifier = {
                factor = 10
                num_of_available_civilian_factories < 20
            }
        }
        GRE = {
            country_event = { id = bftb_greece.177 days = 2 }
        }
    }
    option = {
        name = bftb_greece.174.c
        ai_chance = {
            base = 0.1
            modifier = {
                factor = 25
                has_opinion = {
                    target = GRE
                    value < -50
                }
            }
        }
        GRE = {
            country_event = { id = bftb_greece.178 days = 2 }
        }
        hidden_effect = {
            GRE = {
                set_country_flag = GRE_britain_rebuffed
            }
        }
    }   
}
#British investment events - The Greeks offer manufactured ship parts for more intensive investment into their country
country_event = {
    id = bftb_greece.175
    title = bftb_greece.175.t
    desc = bftb_greece.175.desc
    picture = GFX_report_event_gre_diplomacy

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.175.a
        ai_chance = {
            base = 10
        }
        navy_experience = 5
        add_offsite_building = { type = dockyard level = 2 }
        add_timed_idea = {
            idea = GRE_heavy_investment
            days = 60
        }
        hidden_effect = {
            GRE = {
                add_to_variable = {
                    var = GRE_british_influence_over_greek_government
                    value = 25
                }
            }
            GRE = {
                country_event = { id = bftb_greece.176 days = 2 }
            }
        }
    }
    option = {
        name = bftb_greece.175.b
        ai_chance = {
            base = 0
        }
        GRE = {
            country_event = { id = bftb_greece.177 days = 2 }
        }
    }   
    option = {
        name = bftb_greece.175.c
        ai_chance = {
            base = 0
        }
        GRE = {
            country_event = { id = bftb_greece.178 days = 2 }
        }
        hidden_effect = {
            GRE = {
                set_country_flag = GRE_britain_rebuffed
            }
        }
    }   
}
#British investment events - the British invest!
country_event = {
    id = bftb_greece.176
    title = bftb_greece.176.t
    desc = bftb_greece.176.desc
    picture = GFX_report_event_gre_allied_diplomacy

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.176.a
        trigger = {
            ENG = {
                has_idea = GRE_small_investment
            }
        }
        GRE = {
            random_owned_controlled_state = {
                limit = {
                    ROOT = { has_full_control_of_state = PREV }
                }
                add_extra_state_shared_building_slots = 1
            }
        }
    }
    option = {
        name = bftb_greece.176.b
        trigger = {
            ENG = {
                has_idea = GRE_moderate_investment
            }
        }
        GRE = {
            random_owned_controlled_state = {
                limit = {
                    ROOT = { has_full_control_of_state = PREV }
                    free_building_slots = {
                        building = industrial_complex
                        size > 0
                        include_locked = yes
                    }
                }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
        }
    }
    option = {
        name = bftb_greece.176.c
        trigger = {
            ENG = {
                has_idea = GRE_heavy_investment
            }
        }
        add_offsite_building = {
            type = industrial_complex
            level = 3
        }
    }   
}
#British investment events - the British don't invest this time
country_event = {
    id = bftb_greece.177
    title = bftb_greece.177.t
    desc = bftb_greece.177.desc
    picture = GFX_report_event_gre_athens

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.177.a
        add_political_power = 75
        add_stability = -0.05   
    }
}
#British investment events - the British declare their definitive disinterest in investing!
country_event = {
    id = bftb_greece.178
    title = bftb_greece.178.t
    desc = bftb_greece.178.desc
    picture = GFX_report_event_gre_cabinet_meeting

    is_triggered_only = yes
    
    option = {
        name = bftb_greece.178.a
        add_stability = -0.1   
        hidden_effect = {
            if = {
                limit = {
                    check_variable = { var = GRE_debt_to_the_ifc_britain_var value = 2.5 compare = greater_than_or_equals }
                }
                GRE_default_on_british_debt_effect = yes
            }
        }
    }
}
 
What you're looking for are the "option" fields. Within you will find a field called "base" - this is the % chance the AI will take that particular option. This is further increased by "factor".

For example:
Code:
    option = {
        name = bftb_greece.173.a
        ai_chance = {
            base = 10
        }
        add_timed_idea = {
            idea = GRE_small_investment
            days = 30
        }
        hidden_effect = {
            GRE = {
                add_to_variable = {
                    var = GRE_british_influence_over_greek_government
                    value = 5
                }
            }
            GRE = {
                country_event = { id = bftb_greece.176 days = 2 }
            }
        }
    }
This particular option has a 10% chance to be taken by the AI, which would give a small investment to Greece. It sounds like there might be a typo here; the second option in that event only has a 5% chance and the third a 0.1% chance. But I digress.
 
  • 1Like
Reactions: