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:
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"