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

Kossatx

Second Lieutenant
7 Badges
Apr 16, 2009
108
1
  • Arsenal of Democracy
  • Hearts of Iron III
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
Code:
##### Second New Deal
event = {
    id = 2049093
    random = no
    country = USA
    
    decision = {
            event = 2049092 # Unemployment rate down to 15 percent
            event = { id = 2049086 days = 900 } # First New Deal
            headofstate = 240001 # FDR
    }
    decision_trigger = {
            event = { id = 2049092 days = 60 } # Unemployment rate down to 15 percent
            event = { id = 2049086 days = 900 } # First New Deal
            money = 3000
            headofstate = 240001 # FDR
    }
    trigger = {
            event = { id = 2049092 days = 60 } # Unemployment rate down to 15 percent
            event = { id = 2049086 days = 900 } # First New Deal
            headofstate = 240001 # FDR
            random = 10
    }
    
    name = "2049093name"
    desc = "2049093desc"
    style = 2
    picture = "new_deal"
    decision_picture = "decision_new_deal"

    date = { day = 0 month = january year = 1933 }
    offset = 36
    deathdate = { day = 29 month = december year = 1964 }

    action = {
        name = "2049093a"
        command = { type = dissent value = -2 }
        command = { trigger = { ai = no } type = money value = -3000 }
         command = { type = industrial_modifier which = total value = 25 }
        command = { type = domestic which = free_market value = -1 }
        command = { type = domestic which = political_left value = 1 }

Hi, I have mod this event with some random delay when ther CPU plays the USA. But I must have done some mistake because it don't works fine. Sixty days after "Unemployment rate down to 15 percent" event is played, when playing as human, this condition appears in red as not reached yet. And when played by the CPU, the event seems that never work. Anyone can help me?
 
Did you add "save_date = yes" (IIRC, check event_commands for syntax) to event 2049092?

No, this is how I've wrote 2049092 event. Where I should write "save_date = yes"? In the trigger section? And sorry but I'm a beginner... what does "IIRC, check event_commands for syntax" mean? Thanks a lot!

Code:
# Unemployment rate down to 15 percent
event = {
    id = 2049092
    random = no
    country = USA
    
    trigger = {
            event = 2049087 # Emergency Banking Act
            event = 2049088 # Agricultural Adjustment Act
            event = 2049089 # National Industrial Recovery Act
            random = 5
            headofstate = 240001 # FDR
    }
    
    name = "2049092name"
    desc = "2049092desc"
    style = 2
    picture = "Unemployment_rate"

    date = { day = 0 month = january year = 1933 }
    offset = 30
    deathdate = { day = 29 month = december year = 1964 }

    action = {
        name = "2049092a"
        command = { type = dissent value = -2 }
         command = { type = industrial_modifier which = total value = 10 }
        command = { type = songs which = FDR1933.txt }
    }