Absolutely CANNOT get custom First Contact Messages working

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

baylor703

Recruit
33 Badges
Jun 18, 2018
7
0
  • Crusader Kings II
  • Steel Division: Normandy 44 -  Back to Hell
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Distant Stars
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Steel Division: Normandy 44
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Europa Universalis IV
  • Stellaris: Galaxy Edition
  • Sword of the Stars
  • Hearts of Iron III
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
}
}
 
Depending on what you're going for, it's probably best to copy-paste the default country type, rename it to something else, then enable custom diplomacy and copy what the Marauders do.