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

Emraldis

Colonel
41 Badges
May 23, 2016
1.101
111
  • Magicka
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II
I'm trying to set up a set of custom greetings for an ethics expansion mod, but I'm having some trouble getting the greetings to show up. I've got the on_action_events.txt file and a localisation file called eventseg_l_english.yml, and as far as I can tell, this should be all I need, but it's not working. Is there anything I'm missing?

Reference:
Code:
#########################################
#
# on_action_events
#
#########################################

namespace = action

@tier1influencecontact = 7
@tier1influencecontactxenophile = 8
@tier1influencecontactmin = 20
@tier1influencecontactmax = 80

@tier2influencecontact = 10
@tier2influencecontactxenophile = 12
@tier2influencecontactmin = 40
@tier2influencecontactmax = 100

country_event = {
    id = action.1
    title = action.1.name
    message_desc = action.1.message
   
    picture_event_data = {
        portrait = event_target:contact_empire
        planet_background = event_target:contact_empire
        graphical_culture = event_target:contact_empire
        city_level = event_target:contact_empire
        room = event_target:contact_empire
    }
    ###Custom Ethos Greeting Responses
    #Capitalist
    option = {
        name = action.1.Cap
        trigger = {
            has_ethic = ethic_capitalmism
            has_ethic = ethic_fanatic_capitalism
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Expansionist
    option = {
        name = action.1.Exp
        trigger = {
            has_ethic = ethic_expansionist
            has_ethic = ethic_fanatic_expansionist
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Egalitarian
    option = {
        name = action.1.Eg
        trigger = {
            has_ethic = ethic_pluralist
            has_ethic = ethic_fanatic_pluralist
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Ecologist
    option = {
        name = action.1.Eco
        trigger = {
            has_ethic = ethic_green
            has_ethic = ethic_fanatic_green
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Socialist
    option = {
        name = action.1.Soc
        trigger = {
            has_ethic = ethic_socialism
            has_ethic = ethic_fanatic_socialism
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Isolationist
    option = {
        name = action.1.Iso
        trigger = {
            has_ethic = ethic_isolationist
            has_ethic = ethic_fanatic_isolationist
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Elitarian
    option = {
        name = action.1.Eli
        trigger = {
            has_ethic = ethic_elitist
            has_ethic = ethic_fanatic_elitist
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
    #Industrialist
    option = {
        name = action.1.Ind
        trigger = {
            has_ethic = ethic_industrial
            has_ethic = ethic_fanatic_industrial
        }   
        if = {
            limit = {
                NOT = {
                    event_target:contact_empire = { has_relation_flag = { flag = no_coms who = root } }
                }
            }
            hidden_effect = {
                country_event = { id = progress.4 }
                country_event = { id = progress.5 }
                country_event = { id = progress.6 }
                #country_event = { id = story.7 days = 30 }
                if = {
                    limit = {
                        event_target:contact_empire = {
                            is_country_type = fallen_empire
                        }
                    }
                    set_country_flag = Story7
                    set_country_flag = has_encountered_other_empire
                    if = {
                        limit = { NOT = { has_country_flag = StoryFirst } }
                        set_country_flag = StoryFirst
                    }
                }
            }
        }
    }
}
Code:
l_english:

####################################
# Empire Greetings
####################################
action.1.Cap:0 "Test Capitalist"
action.1.Exp:1 "Test Expansionist"
action.1.Eg:2 "Test Egalitarian"
action.1.Eco:3 "Test Ecologist"
action.1.Soc:0 "Test Socialist"
action.1.Iso:1 "Test Isolationist"
action.1.Eli:2 "Test Elitist"
action.1.Ind:3 "Test Industrialist"