• 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.
Status
Not open for further replies.

davidrn999

Recruit
May 3, 2015
1
0
Please, where is the error? The event just does not trigger.
Code:
country_event = {
    id = election_USA.-1
    title = election_USA.-1.t
    desc = election_USA.-1.d
    
        is_triggered_only = no
        fire_only_once = yes

    trigger = {
        original_tag = USA
        date > 1992.11.2
        date < 1992.11.9
        not = {
            has_country_flag = usa_election_1992
        }
    }
    
    immediate = {
        set_country_flag = usa_election_1992
    }
    
    option = {    #George H. W. Bush
        name = election_USA.-1.o1
        
        set_politics = {
            ruling_party = conservative
            elections_allowed = yes
        }
        add_popularity = {
            ideology = conservative
            popularity = 0.03
        }
        
        create_country_leader = {
            name = "George H. W. Bush"
            picture = "Portrait_USA_George_H_W_Bush.dds"
            expire = "2050.1.1"
            ideology = fiscal_conservative
            
            traits = {
            
            }
        }
        
        ai_chance = {
            factor = 35
        }
        
        set_country_flag = usa_hwbush_victory_1992
    }
    
    option = {    #Bill Clinton
        name = election_USA.-1.o2
        
        set_politics = {
            ruling_party = social_liberal
            elections_allowed = yes
        }
        add_popularity = {
            ideology = social_liberal
            popularity = 0.03
        }
        
        create_country_leader = {
            name = "Bill Clinton"
            picture = "Portrait_USA_Bill_Clinton.dds"
            expire = "2050.1.1"
            ideology = liberalist
            
            traits = {
            
            }
        }
        
        ai_chance = {
            factor = 45
        }
        
        set_country_flag = usa_bclinton_victory_1992
    }

        option = {    #Ross Perot
        name = election_USA.-1.o3
        
        set_politics = {
            ruling_party = market_liberal
            elections_allowed = yes
        }
        add_popularity = {
            ideology = market_liberal
            popularity = 0.15
        }
        
        create_country_leader = {
            name = "Ross Perot"
            picture = "Portrait_USA_Ross_Perot.dds"
            expire = "2050.1.1"
            ideology = libertarian
            
            traits = {
            
            }
        }
        
        ai_chance = {
            factor = 20
        }
        
        set_country_flag = usa_perot_victory_1992
    }
}
 

Dalwin

Field Marshal
48 Badges
Aug 11, 2003
11.303
6.150
Visit site
  • Hearts of Iron IV: Expansion Pass
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Knights of Pen and Paper 2
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Magicka
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • For the Motherland
  • Hearts of Iron III
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • Lost Empire - Immortals
  • Crusader Kings II
  • March of the Eagles
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Supreme Ruler 2020
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • 500k Club
  • Pride of Nations
It might be best of you registered your game via linking your Paradox and Steam accounts and then went to the Modding section which will become visible after you have done so.
 

FrancescoT

Field Marshal
Moderator
65 Badges
Aug 8, 2009
8.010
842
44
  • Hearts of Iron III
  • Crusader Kings II
  • Semper Fi
  • Europa Universalis: Rome
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • PDXCON 2018 "The Baron"
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Pillars of Eternity
  • Hearts of Iron IV: No Step Back
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Rome: Vae Victis
  • Warlock 2: The Exiled
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Tyranny: Gold Edition
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
@davidrn999 please register your game / sync your steam account to access User Mods Sub-forum.
 
Status
Not open for further replies.