One of the biggest things that has bothered me about the various versions of HoI have been the weak Pearl Harbour event. I have tried to write three events that would put Pearl Harbour in as a more realistic event and actually hurt the US player. The chain of events breaks down into four parts,
First, I have an event that would remove all of the battleships that were initally sunk or heavily damaged during the attack.
Second, an event removing Admiral Kimmel and General Short.
Third, and event that allows the US player to repair just the lightly damaged USS Pennsylvania or repair all of the damged ships besides the USS Arizona, USS California, and USS Oklahoma.
The fourth event (or series of events) activates the returning battleships on their historic return dates.
Here is the problem, if I write the first event like this
#####################################################
# Pearl Harbor
# Modified by Micah Goodman
#####################################################
event = {
id = 3182050
random = no
country = USA
# Triggered by JAP 3146051
name = "Pearl Harbor"
desc = "After the surprise attack at Pearl Harbor, President Roosevelt has declared a state of war against Japan!"
style = 0
picture = "Pearl_harbor"
action_a = {
name = "OK"
command = { type = dissent value = -10 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = domestic which = interventionism value = 5 }
command = { type = relation which = ENG value = 50 }
command = { type = sleepevent which = 3182028 } # USA Early War
command = { type = delete_unit which = 14800 value = 30 }
command = { type = delete_unit which = 14800 value = 29 }
command = { type = delete_unit which = 14800 value = 28 }
command = { type = delete_unit which = 14800 value = 33 }
command = { type = delete_unit which = 14800 value = 34 }
command = { type = delete_unit which = 14800 value = 35 }
command = { type = delete_unit which = 14800 value = 39 }
command = { type = delete_unit which = 14800 value = 38 }
}
}
I get a crash to desktop.
If I write the event like this,
#####################################################
# Pearl Harbor
# Modified by Micah Goodman
#####################################################
event = {
id = 3182050
random = no
country = USA
# Triggered by JAP 3146051
name = "Pearl Harbor"
desc = "After the surprise attack at Pearl Harbor, President Roosevelt has declared a state of war against Japan!"
style = 0
picture = "Pearl_harbor"
action_a = {
name = "OK"
command = { type = dissent value = -10 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = domestic which = interventionism value = 5 }
command = { type = relation which = ENG value = 50 }
command = { type = sleepevent which = 3182028 } # USA Early War
command = { type = remove_division which = "USS Pennsylvania" value = USA }
command = { type = remove_division which = "USS Arizona" value = USA }
command = { type = remove_division which = "USS Nevada" value = USA }
command = { type = remove_division which = "USS Oklahoma" value = USA }
command = { type = remove_division which = "USS Tennessee" value = USA }
command = { type = remove_division which = "USS California" value = USA }
command = { type = remove_division which = "USS Maryland" value = USA }
command = { type = remove_division which = "USS West Virginia" value = USA }
}
}
Only the Arizona, California, and Oklahoma actually get removed from the scenario. Even though it says all of the affected ships are removed. Can anyone see what I am missing? Oh, by the way I cut and pasted the names directly from the US inc file to place in the second event posted so I know that the nakes are correct.
First, I have an event that would remove all of the battleships that were initally sunk or heavily damaged during the attack.
Second, an event removing Admiral Kimmel and General Short.
Third, and event that allows the US player to repair just the lightly damaged USS Pennsylvania or repair all of the damged ships besides the USS Arizona, USS California, and USS Oklahoma.
The fourth event (or series of events) activates the returning battleships on their historic return dates.
Here is the problem, if I write the first event like this
#####################################################
# Pearl Harbor
# Modified by Micah Goodman
#####################################################
event = {
id = 3182050
random = no
country = USA
# Triggered by JAP 3146051
name = "Pearl Harbor"
desc = "After the surprise attack at Pearl Harbor, President Roosevelt has declared a state of war against Japan!"
style = 0
picture = "Pearl_harbor"
action_a = {
name = "OK"
command = { type = dissent value = -10 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = domestic which = interventionism value = 5 }
command = { type = relation which = ENG value = 50 }
command = { type = sleepevent which = 3182028 } # USA Early War
command = { type = delete_unit which = 14800 value = 30 }
command = { type = delete_unit which = 14800 value = 29 }
command = { type = delete_unit which = 14800 value = 28 }
command = { type = delete_unit which = 14800 value = 33 }
command = { type = delete_unit which = 14800 value = 34 }
command = { type = delete_unit which = 14800 value = 35 }
command = { type = delete_unit which = 14800 value = 39 }
command = { type = delete_unit which = 14800 value = 38 }
}
}
I get a crash to desktop.
If I write the event like this,
#####################################################
# Pearl Harbor
# Modified by Micah Goodman
#####################################################
event = {
id = 3182050
random = no
country = USA
# Triggered by JAP 3146051
name = "Pearl Harbor"
desc = "After the surprise attack at Pearl Harbor, President Roosevelt has declared a state of war against Japan!"
style = 0
picture = "Pearl_harbor"
action_a = {
name = "OK"
command = { type = dissent value = -10 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = domestic which = interventionism value = 5 }
command = { type = relation which = ENG value = 50 }
command = { type = sleepevent which = 3182028 } # USA Early War
command = { type = remove_division which = "USS Pennsylvania" value = USA }
command = { type = remove_division which = "USS Arizona" value = USA }
command = { type = remove_division which = "USS Nevada" value = USA }
command = { type = remove_division which = "USS Oklahoma" value = USA }
command = { type = remove_division which = "USS Tennessee" value = USA }
command = { type = remove_division which = "USS California" value = USA }
command = { type = remove_division which = "USS Maryland" value = USA }
command = { type = remove_division which = "USS West Virginia" value = USA }
}
}
Only the Arizona, California, and Oklahoma actually get removed from the scenario. Even though it says all of the affected ships are removed. Can anyone see what I am missing? Oh, by the way I cut and pasted the names directly from the US inc file to place in the second event posted so I know that the nakes are correct.