14-08-2007, 08:37
|
#1
|
|
WIF2...

Join Date: Dec 2006
Location: The City of Light, EU
Posts: 6,130
|
Why don't my events work ?
Ok, i'm working about an ai mod. Then, i added some events as for italian reddition, as the vanilla's one are buggued. Here they are :
Quote:
################################################## ###################
# La chute de Mussolini
################################################## ###################
event = {
id = 50004
random = no
country = ITA
trigger = {
atwar = yes
OR = {
headofgovernment = 3002 # Mussolini
headofgovernment = 3043
}
OR = {
war = { country = FRA country = ITA }
war = { country = ENG country = ITA }
war = { country = USA country = ITA }
}
NOT = { event = 36
OR = { exists = RSI
war = { country = GER country = ITA }
}
OR = {
alliance = { country = ITA country = ENG }
alliance = { country = ITA country = USA } # italie ne fait pas partie des alliés
alliance = { country = ITA country = FRA }
}
control = { province = 523 data = ITA } # débarquement ita du sud
control = { province = 524 data = ITA }
control = { province = 519 data = ITA }
control = { province = 521 data = ITA } # débarquement Naples et Foggia
control = { province = 520 data = ITA }
control = { province = 515 data = ITA } # débarquement Florence et La Spezia
control = { province = 518 data = ITA } # débarquement Rimini et Bologne
control = { province = 517 data = ITA }
}
}
}
}
date = { day = 20 month = july year = 1936 }
offset = 20
deathdate = { day = 20 month = december year = 1953 }
name = "Motion de censure contre le Duce"
desc = "Avec l'invasion du pays par les Alliés, le Grand Conseil Fasciste vient de se réunir avec le Duce. L'ambiance est morose et houleuse. Mussolini tente de ranimer la flamme du combat pour repousser l'invasion mais tous les plus grands dignitaires du Parti comme De Bono, De Vecchi, Ciano, Grandi et Bottai exigent que le Roi retrouve la plénitude de son pouvoir, que le Duce abandonne son poste et que le Grand Conseil et la Couronne dirigent à sa place le pays. Même Ciano vota contre lui."
style = 0
picture = "ita"
action_a = {
name = "Mussolini perd le soutien de son Parti"
command = { type = dissent value = 5 }
command = { type = sleepevent which = 36 }
}
}
################################################## ###################
# Le Roi remercie le Duce
################################################## ###################
event = {
id = 50005
random = no
country = ITA
trigger = {
atwar = yes
event = 50004 # motion de censure
OR = {
headofgovernment = 3002 # Mussolini
headofgovernment = 3043
}
OR = {
war = { country = FRA country = ITA }
war = { country = ENG country = ITA }
war = { country = USA country = ITA }
}
NOT = { OR = { exists = RSI
war = { country = GER country = ITA }
}
}
}
date = { day = 27 month = july year = 1936 }
offset = 20
deathdate = { day = 27 month = december year = 1953 }
name = "Le Roi destitue le Duce"
desc = "L'invasion de l'Italie et le vote de la motion de censure du Grand Conseil contre le Duce conduit le Roi Victor Emmanuel III à agir pour sauver son pays de la ruine. Il convoqua à la Villa Savoia le Duce qui y subit un terrible désaveau du Roi qui lui fait remarquer l'état de l'Armée, le désaveu du Parti fasciste, le moral désastreux de la population. Du coup, Mussolini est destitué de ses fonctions. Le Maréchal Pietro Badoglio est chargé de faire le nouveau gouvernement. "
style = 0
picture = "ita1"
action_a = {
name = "Le Duce est évincé"
ai_chance = 100
command = { type = dissent value = -6 } # régime paternaliste
command = { type = set_domestic which = democratic value = 7 }
command = { type = set_domestic which = political_left value = 4 }
command = { type = domestic which = freedom value = 4 }
command = { type = set_relation which = SOV value = 30 }
command = { type = set_relation which = USA value = 50 }
command = { type = set_relation which = ENG value = 50 }
command = { type = set_relation which = GER value = -40 }
command = { type = trigger which = 50006 }
}
action_b = {
name = "Le Roi garde sa confiance au Duce"
ai_chance = 0
command = { }
}
}
event = {
id = 50006
random = no
country = ITA
name = "Le Gouvernement de Badoglio"
desc = "L'invasion de l'Italie et le vote de la motion de censure du Grand Conseil contre le Duce conduit le Roi Victor Emmanuel III à agir pour sauver son pays de la ruine. Il vient de nommer le Maréchal Pietro Badoglio à la tête du nouveau gouvernement. Le but étant de redresser la situation, de faire des ouvertures de paix avec les Alliés. Le premier acte du Maréchal Badoglio est de faire arrêter le Duce... Une page noire du pays commence à se tourner."
style = 0
picture = "ita"
action_a = {
name = "Mettons fin au Fascisme"
command = { type = headofstate which = 3033 }
command = { type = headofgovernment which = 3045 } # Pietro badoglio
command = { type = foreignminister which = 3054 } # Pietro Conte Acquarone
command = { type = armamentminister which = 3078 } # Francesco Orestano
command = { type = ministerofsecurity which = 3098 } # Conde Stefano Jacini
command = { type = ministerofintelligence which = 3016 } # Umberto Ricci
command = { type = chiefofstaff which = 3128 } # Vittorio Ambrosio
command = { type = chiefofarmy which = 3018 } # Enrico Mattei
command = { type = chiefofnavy which = 3154 } # Raffaele de Courten
command = { type = chiefofair which = 3164 } # Tomasso Tittoni
command = { type = sleepleader which = 6029 }
command = { type = sleepleader which = 6031 }
command = { type = sleepleader which = 6057 }
command = { type = sleepleader which = 6249 }
command = { type = sleepleader which = 6250 }
command = { type = sleepleader which = 6065 }
command = { type = sleepleader which = 6074 }
command = { type = sleepleader which = 6084 }
command = { type = sleepleader which = 6258 }
command = { type = sleepleader which = 6261 }
command = { type = sleepleader which = 6263 }
command = { type = sleepleader which = 6266 }
command = { type = sleepleader which = 6124 }
command = { type = sleepleader which = 6269 }
command = { type = sleepleader which = 6274 }
command = { type = sleepleader which = 6275 }
command = { type = sleepleader which = 6164 }
command = { type = sleepleader which = 6173 }
command = { type = sleepleader which = 6276 }
command = { type = sleepleader which = 6188 }
command = { type = sleepleader which = 6277 }
command = { type = sleepleader which = 6201 }
command = { type = sleepleader which = 6206 }
command = { type = sleepleader which = 6218 }
command = { type = sleepleader which = 6233 }
command = { type = sleepleader which = 6278 }
command = { type = sleepleader which = 6237 }
command = { type = sleepleader which = 6054 }
command = { type = sleepleader which = 6076 }
command = { type = sleepleader which = 6079 }
command = { type = sleepleader which = 6257 }
}
}
################################################## ###################
# Hitler et le retournement italien
################################################## ###################
event = {
id = 50007
random = no
country = GER
name = "Une Trahison comme en 1915"
desc = "Le Führer est entré dans une rage folle. Il vient d'apprendre successivement que le Roi Victor Emmanuel III vient de renverser le Duce, qu'il vient de confier le pouvoir à Piétro Badoglio, que le régime fasciste vient de s'effondrer en Italie et que le Duce vient d'être arrêté et emprisonné. Il craint légitimement que l'Italie réedite le coup de 1915 lorsqu'elle renversa ses alliances. Du coup, il ordonna que l'on dresse des plans pour l'invasion de l'Italie..."
style = 0
picture = "Italia"
action_a = {
name = "Ce sont tous des traîtres !"
command = { type = relation which = ITA value = -150 }
}
}
################################################## ###################
# L'Italie demande la paix
################################################## ###################
event = {
id = 50008
random = no
country = ITA
trigger = {
OR = {
war = { country = ITA country = ENG }
war = { country = ITA country = USA }
war = { country = ITA country = FRA }
}
NOT = {
war = { country = ITA country = GER }
OR = {
headofgovernment = 3002 # mussolini
headofgovernment = 3043
}
}
}
date = { day = 1 month = august year = 1936 }
offset = 10
deathdate = { day = 25 month = december year = 1953 }
name = "L'Italie rompera-telle le Pacte d'Acier ?"
desc = "Avec la chûte de Mussolini et le gouvernement du Maréchal Badoglio, l'Italie comprend que la lutte est perdue d'avance. Ses armées sont souvent écrasées et la péninsule est envahie par les Alliés. Du coup, l'Italie vient de décider de rompre le Pacte d'Acier, de pactiser avec les Alliés et de déclarer la guerre contre l'Allemagne. C'est un terrible coup pour les allemands mais ils sont décidés à nous faire payer cette trahison... Mais allez-vous suivre les pas de l'Histoire ?"
style = 0
picture = "Ita_Surrender"
action_a = {
name = "Oui, renversons nos alliances"
ai_chance = 100
command = { type = leave_alliance }
command = { type = peace which = ENG }
command = { type = peace which = SOV }
command = { type = independence which = RSI value = 0 when = 0 }
command = { type = secedeprovince which = RSI value = 531 } # Turin
command = { type = secedeprovince which = RSI value = 370 } # Milan
command = { type = secedeprovince which = RSI value = 371 } # trente
command = { type = secedeprovince which = RSI value = 378 } # venise
command = { type = secedeprovince which = RSI value = 368 } # gêne
command = { type = secedeprovince which = RSI value = 369 } # La Spezia
command = { type = secedeprovince which = RSI value = 512 } # Bologna
command = { type = secedeprovince which = RSI value = 379 } # Ferrare
command = { type = secedeprovince which = RSI value = 513 } # Florence
command = { type = secedeprovince which = RSI value = 514 } # Rimini
command = { type = secedeprovince which = GER value = 367 } # France du Sud + Corse
command = { type = secedeprovince which = GER value = 527 } # province cédés si occupé par l'Italie
command = { type = secedeprovince which = GER value = 365 } # sinon rien ne se passe
command = { type = secedeprovince which = GER value = 528 }
command = { type = secedeprovince which = GER value = 364 }
command = { type = secedeprovince which = GER value = 366 }
command = { type = secedeprovince which = GER value = 390 } # Albanie
command = { type = secedeprovince which = GER value = 391 }
command = { type = secedeprovince which = GER value = 392 } # Grèce
command = { type = secedeprovince which = GER value = 412 }
command = { type = secedeprovince which = GER value = 411 }
command = { type = secedeprovince which = GER value = 410 }
command = { type = secedeprovince which = GER value = 402 }
command = { type = secedeprovince which = GER value = 403 }
command = { type = secedeprovince which = GER value = 401 }
command = { type = secedeprovince which = GER value = 400 }
command = { type = secedeprovince which = GER value = 405 }
command = { type = secedeprovince which = GER value = 398 }
command = { type = secedeprovince which = GER value = 399 }
command = { type = secedeprovince which = GER value = 393 }
command = { type = secedeprovince which = GER value = 394 }
command = { type = secedeprovince which = GER value = 395 }
command = { type = secedeprovince which = GER value = 380 } # Yougoslavie
command = { type = secedeprovince which = GER value = 459 }
command = { type = secedeprovince which = GER value = 454 }
command = { type = secedeprovince which = GER value = 415 }
command = { type = secedeprovince which = GER value = 455 }
command = { type = secedeprovince which = GER value = 382 }
command = { type = secedeprovince which = GER value = 493 }
command = { type = secedeprovince which = GER value = 413 }
command = { type = secedeprovince which = GER value = 381 }
command = { type = secedeprovince which = GER value = 383 }
command = { type = secedeprovince which = GER value = 494 }
command = { type = secedeprovince which = GER value = 414 }
command = { type = secedeprovince which = GER value = 384 }
command = { type = secedeprovince which = GER value = 385 }
command = { type = secedeprovince which = GER value = 453 }
command = { type = secedeprovince which = GER value = 386 }
command = { type = secedeprovince which = GER value = 387 }
command = { type = secedeprovince which = GER value = 451 }
command = { type = secedeprovince which = GER value = 388 }
command = { type = secedeprovince which = GER value = 389 }
command = { type = secedeprovince which = GER value = 418 }
command = { type = secedeprovince which = GER value = 452 }
command = { type = independence which = ETH value = 1 } #Ethipoia liberated
command = { type = secedeprovince which = ETH value = 1051 } #Dire dawa
command = { type = secedeprovince which = ETH value = 1042 } #Gondar
command = { type = secedeprovince which = ETH value = 1047 } #Jimma
### Colonial Provinces seceded to England
command = { type = secedeprovince which = ENG value = 931 } #Ghadames
command = { type = secedeprovince which = ENG value = 932 } #Tripoli
command = { type = secedeprovince which = ENG value = 933 } #Zuara
command = { type = secedeprovince which = ENG value = 918 } #Forte Maddalena
command = { type = secedeprovince which = ENG value = 917 } #Forte Capuzzo
command = { type = secedeprovince which = ENG value = 927 } #Aujila
command = { type = secedeprovince which = ENG value = 916 } #Bardiyah
command = { type = secedeprovince which = ENG value = 926 } #Al Jaghbub
command = { type = secedeprovince which = ENG value = 930 } #Homs
command = { type = secedeprovince which = ENG value = 920 } #Darnah
command = { type = secedeprovince which = ENG value = 919 } #Tobruk
command = { type = secedeprovince which = ENG value = 924 } #Benghazi
command = { type = secedeprovince which = ENG value = 921 } #Mechili
command = { type = secedeprovince which = ENG value = 922 } #Msus
command = { type = secedeprovince which = ENG value = 923 } #Barca
command = { type = secedeprovince which = ENG value = 925 } #Agedabia
command = { type = secedeprovince which = ENG value = 929 } #Sirte
command = { type = secedeprovince which = ENG value = 928 } #Socna
command = { type = secedeprovince which = ENG value = 1015 } #Ghat
command = { type = secedeprovince which = ENG value = 1016 } #Murzuk
command = { type = secedeprovince which = ENG value = 1017 } #Calansho Sand Sea
command = { type = secedeprovince which = ENG value = 1018 } #Kufra
command = { type = secedeprovince which = ENG value = 1036 } #Zeila
command = { type = secedeprovince which = ENG value = 1038 } #Asab
command = { type = secedeprovince which = ENG value = 1033 } #Massaua
command = { type = secedeprovince which = ENG value = 1039 } #Asmara
command = { type = secedeprovince which = ENG value = 1035 } #Berbera
command = { type = secedeprovince which = ENG value = 1034 } #Obbia
command = { type = secedeprovince which = ENG value = 1058 } #Kismayo
command = { type = secedeprovince which = ENG value = 1056 } #Mogadishu
command = { type = secedeprovince which = FRA value = 1037 } #Djibouti
command = { type = secedeprovince which = ENG value = 1055 } #Bardera
command = { type = trigger which = 50009 }
}
action_b = {
name = "Non, Restons fidèles à nos alliances"
ai_chance = 0
command = { }
}
}
################################################## ##################
# La République de Salo
################################################## ###################
event = {
id = 50009
random = no
country = RSI
name = "Gouvernement de la République"
desc = "Sous la pression des allemands, le Duce, qui vient d'être libéré par un commando lors d'une opération audacieuse, accepte à contrecoeur de fonder une république fasciste en Italie du Nord, quitte à engendrer une guerre civile dans la péninsule. Ce sera la République Sociale Italienne plus connu sous le nom de République de Salo puisqu'elle ne reconnaît plus l'autorité du Roi Victor-Emmanuel III. Désormais, le pays est divisé en deux. Le plus fort vaincra..."
style = 0
picture = "salo1"
action_a = {
name = "Le nouveau cabinet siège enfin"
command = { type = headofstate which = 508001 } # Mussolini
command = { type = headofgovernment which = 508002 } # Starace
command = { type = foreignminister which = 508003 } # Moroni
command = { type = ministerofsecurity which = 508005 } # Guido Buffarini Guidi
command = { type = armamentminister which = 508004 } # Giampetro Pellegrini
command = { type = ministerofintelligence which = 508006 } # Sambruni
command = { type = chiefofair which = 508010 } # Tessari
command = { type = chiefofnavy which = 508009 } # Pier Angelo Brandimarte
command = { type = chiefofstaff which = 508007 } # Gastone Gambara
command = { type = chiefofarmy which = 508008 } # Rodolfo Graziani
command = { type = money value = -200 }
command = { type = set_domestic which = democratic value = 1 }
command = { type = set_domestic which = political_left value = 1 }
command = { type = set_domestic which = freedom value = 1 }
command = { type = set_domestic which = free_market value = 2 }
command = { type = set_domestic which = professional_army value = 8 }
command = { type = set_domestic which = defense_lobby value = 7 }
command = { type = set_domestic which = interventionism value = 9 }
}
}
################################################## ###################
# L'entrevue de Rastenburg
################################################## ###################
event = {
id = 50010
random = no
country = GER
trigger = { exists = RSI
event = 50009
}
date = { day = 13 month = august year = 1939 }
offset = 10
deathdate = { day = 3 month = december year = 1953 }
name = "L'entrevue de Rastenburg"
desc = "Hitler rencontre à Rastenberg le Duce récemment libéré. Il souhaite l'obliger à continuer la lutte mais le Duce est trop démoralisé et veut capituler. Adolf Hitler s'y oppose avec force et l'ordonne sous la menace de terribles représailles contre la population de former rapidement une armée et de continuer la lutte avec sa nouvelle République de Salo. De fait, la République Sociale Italienne n'est plus qu'un état fantoche de l'Allemagne..."
style = 0
picture = "Rastenburg"
action_a = {
name = "Le Duce devient notre vassal"
command = { type = make_puppet which = RSI }
command = { type = set_relation which = RSI value = 200 }
}
}
################################################## ###################
# Alliance avec les Alliés et guerre contre l'Axe
################################################## ###################
event = {
id = 50011
random = no
country = ITA
trigger = {
event = 50008
}
date = { day = 10 month = august year = 1939 }
offset = 20
deathdate = { day = 3 month = december year = 1953 }
name = "Rejoindre les Nations Unies ?"
desc = "L'Italie vient de subir un grand tournant dans son histoire : elle vient d'évincer le Duce, de rompre le pacte avec l'Allemagne et de signer la paix avec les Alliés. Mais le gouvernement royal s'interroge pour savoir q'il est opportun de se lancer dans une nouvelle guerre aux côtés des Alliés. Le pays est envahit, épuisé mais il ne fait guère de doute que l'Allemagne ne cherche à se venger de notre trahison. Vaut mieux être du côté des Alliés. Qu'allez-vous décider ? "
style = 0
picture = "mod33-protocole"
action_a = {
name = "Déclarons la guerre contre l'Allemagne !"
command = { type = alliance which = ENG }
}
}
################################################## ###################
# La Ligne Gustav
################################################## ###################
event = {
id = 50012
random = no
country = ITA
trigger = {
ai = yes
atwar = yes
control = { province = 519 data = ITA } # Anzio,
control = { province = 518 data = ITA } # Pescara
control = { province = 517 data = ITA } # et Cassino
NOT = {
OR = {
control = { province = 520 data = ITA } # Naples
control = { province = 521 data = ITA } # Foggia
}
}
}
date = { day = 1 month = january year = 1933 }
offset = 5
deathdate = { day = 30 month = december year = 1953 }
name = "La Ligne Gustav"
desc = " "
style = 0
action_a = {
name = "Construisons la ligne"
command = { type = construct which = land_fort where = 519 value = 2 }
command = { type = construct which = land_fort where = 518 value = 2 }
command = { type = construct which = land_fort where = 517 value = 2 }
command = { type = add_corps which = "Guardia Nazionale" value = land when = -1 where = 519 }
command = { type = add_division which = "1a. Guardia" value = garrison when = -1 }
command = { type = add_division which = "2a. Guardia" value = garrison when = -1 }
command = { type = add_corps which = "2a. Guardia Italiana" value = land when = -1 where = 518 }
command = { type = add_division which = "3a. Guardia" value = garrison when = -1 }
command = { type = add_corps which = "1a. Guardia Italiana" value = land when = -1 where = 517 }
command = { type = add_division which = "4a. Guardia" value = garrison when = -1 }
}
}
################################################## ###################
# La Ligne Trasimène
################################################## ###################
event = {
id = 50013
random = no
country = RSI
trigger = {
ai = yes
atwar = yes
control = { province = 513 data = RSI }
control = { province = 514 data = RSI }
NOT = {
OR = {
control = { province = 515 data = RSI }
control = { province = 516 data = RSI }
control = { province = 517 data = RSI }
}
}
}
date = { day = 1 month = january year = 1933 }
offset = 5
deathdate = { day = 30 month = december year = 1953 }
name = "La Ligne Trasimène"
desc = " "
style = 0
action_a = {
name = "Construisons la ligne"
command = { type = construct which = land_fort where = 514 value = 1 }
command = { type = construct which = land_fort where = 513 value = 1 }
command = { type = add_corps which = "3a. Guardia Italiana" value = land when = -1 where = 514 }
command = { type = add_division which = "5a. Guardia" value = garrison when = -1 }
command = { type = add_corps which = "4a. Guardia Italiana" value = land when = -1 where = 513 }
command = { type = add_division which = "6a. Guardia" value = garrison when = -1 }
}
}
################################################## ###################
# La Ligne Gothique
################################################## ###################
event = {
id = 50014
random = no
country = RSI
trigger = {
ai = yes
atwar = yes
control = { province = 369 data = RSI } # Bologne et la Spezia
control = { province = 512 data = RSI }
NOT = {
OR = {
control = { province = 513 data = RSI } # Florence et Rimini
control = { province = 514 data = RSI }
}
}
}
date = { day = 1 month = january year = 1933 }
offset = 5
deathdate = { day = 30 month = december year = 1953 }
name = "La Ligne Gothique"
desc = " "
style = 0
action_a = {
name = "Construisons la ligne"
command = { type = construct which = land_fort where = 512 value = 2 }
command = { type = construct which = land_fort where = 369 value = 2 }
command = { type = add_corps which = "5a. Guardia Italiana" value = land when = -1 where = 512 }
command = { type = add_division which = "7a. Guardia" value = garrison when = -1 }
command = { type = add_corps which = "6a. Guardia Italiana" value = land when = -1 where = 369 }
command = { type = add_division which = "8a. Guardia" value = garrison when = -1 }
}
}
################################################## ###################
# La Ligne Gengis Khan
################################################## ###################
event = {
id = 50015
random = no
country = RSI
trigger = {
ai = yes
atwar = yes
control = { province = 370 data = RSI } # Milan et Venise
control = { province = 378 data = RSI }
NOT = {
OR = {
control = { province = 369 data = RSI }
control = { province = 512 data = RSI }
control = { province = 379 data = RSI }
}
}
}
date = { day = 1 month = january year = 1933 }
offset = 5
deathdate = { day = 30 month = december year = 1953 }
name = "La Ligne Gengis Khan"
desc = " "
style = 0
action_a = {
name = "Construisons la ligne"
command = { type = construct which = land_fort where = 370 value = 1 }
command = { type = construct which = land_fort where = 378 value = 1 }
command = { type = add_corps which = "7a. Guardia Italiana" value = land when = -1 where = 370 }
command = { type = add_division which = "9a. Guardia" value = garrison when = -1 }
command = { type = add_corps which = "8a. Guardia Italiana" value = land when = -1 where = 378 }
command = { type = add_division which = "10a. Guardia" value = garrison when = -1 }
}
}
|
So, why don't they work ?
|
|
|