• 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.
Insert in an event file and replace -1 with the ID of the province you want.
#########################################################################
# Partisan Attacks
#########################################################################
event = {
id = 154310
random = no
trigger = { }
name = "."
desc = "."

action_a = {
name = "."
command = { type = revolt where = -1 }
command = { type = revolt where = -1 }
command = { type = revolt where = -1 }
command = { type = revolt where = -1 }
command = { type = revolt where = -1 }
}
}
 
Hi. I play customized AAR and I try to write event that will enable to spawn Mittelafrika (the same as in Kaiserreich) after Versailles Treaty. I wrote chain of event but game refuses to recognize the country (Mittelafrika is "Mali"). The country is not among selectables cause, like Soviets, it needs war to be created.

event = {
country = GER
id = 58487
random = no
style = 0
picture = "default"

name = "Create Mittelafrika?"
desc = ""

trigger = {
event = 21931
event = 27803
event = 278030
event = 21926
event = 21928
event = 219280
event = 219380
event = 21938
}
NOT = {
exists = MAL
}
}

date = { day = 0 month = january year = 1911 }
offset = 1
deathdate = { day = 0 month = january year = 1925 }

action_a = {
name = "Create a german dominium of Mittelafrika"
command = { type = independence which = MAL value = 1 }
command = { type = trigger which = 58488 }
}
action_b = {
name = "No"
command = { type = sleepevent which = 58488 }
command = { type = dissent value = 10 }
}
}

event = {
country = GER
id = 58488
random = no
style = 0
picture = "default"

name = "Mittelafrika"
desc = ""


# Triggered by German 58487

date = { day = 0 month = january year = 1911 }
offset = 1
deathdate = { day = 0 month = january year = 1925 }

action_a = {
name = "Africa united under the German rule"
command = { type = make_puppet which = MAL }
command = { type = secedeprovince which = MAL value = 1125 }
command = { type = secedeprovince which = MAL value = 1124 }
command = { type = secedeprovince which = MAL value = 1064 }
command = { type = secedeprovince which = MAL value = 1059 }
command = { type = secedeprovince which = MAL value = 1061 }
command = { type = secedeprovince which = MAL value = 1060 }
command = { type = secedeprovince which = MAL value = 999 }
command = { type = secedeprovince which = MAL value = 1007 }
command = { type = secedeprovince which = MAL value = 1008 }
command = { type = secedeprovince which = MAL value = 1009 }
command = { type = secedeprovince which = MAL value = 1010 }
command = { type = secedeprovince which = MAL value = 1011 }
command = { type = secedeprovince which = MAL value = 1012 }
command = { type = secedeprovince which = MAL value = 1145 }
command = { type = secedeprovince which = MAL value = 1085 }
command = { type = secedeprovince which = MAL value = 1132 }
command = { type = secedeprovince which = MAL value = 1128 }
command = { type = secedeprovince which = MAL value = 1129 }
command = { type = secedeprovince which = MAL value = 1126 }
command = { type = secedeprovince which = MAL value = 1099 }
command = { type = secedeprovince which = MAL value = 1104 }
command = { type = secedeprovince which = MAL value = 1105 }
command = { type = secedeprovince which = MAL value = 1111 }
command = { type = secedeprovince which = MAL value = 1112 }
command = { type = secedeprovince which = MAL value = 1000 }
command = { type = secedeprovince which = MAL value = 1001 }
command = { type = secedeprovince which = MAL value = 1002 }
command = { type = secedeprovince which = MAL value = 982 }
command = { type = secedeprovince which = MAL value = 988 }
command = { type = secedeprovince which = MAL value = 992 }
command = { type = secedeprovince which = MAL value = 1075 }
command = { type = secedeprovince which = MAL value = 1076 }
command = { type = secedeprovince which = MAL value = 1092 }
command = { type = secedeprovince which = MAL value = 1093 }
command = { type = secedeprovince which = MAL value = 978 }
command = { type = secedeprovince which = MAL value = 991 }
command = { type = secedeprovince which = MAL value = 993 }
command = { type = secedeprovince which = MAL value = 994 }
command = { type = secedeprovince which = MAL value = 995 }
command = { type = secedeprovince which = MAL value = 996 }
command = { type = secedeprovince which = MAL value = 997 }
command = { type = secedeprovince which = MAL value = 1005 }
command = { type = secedeprovince which = MAL value = 1006 }
command = { type = secedeprovince which = MAL value = 1070 }
command = { type = secedeprovince which = MAL value = 1078 }
command = { type = secedeprovince which = MAL value = 1079 }
command = { type = secedeprovince which = MAL value = 1080 }
command = { type = secedeprovince which = MAL value = 981 }
command = { type = secedeprovince which = MAL value = 984 }
command = { type = secedeprovince which = MAL value = 987 }
command = { type = secedeprovince which = MAL value = 989 }
command = { type = secedeprovince which = MAL value = 990 }
command = { type = secedeprovince which = MAL value = 1072 }
command = { type = secedeprovince which = MAL value = 1073 }
command = { type = secedeprovince which = MAL value = 1095 }
command = { type = secedeprovince which = MAL value = 1098 }
command = { type = secedeprovince which = MAL value = 1071 }
command = { type = secedeprovince which = MAL value = 1127 }
command = { type = secedeprovince which = MAL value = 1142 }
command = { type = secedeprovince which = MAL value = 1143 }
command = { type = secedeprovince which = MAL value = 1144 }
command = { type = secedeprovince which = MAL value = 1074 }
command = { type = secedeprovince which = MAL value = 1034 }
command = { type = secedeprovince which = MAL value = 1055 }
command = { type = secedeprovince which = MAL value = 1056 }
command = { type = secedeprovince which = MAL value = 1058 }
command = { type = secedeprovince which = MAL value = 1094 }
command = { type = secedeprovince which = MAL value = 1096 }
command = { type = secedeprovince which = MAL value = 1097 }
command = { type = secedeprovince which = MAL value = 1100 }
command = { type = secedeprovince which = MAL value = 1101 }
command = { type = secedeprovince which = MAL value = 1102 }
command = { type = secedeprovince which = MAL value = 1103 }
command = { type = secedeprovince which = MAL value = 983 }
command = { type = secedeprovince which = MAL value = 1090 }
command = { type = secedeprovince which = MAL value = 1131 }
command = { type = secedeprovince which = MAL value = 1133 }
command = { type = secedeprovince which = MAL value = 1138 }
}
}
What is wrong and how to spawn Mittelafrika. Why game doesn't recognize a country although it is in registry?
 
