Description of issue
"Race For The Bomb" never finishes due to script error [1.11.12] [22d5]
Game Version
1.11.12
Enabled DLC
Do you have mods enabled?
No
Description
The "Race for the Bomb" event chain is supposed to finish when the first nuclear bomb is dropped. However, the event that resolves the event chain can never fire because the on_action for dropping a nuke sets first_nuke_dropped and then checks to make sure first_nuke_dropped has not been set. The order of these should be switched.
Steps to Reproduce
Meet the conditions for a "Race for the Bomb", then drop a nuke. All racing countries keep racing forever. Event generic.8 never fires.
Upload Attachment
File(s) attached
"Race For The Bomb" never finishes due to script error [1.11.12] [22d5]
Game Version
1.11.12
Enabled DLC
Do you have mods enabled?
No
Description
The "Race for the Bomb" event chain is supposed to finish when the first nuclear bomb is dropped. However, the event that resolves the event chain can never fire because the on_action for dropping a nuke sets first_nuke_dropped and then checks to make sure first_nuke_dropped has not been set. The order of these should be switched.
Code:
on_nuke_drop = {
effect = {
set_global_flag = first_nuke_dropped
if = {
limit = { NOT = { has_global_flag = first_nuke_dropped } }
country_event = { id = generic.8 }
}
if = {
limit = { has_idea = race_for_the_bomb_outclassed }
remove_ideas = race_for_the_bomb_outclassed
}
#...
#there is more code past this part but it's not relevant for the bug report
#...
}
random_events = {
100 = nuke_dropped.0
}
}
Steps to Reproduce
Meet the conditions for a "Race for the Bomb", then drop a nuke. All racing countries keep racing forever. Event generic.8 never fires.
Upload Attachment
File(s) attached
Attachments
- 1
Upvote
0