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

Jenna Haze

Guest
Hi,

i created for nwo custom events for a dönitz coup after the 1954 west german president election which triggered civil war, ids ranging from 9999900 to 9999950 or so and they are working without a problem. Now i wanted to create some event for a possible allignment of this new west germany with nato but i cant get the event to trigger:

event = {
id = 9999980
country = GER
one_action = yes

name = "Fighter Incident"
desc = "German fighters accidentally enter DDR airspace"
style = 2
picture = "news_paper"


trigger = {
exists = DDR
NOT = { exists = DFR }
atwar = no
random = 50
}

date = { day = 0 month = september year = 1959 }
offset = 30
deathdate = { day = 29 month = december year = 1963 }

action = {
ai_chance = 95
name = "DDR radar doesnt detect our fighters" # We are lucky
command = { type = dissent value = -1 }
}

action = {
ai_chance = 5
name = "DDR radar detects our fighters" # We are unlucky
command = { type = trigger which = 9999981 }
}
}

Is there an error in the event which i overlooked? I tried everything until i even copied some other events and just used the id - it still did not work... Then i started to try some different event ids (which i think are unused) but it will still not fire up. (event id is not among the already slept ids in savegame)
What could possibly prevent this event from firing?
 
one_action = yes

Is this new? I only know the persistent = yes/no line.

Anything in the savebug.txt?

Edit: Btw i have problems with my new events in that id range (one digit more) too. Did them for Japan and they dont work in that file. But if i put them in the germany file they trigger.
 
Hi,

i created for nwo custom events for a dönitz coup after the 1954 west german president election which triggered civil war, ids ranging from 9999900 to 9999950 or so and they are working without a problem. Now i wanted to create some event for a possible allignment of this new west germany with nato but i cant get the event to trigger:

event = {
id = 9999980
country = GER
one_action = yes

name = "Fighter Incident"
desc = "German fighters accidentally enter DDR airspace"
style = 2
picture = "news_paper"


trigger = {
exists = DDR
NOT = { exists = DFR }
atwar = no
random = 50
}

date = { day = 0 month = september year = 1959 }
offset = 30
deathdate = { day = 29 month = december year = 1963 }

action = {
ai_chance = 95
name = "DDR radar doesnt detect our fighters" # We are lucky
command = { type = dissent value = -1 }
}

action = {
ai_chance = 5
name = "DDR radar detects our fighters" # We are unlucky
command = { type = trigger which = 9999981 }
}
}

Is there an error in the event which i overlooked? I tried everything until i even copied some other events and just used the id - it still did not work... Then i started to try some different event ids (which i think are unused) but it will still not fire up. (event id is not among the already slept ids in savegame)
What could possibly prevent this event from firing?
maybe this is stopping it ?

random = x ( % ) # not to be confused with the above random = yes/no this sets a percentage chance for the event to trigger
 
Thats not whats causing the problems, i removed one_action and random = 50 but it still wont fire. I guess the game doesnt recognize the event ids above 9999950 but i dont know why, they are not already used and i tried completely different event ids and it is still not working. Never had a problem like this i am lost! o_O
 
event = {
id = 5565813
country = KOR
one_action = yes

name = "Fighter Incident"
desc = "German fighters accidentally enter DDR airspace"
style = 2
picture = "news_paper"


trigger = {
exists = CHC
NOT = { exists = PKR }
atwar = no
#random = 50
}

date = { day = 0 month = september year = 1957 }
offset = 10
deathdate = { day = 29 month = december year = 1963 }

action = {
ai_chance = 95
name = "DDR radar doesnt detect our fighters" # We are lucky
command = { type = dissent value = -1 }
}

action = {
ai_chance = 5
name = "DDR radar detects our fighters" # We are unlucky
command = { type = dissent value = -5 }
}
}

Okay, I took your event and modified some conditions for it to work in my test save for my Korean game, so that explains why I changed tags to KOR, PKR and CHC instead of yours, along pulling back the date since my test save is for 1958.