Hello chaps, I am currently trying to create an event which is triggered by reoccupation of the Rhineland id 2000 in which Hitler and the Nazi party is removed from power my the army. I was thinking of using the ID's of the Hitler Assassinated events and the script of these events when I encountered this:

control = { province = 43 data = GER } #Dunkerque
}
}
}
}

name = "EVT_2025_NAME"

This is based in between of the Hitler assassinated trigger's and the event's codding, I wondered what does this mean? I am fairly new to modding so i imagine i am ignorant of a few details about the craft. Normally there are only two such Brackets and i was wondering why in this case there are four.

Another element of the coding which i would like explained is this:

}
}
#########################################################################
# Failed Assassination of Hitler
#########################################################################


Normally there is a space in between events, i wondered why in this case the Bracket is right above the next event with no space between them. Is this because both events are linked?

My last question for today is if i create a new country how do i create events for that new country? For Germany and other countries there are free Id's not used by the game but for many countries such as Israel for example there are no Id's assigned to the country. Do i use the free id's in the Hearts of iron 2 event list? how do event id's work? is it possible to create your own id's? can i use any free id or are these limited to their assigned country? The tutorials only tell me that much.

Many thanks for your attention

UPDATE

It seems that the event is working so i will go on improving it and possibly add a restoration for the monarchy event among other things.

For the time being the event is fairly simple, the trigger is event 2000 and the event itself is mostly the Hitler assassinated event.

My question is how do i make the event occur a few days after event 2000 instead of right away?

Additionally i would like to know how do i edit the event text for it?

Again Many thanks and good day
 
Last edited: