• 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.

Lider_Picaro

First Lieutenant
58 Badges
Mar 10, 2015
284
585
30
  • Stellaris: Humanoids Species Pack
  • Europa Universalis 4: Emperor
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Europa Universalis IV
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
FIXED
The decisions were inside a plot_decision instead of a decision block, which I thought were interchangeable. The wiki sure is lacking and deceiving in the modding tutorial articles...




I am working on a HIP submod that will improve gameplay in Iberia. However one of the problems I am facing as my first serious attempt at modding is that the AI won't enact my decisions. Like this easy one for example:

Code:
form_leon = {
        is_high_prio = yes
        only_independent = yes
        ai_check_interval = 6
    
        potential = {
            tier = KING
            has_landed_title = k_asturias
            k_leon = { has_holder = no }
            NOR = {
                has_alternate_start_setting = {
                    setting = dejure
                    value = random
                }
                has_alternate_start_setting = {
                    setting = title_names
                    value = random
                }
                has_alternate_start_setting = {
                    setting = title_names
                    value = random_including_duchies
                }
            }
        }

        allow = {
            is_adult = yes
            war = no
            prisoner = no
            NOT = { trait = incapable }
            NOT = { has_character_modifier = in_seclusion }
            primary_title = { title = k_asturias }
            completely_controls = d_leon
            is_vice_royalty = no
        }
    
        effect = {
            activate_title = { title = k_leon status = yes }
            k_asturias = {
                show_scope_change = no
                k_leon = {
                    show_scope_change = no
                    grant_title = ROOT
                    hidden_tooltip = { make_primary_title = yes }
                    copy_title_laws = PREV
                    copy_title_history = PREV
                }
                hidden_tooltip = {
                    any_direct_de_jure_vassal_title = {
                        de_jure_liege = k_leon
                    }
                    destroy_landed_title = THIS
                }
            }
            if = {
                limit = {
                    has_landed_title = c_leon
                    NOT = { capital_scope = { province_id = 190 } }

                }
                c_leon = {
                    show_scope_change = no
                    ROOT = {
                        show_scope_change = no
                        capital = PREV
                    }
                }
            }       
            activate_title = { title = k_asturias status = no }
            hidden_tooltip = {
                character_event = { id = ri.0001 }
                any_playable_ruler = {
                    limit = {
                        ai = no
                        capital_scope = {
                            region = world_europe_west_iberia
                        }
                    }
                    character_event = { id = ri.0002 }
                }
            }
        }
    
        ai_will_do = {
            factor = 1
        }
    }

Any insight on this will be appreciated
 
Last edited: