AdanALW, editing CSV files for ministers is rather straightforward. If you edit the enddates, the only problem I could imagine would be to use something different than Excel and save the file under different coding or remove some cell delimiters. If there's some problem with triggers maybe you can post your event text that creates problems?
Sure. This is my first attempt at a trigger, so I'm sure I'm messing up somehting obvious.
BTW, You may be right about editing the CSV files. I used OpenOffice, not Excel. But now my PC has a video card problem, so while I can play the game, I can't stay in Windows too long to edit the files because it crashes. I have a MacBook laptop, but no Excel for that (do they make Excel for Mac?)
In any case, here is the script I tried:
PHP:
# Stalin resigns
event = {
id = 8014205
country = SOV
name = EVT_8014205_NAME
desc = EVT_8014205_DESC
picture = "nwo\death_of_stalin"
style = 1
trigger = {
OR = {
headofstate = 30011
headofgovernment = 30002
}
}
date = { day = 5 month = july year = 1955 }
offset = 1
deathdate = { day = 30 month = august year = 1955 }
action = {
name = EVT_8014205_A
ai_chance = 100
command = { type = set_domestic which = democratic value = 1 }
command = { type = set_domestic which = political_left value = 9 }
command = { type = headofstate which = 485106 } # Panteleimon Ponomarenko
command = { type = headofgovernment which = 30085 } # Gregory M. Malenkov
command = { type = armamentminister which = 940004 } # Maksim Z. Subarov
command = { type = ministerofsecurity which = 30318 } # Mikhail Suslov
command = { type = foreignminister which = 30021 } # Vyacheslav M. Molotov
command = { type = chiefofarmy which = 30008 } # Kliment Y. Voroshilov
command = { type = sleepminister which = 30002 } # Iosif V. Stalin
command = { type = sleepminister which = 30011 } # Iosif V. Stalin
command = { type = sleepminister which = 30046 } # Iosif V. Stalin
command = { type = sleepminister which = 30076 } # Iosif V. Stalin
command = { type = sleepminister which = 30304 } # Iosif V. Stalin
command = { type = sleepminister which = 30305 } # Iosif V. Stalin
command = { type = sleepminister which = 30309 } # Iosif V. Stalin
command = { type = sleepminister which = 30144 } # Iosif V. Stalin
}
}
### Succession after Stalin's resignation
# Fate of the Soviet Union
event = {
id = 8014250
country = SOV
name = EVT_8014250_NAME
desc = EVT_8014250_DESC
picture = nwo\succession_of_stalin
style = 1
trigger = {
flag = cold_war
}
date = { day = 1 month = august year = 1955 }
offset = 14
deathdate = { day = 30 month = august year = 1955 }
# Ponomarenko (5% probability of dissent)
action = {
name = EVT_8014250_A
ai_chance = 70
command = { type = set_domestic which = democratic value = 1 }
command = { type = set_domestic which = political_left value = 9 }
command = { type = set_domestic which = free_market value = 1 }
command = { type = set_domestic which = freedom value = 2 }
command = { type = headofstate which = 485106 } # Panteleimon Ponomarenko
command = { type = headofgovernment which = 30085 } # Georgy M. Malenkov
command = { type = sleepevent which = 8014252 }
}
# Malenkov, Molotov (10% probability of dissent)
action = {
name = EVT_8014250_B
ai_chance = 10
command = { type = set_domestic which = democratic value = 2 }
command = { type = set_domestic which = political_left value = 10 }
command = { type = set_domestic which = free_market value = 1 }
command = { type = set_domestic which = freedom value = 2 }
command = { type = headofstate which = 30012 } # Vyacheslav Molotov
command = { type = headofgovernment which = 30085 } # Georgy M. Malenkov
command = { type = sleepevent which = 8014251 }
}
# Beria (10% probability of dissent)
action = {
name = EVT_8014250_C
ai_chance = 10
command = { type = set_domestic which = democratic value = 1 }
command = { type = set_domestic which = political_left value = 8 }
command = { type = set_domestic which = free_market value = 4 }
command = { type = set_domestic which = freedom value = 1 }
command = { type = headofstate which = 30077 } # Kliment Y. Voroshilov
command = { type = headofgovernment which = 30085 } # Georgy M. Malenkov
command = { type = sleepevent which = 8014251 }
}
# Zhukov (5% probability of dissent)
action = {
name = EVT_8014250_D
ai_chance = 10
command = { type = set_domestic which = democratic value = 1 }
command = { type = set_domestic which = political_left value = 9 }
command = { type = set_domestic which = free_market value = 1 }
command = { type = set_domestic which = freedom value = 1 }
command = { type = headofstate which = 30218 } # Georgiy K. Zhukov
command = { type = headofgovernment which = 30085 } # Georgy M. Malenkov
command = { type = sleepevent which = 8014252 }
}
}