Hey guys, I'm really hoping someone can help me out here. I've been deeply customizing some species as of late and want to release the mod on steam. Custom systems, start messages, diplomatic messages, etc. But for the life of me, I CANNOT get a custom first-contact message to work. There is nothing in the error or debug logs, and I know the directories are correct because if I intentionally place in an error, the logs catch it. But upon first-contact, species ALWAYS revert to the vanilla first contact message.
I'm thinking it has something to do with the default on_action_events taking priority over my own, named newspecies_on_action_events. I noticed that in the default on_actions_events that there is a condition for all of them: NOR = { has_country_flag = special_intro_for@root } and thought I solved it. I added into my prescripted species the flags "special_intro_for@root" AND "special_intro" to be safe, thinking I solved the problem. But still, default first-contact messages, with no errors in the logs at all. Anyway, here is the code- stripped down for just one species. If anyone could help it would be MUCH appreciated.
namespace = aanewspecies
### KEY FOR FIRST CONTACT MESSAGES
country_event = {
id = aanewspecies.1
hide_window = yes
is_triggered_only = yes
immediate = {
if = {
limit = {
event_target:contact_empire = { has_country_flag = estwani_1 }
}
hidden_effect = {
country_event = { id = aanewspecies.2 }
}
}
}
}
#### Estwani First Contact
country_event = {
id = aanewspecies.2
title = aanewspecies.2.name
desc = aanewspecies.2.desc
show_sound = event_conversation
diplomatic = yes
is_triggered_only = yes
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.ruler.ruler
}
option = {
name = aanewspecies.2.a
response_text = aanewspecies.2.a.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.b
response_text = aanewspecies.2.b.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.c
response_text = aanewspecies.2.c.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.d
response_text = aanewspecies.2.d.response
is_dialog_only = yes
}
}
I'm thinking it has something to do with the default on_action_events taking priority over my own, named newspecies_on_action_events. I noticed that in the default on_actions_events that there is a condition for all of them: NOR = { has_country_flag = special_intro_for@root } and thought I solved it. I added into my prescripted species the flags "special_intro_for@root" AND "special_intro" to be safe, thinking I solved the problem. But still, default first-contact messages, with no errors in the logs at all. Anyway, here is the code- stripped down for just one species. If anyone could help it would be MUCH appreciated.
namespace = aanewspecies
### KEY FOR FIRST CONTACT MESSAGES
country_event = {
id = aanewspecies.1
hide_window = yes
is_triggered_only = yes
immediate = {
if = {
limit = {
event_target:contact_empire = { has_country_flag = estwani_1 }
}
hidden_effect = {
country_event = { id = aanewspecies.2 }
}
}
}
}
#### Estwani First Contact
country_event = {
id = aanewspecies.2
title = aanewspecies.2.name
desc = aanewspecies.2.desc
show_sound = event_conversation
diplomatic = yes
is_triggered_only = yes
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.ruler.ruler
}
option = {
name = aanewspecies.2.a
response_text = aanewspecies.2.a.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.b
response_text = aanewspecies.2.b.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.c
response_text = aanewspecies.2.c.response
is_dialog_only = yes
}
option = {
name = aanewspecies.2.d
response_text = aanewspecies.2.d.response
is_dialog_only = yes
}
}