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

rocklee

Private
1 Badges
Sep 3, 2012
22
1
  • Crusader Kings II: The Old Gods
#########################################################################
# France Election of 1936
#########################################################################
event = {
id = 490000
random = no
country = FRA

name = "ELECTION_TITLE"
desc = "ELECTION_DESC"
style = 0

trigger = {
government = democratic
NOT = {
ispuppet = FRA
}
}

date = { day = 23 month = march year = 1936 }

action_a = {
name = "ELECT_B"
command = { type = headofgovernment which = 2015 }
command = { type = foreignminister which = 2016 }
command = { type = armamentminister which = 2017 }
command = { type = ministerofsecurity which = 2018 }
command = { type = dissent value = -4 }

}
action_b = {
name = "ELECT_A"
command = { type = headofgovernment which = 2011 }
command = { type = foreignminister which = 2012 }
command = { type = armamentminister which = 2013 }
command = { type = ministerofsecurity which = 2014 }
command = { type = dissent value = -4 }
}
action_c = {
name = "KEEPCURRENT"
command = { type = dissent value = -6 }
}
}

This event does not start even after entering the number ;/ PLZ HELP :<
 
Hi Rocklee.
Been a while since I wrote/tested any events
(you could check out the Hacking Notes back under the HOI1 main page (that I put up a while ago).
[Just quickly check the hacking notes and it does seem to suggest that trigger should appear after the event Id, random indicator, country indicator)

I am not sure how important it is to get the structure of it in the right order... but your trigger seems out of order compared to
this one below that I wrote a while ago (and I know actually fires)
That is the only real difference I see

event = {
id = 1000426
random = no
country = AST
trigger = {
NOT = {
alliance = { country = AST country = JAP } # i.e. Australia not allied to Japan
}
}
name = "Workers Strike"
desc = "November 15 – Waterside workers at Port Kembla, New South Wales refuse to load a consignment of scrap iron destined for Japan, arguing that it would be used for munitions. Attorney-General Robert Menzies (Latter Prime Minister) attempts to force the loading of the cargo, earning himself the nickname 'Pig Iron Bob' "
style = 0
date = { day = 15 month = November year = 1938 }
offset = 2
deathdate = { day = 30 month = November year = 1938 }
action_a = {
name = "Strike"
command = { type = dissent value = 2 } #Dissent from the workforce unions when govt. tries to force it.
}
}


Hope it helps
 
Last edited:
Ok thx for answer :) Now my event works good, but sometimes France have a second election in 1936 xD I don't know what i must make that France don't have siblings xD election :D
 
Glad it helped.
I'd say you need a deathdate

From the Hacking Notes
3.9 Date, offset and deathdate
This is the date when the event may first happen. If this directive is used alone (no offset), the event will happen on this exact date if eventual triggers are met.

Example:

date = { day = 1 month = october year = 1938 }
The offset is a random offset in days, always used in conjunction with the date statement. It means that the event may happen on any of these days from the time specified in date. If the event has triggers it will start searching for triggers on this date.

Example:

offset = 300
In this case the event will start checking for triggers on a random date within 300 days from the date specified.

The deathdate is the deadline of an event, after which it may no longer be triggered. The deathdate statement is only useful if the event has a trigger condition. Events without a deathdate will fire if other triggers are valid on the date specified by the date/offset parameters above. If triggers are not valid on that date the event will never fire. If you want the event to keep looking for triggers you need to define a deathdate.

Example:

deathdate = { day = 1 month = october year = 1943 }
 
Ok thx for help. My bad is that I this my event in another txt file. When I give in france event he run perfect, but in 1936 i have 2 election in france. If I don't give this event france don't have election in 1936. WTF o_O :D
 
Random = no should mean it will only fire if
trigger is met
and ONLY fire one time...

are you sure you don't have 2 versions of the event included in the game?

Does the 2nd time it fires occur on the same day?
 
Hi.
1) I am not sure why you are moving it to December
2) Have you put a deathdate on your event? and it still fires 2 times?
3) have you checked if the event is in the file and is there is only 1 version.

maybe you should put the event back up so I can check changes.

edit:
4) Another question if France is democratic - when does it normally get elections
(I have not ever played France).
are you sure that the 2nd election event is yours?

I also have been assuming CORE mode and HOI1, though HOI vanilla events should work the same
 
Last edited: