HoI 4 - [1.11.12.82b4] [22d5] Mexican Fascist election cannot elect Salvador Abascal

  • 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.

Dryhad

Lt. General
61 Badges
Jan 3, 2014
1.493
1.430
  • Crusader Kings II
  • Age of Wonders II
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: El Dorado
  • War of the Roses
  • Warlock: Master of the Arcane
  • The Showdown Effect
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Pre-order
  • Dungeonland
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis III
  • Europa Universalis IV: Art of War
Description of issue
[1.11.12.82b4] [22d5] Mexican Fascist election cannot elect Salvador Abascal

Game Version
1.11.12.82b4 (22d5)

Enabled DLC


Do you have mods enabled?
No

Description
Attempting to choose Abascal as candidate for the 1940 election shows a tooltip of Abascal becoming leader, but this does not occur. In the transition to the new character system, some logic has been set up to display a cosmetic tooltip in allowance for the fact that Abascal begins the game with a scripted country leader role, but functional script to promote him was neglected.

It should be sufficient to add something to the relevant section of event mexico.19 along the lines of
Code:
MEX_Salvador_Abascal = {
	promote_character = falangism
}

Note also this thematically connected bug is still in effect.

Steps to Reproduce
Take the following focuses:
- Plan of Agua Prieta
- Jefe Maximo
- Legacy of Revolution
- The Gold Shirts
- Revanchist Revolution

Wait until the 1940 election.
Abascal will be a potential candidate (possibly the only one, depending on other focuses taken)
Selecting Abascal in this event leaves Calles as leader.

Upload Attachment
File(s) attached
 

Attachments

  • Abascal has a tooltip.png
    Abascal has a tooltip.png
    1,2 MB · Views: 0
  • but Calles stays in power.png
    but Calles stays in power.png
    1,3 MB · Views: 0
Upvote 0

Mefisto1029

First Lieutenant
12 Badges
Aug 15, 2018
269
211
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Crusader Kings II
  • Age of Wonders III
  • Shadowrun Returns
Yeah there is problem.
XML:
    option = { # Falangist candidate: Salvador Abascal
        name = mexico.19.q
        
        trigger = {
            NOT = {
                has_country_leader = {
                    character = MEX_salvador_abascal
                }
            }
            has_government = fascism
        }
        if = {
            limit = {
                has_country_leader = { #If he is already country leader, fake tooltip
                    character = MEX_salvador_abascal
                    ruling_only = no
                }
            }
            effect_tooltip = {
                add_country_leader_role = {
                    character = MEX_salvador_abascal
                    country_leader = {
                        expire = "1965.1.1"
                        ideology = falangism
                        traits = {
                            fascist_militia_leader
                        }
                    }
                    promote_leader = yes
                }
            }
        }
        else = {
            add_country_leader_role = {
                character = MEX_salvador_abascal
                country_leader = {
                    expire = "1965.1.1"
                    ideology = falangism
                    traits = {
                        fascist_militia_leader
                    }
                }
                promote_leader = yes
            }
        }
    }
But it can be fixed and a lot smaller.
XML:
    option = { # Falangist candidate: Salvador Abascal
        name = mexico.19.q
        
        trigger = {
            NOT = {
                has_country_leader = {
                    character = MEX_salvador_abascal
                }
            }
            has_government = fascism
        }
        
        promote_character = { character = MEX_salvador_abascal  ideology = falangism }
    }
Note that trigger will only happens when he is not leader, so we don't need whole fake tooltip part, because we wont see this option anyway.
Second part... he already have country leader role so we dont need to add new/another, we just need to promote him.
 

Attachments

  • Before.png
    Before.png
    2,9 MB · Views: 0
  • After.png
    After.png
    2,6 MB · Views: 0
  • 1
Reactions: