• 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(114671)

Sergeant
Sep 14, 2008
60
0
Hi,

Since I'm developing a new modern Napoleonic mod for the game, so obviously I'm doing a lot of event-writing nowdays.

My first question is about this event. The game gives me that message with the "Error: unexpected" something and crashes the game.

#############################################
###### Hitler Is Assassinated!
#############################################
event = {
id = 2000116
random = no
country = GER
trigger = {
event = 2000113
owned = { province = 532 data = FRA }

}

name = "Hitler Is Assassinated!"
desc = "Switzerland's aggresive annexation by France proved to the people of Germany that defeating France wasn't enough. A hardcore Nazi killed him, claiming he backstabbed his country by choosing that directive against France, and now - a new, more pragmatic leadership promises to befriend the world's nations in order to create a coalition that will have the combined force to utterly crush France, to ensure it never rises against us again. Our first target should be an allaince with the UK, who also grew wary of France's warmongering."
style = 0

date = { day = 1 month = march year = 1938 }
offset = 9
deathdate = { day = 1 month = may year = 1939 }

action_a = {
name = "Ask Britain to join us"
command = { type = trigger which = 2000060 }
command = { type = sleepminister which = 1 }
command = { type = sleepminister which = 41 }
command = { type = sleepminister which = 177 }
ai_chance = 100
}
action_b = {
name = "We got them once, we can do it again"
command = { type = dissent value = 2 }
command = { type = sleepminister which = 1 }
command = { type = sleepminister which = 41 }
command = { type = sleepminister which = 177 }
ai_chance = 0
}

}

my second question is regarding locating problems in event files. If, for example, you've accidentally double-posted an event in two different country files, and the game informs you of that - is there a fast way to locate the two events' locations rather than opening every possible file and search for the event in it?