I also removed the random section since, well, I didn't want to wait ages for it to fire haha. And finally, I also modified the ID, I'm not sure about the exact number of id's you can use, so I just continued the numbers I've used for my Korean events. And'ddd, last change, I changed the effects of both choices since I didn't want to mess it up due to not having the event that was supposed to be triggered in case of the 5%.

So, I loaded my Korean game (January 1st, 1958) and ran several days, it eventually triggered by January 23rd if I'm not wrong. So, maybe the ID is the source of the problem, if not, try using this one and just change the tags and effects and tell me if it worked at all.
 
Apparently the game does not recognize any event id anymore except the "old events" (including my own events that released germany from federal republic of germany), i am pretty sure i could try 1000 different ids the game doesnt want to fire anything i am adding.
 
No its in the same file with my other custom events (which are working), i really dont understand why the game doesnt want to recognize any new event no matter what id i try.
 
I tried again some things....

This event works fine:
event = {
id = 9999900
random = no
country = DFR

name = EVT_2_NAME
desc = EVT_2_DESC
style = 2
picture = "news_paper"

trigger = {
government = democratic
atwar = no
NOT = {
exists = GER
}
}

date = { day = 17 month = july year = 1954 }

action = {
ai_chance = 99
name = EVT_2_ACTA
command = { type = dissent value = -1 }
command = { type = headofstate which = 630001 } #Heuss
}
action = {
ai_chance = 1
name = EVT_2_ACTB
command = { type = dissent value = 40 }
command = { type = domestic which = democratic value = 4 }
command = { type = domestic which = political_left value = 5 }
command = { type = headofstate which = 630058 } #Dönitz
command = { type = trigger which = 9999901 }
}
}

Now i changed the id to 9999980 (The id of my new event that doesnt want to work) - still working as it should. Then i changed the tags to country = GER and trigger to DFR and suddenly its not working anymore. (there is no problem firing the original event with ger or any other country). So my guess is that the game either no longer accepts new events or that there is some issue with the GER tag.
 
I tried again some things....

This event works fine:
event = {
id = 9999900
random = no
country = DFR

name = EVT_2_NAME
desc = EVT_2_DESC
style = 2
picture = "news_paper"

trigger = {
government = democratic
atwar = no
NOT = {
exists = GER
}
}

date = { day = 17 month = july year = 1954 }

action = {
ai_chance = 99
name = EVT_2_ACTA
command = { type = dissent value = -1 }
command = { type = headofstate which = 630001 } #Heuss
}
action = {
ai_chance = 1
name = EVT_2_ACTB
command = { type = dissent value = 40 }
command = { type = domestic which = democratic value = 4 }
command = { type = domestic which = political_left value = 5 }
command = { type = headofstate which = 630058 } #Dönitz
command = { type = trigger which = 9999901 }
}
}

Now i changed the id to 9999980 (The id of my new event that doesnt want to work) - still working as it should. Then i changed the tags to country = GER and trigger to DFR and suddenly its not working anymore. (there is no problem firing the original event with ger or any other country). So my guess is that the game either no longer accepts new events or that there is some issue with the GER tag.

I have the same prob with my Japan Events.

If i put them in my GER file its working (and new GER events too), but not in my JAP file.
 
If I understand you correctly
Code:
...
country = DFR
...
trigger...
NOT (exists = GER)

works, Right?
Which means at the time you are firing the event GER doesn't exist as a country, Right?

Changing it to

country = GER, assuming the same situation, is invalid.

Or?
 
While it is true that there's a limit to the event id (which unfortunately I can't recall now), there's no specific limit to event files or to the GER tag.

There's probably an error somewhere. Is savedebug pointing at something? Are you sure that there are not extra } that close the file and block subsequent events?
 
I dont think there is anything wrong with my event, i even tried out the event rv-ye posted and i changed my event many times to test for errors, nothing helps.