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

unmerged(48679)

Captain
Sep 17, 2005
379
0
Hi!

I have problem with an event that won't fire:

#
# HoI - Turkey Events
#
#
#

#########################################################################
# Rebirth of the Ottoman Empire
#########################################################################
event = {
id = 99999999
random = no
country = TUR

trigger = {

name = "Rebirth of the Ottoman Empire"
desc = "After many years, the Turkish Government has finally welcomed the Ottoman Royal Family back and reinstated them as rulers of Turkey and proclaimed the Ottoman Empire reborn.
style = 0
picture = "constitutional"

trigger = {
random = 100
control = { province = 408 data = TUR }
control = { province = 437 data = TUR }
control = { province = 438 data = TUR }
control = { province = 439 data = TUR }
control = { province = 441 data = TUR }
control = { province = 442 data = TUR }
control = { province = 443 data = TUR }
control = { province = 448 data = TUR }
control = { province = 440 data = TUR }
control = { province = 449 data = TUR }
control = { province = 447 data = TUR }
control = { province = 446 data = TUR }
control = { province = 445 data = TUR }
control = { province = 450 data = TUR }
}
}

date = { day = 2 month = january year = 1936 }
offset = 3 # Check for trigger conditions day
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "This is a great day for our nation!" #
ai_chance = 0
command = { type = country which = OTT }
}
action_b = {
name = "Never" #
ai_chance = 100
command = { }
}
}
 
Feb 10, 2005
857
0
www.bitterglory.com
Mr Hearts said:
Hi!

I have problem with an event that won't fire:

#
# HoI - Turkey Events
#
#
#

#########################################################################
# Rebirth of the Ottoman Empire
#########################################################################
event = {
id = 99999999
random = no
country = TUR

trigger = {
random = 100
control = { province = 408 data = TUR }
control = { province = 437 data = TUR }
control = { province = 438 data = TUR }
control = { province = 439 data = TUR }
control = { province = 441 data = TUR }
control = { province = 442 data = TUR }
control = { province = 443 data = TUR }
control = { province = 448 data = TUR }
control = { province = 440 data = TUR }
control = { province = 449 data = TUR }
control = { province = 447 data = TUR }
control = { province = 446 data = TUR }
control = { province = 445 data = TUR }
control = { province = 450 data = TUR }
}

name = "Rebirth of the Ottoman Empire"
desc = "After many years, the Turkish Government has finally welcomed the Ottoman Royal Family back and reinstated them as rulers of Turkey and proclaimed the Ottoman Empire reborn.
style = 0
picture = "constitutional"

date = { day = 2 month = january year = 1936 }
offset = 3 # Check for trigger conditions day
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "This is a great day for our nation!" #
ai_chance = 0
command = { type = country which = OTT }
}
action_b = {
name = "Never" #
ai_chance = 100
command = { }
}
}


Try it now
 

Sarmatia1871

Field Marshal
56 Badges
Mar 22, 2004
3.889
352
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
I saw two or three things that looked immediately odd, so try this instead:


event = {
id = 99999999
random = no
country = TUR


name = "Rebirth of the Ottoman Empire"
desc = "After many years, the Turkish Government has finally welcomed the Ottoman Royal Family back and reinstated them as rulers of Turkey and proclaimed the Ottoman Empire reborn."
style = 0
picture = "constitutional"

trigger = {


control = { province = 408 data = TUR }
control = { province = 437 data = TUR }
control = { province = 438 data = TUR }
control = { province = 439 data = TUR }
control = { province = 441 data = TUR }
control = { province = 442 data = TUR }
control = { province = 443 data = TUR }
control = { province = 448 data = TUR }
control = { province = 440 data = TUR }
control = { province = 449 data = TUR }
control = { province = 447 data = TUR }
control = { province = 446 data = TUR }
control = { province = 445 data = TUR }
control = { province = 450 data = TUR }
}


date = { day = 2 month = january year = 1936 }
offset = 3 # Check for trigger conditions day
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "This is a great day for our nation!" #
ai_chance = 1
command = { type = country which = OTT }
}
action_b = {
name = "Never" #
ai_chance = 99
command = { }
}
}
 

unmerged(53569)

Second Lieutenant
Feb 3, 2006
161
0
Mr Hearts said:
It still dosen't work... :(

I have placed the event in an document called "turkey" in the events folder... Does it required something more?

I also have SMEP installed.


Have you also added the event to the events.txt in the db file? not the events folder in the db file but there should be a seperate text file called events.txt in the same screen the events folder is, go in there and add
event = "db\events\turkey.txt" under country specific events, that maybe your issue