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

LiamRiordan

The Rambling KR Player
70 Badges
Aug 4, 2008
2.184
137
  • 500k Club
  • Stellaris: Nemesis
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Holy Fury
  • The Showdown Effect
  • Warlock: Master of the Arcane
  • War of the Roses
  • Hearts of Iron IV: Colonel
  • Stellaris: Humanoids Species Pack
  • Stellaris: Lithoids
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44 Deluxe Edition
  • Battle for Bosporus
  • Stellaris: Ancient Relics
  • Steel Division: Normandy 44
  • Crusader Kings II: Rajas of India
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV
  • Stellaris: Distant Stars
  • Stellaris: Federations
  • Hearts of Iron IV: Field Marshal
  • Semper Fi
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Dungeonland
  • Darkest Hour
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
I wish to contribute to the Kaiserreich mod in my way, though my coding skills are low. I can make simple events but I'm having trouble with triggers and errors in events that rely on others to fire before them.

Here is the broken code:
Code:
#############################
#  Draft Flavour events for Internationale Nations
#############################

    event = {
        id = 1500001
        random = no
        country = ENG
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        offset = 365
        deathdate = { day = 30 month = december year = 1964 }
        
        
        trigger = { headofstate = 1187 } #Niclas Y Glais
                
            event = { id  = 100012 days = 365 } #Authomnists Majority
                name = "The British National Culture Festival"
                desc = "With the Authomnists in power in the Union, they have begun to promote cultural events for the Home Nations of Britain, such as the Eisteddfod in Wales.  Britain has a long and coloured history, and the planners wish to show it all, including that of the Monarchy.  With the nation freeing themselves of the Royalists, it may become problematic to display their history along with our new culture."
                action = {
                    name = "Promote the event, with the Monarchy history!"
                    ai_chance = 35
                    command = { type = money value = -100 }
                    command = { type = supplies value = -400 }
                    command = { type = dissent value = -2 } #some appreciate the total British history, though the revolutionists aren't too pleased.
                    command = { type = relation which = CAN value = 25 } #can be seen as reconciliary towards royalists
                    command = { type = relation which = FRA value = -50 } #French aren't pleased with royalist history being on show
                    command = { type = relation which = SCO value = 30 } #If Scotland is independant
                    command = { type = relation which = U17 value = 30 } #If Wales is independant
                    command = { type = domestic which = freedom value = 2 } #government is more open to other influences
                    command = { type = domestic which = defense_lobby value = -1 } #more peaceful lobby is promoted
                    command = { type = belligerance value = -1 } # possible because they seek peace?
                    }
                action = {
                    name = "Promote the event! For the Home Nations!"
                    ai_chance = 45
                    command = { type = money value = -80 }
                    command = { type = supplies value = -350 }
                    command = { type = dissent value = -6 }
                    command = { type = relation which = CAN value = -5 } #can be seen as reconciliary towards royalists
                    command = { type = relation which = FRA value = 10 } #French aren't pleased with royalist history being on show
                    command = { type = relation which = SCO value = 80 } #If Scotland is independant
                    command = { type = relation which = U17 value = 80 } #If Wales is independant
                    command = { type = domestic which = freedom value = 1 } #government is promoting Union cultures openly
                    }
                action = {
                    name = "Cancel the event this year, horrible weather"
                    ai_chance = 20
                    command = { type = dissent value = 6 }
                    command = { type = domestic which = freedom value = -1 } #assumes Authomnists are not open after all
                    }
                }
            }
This is an event for the Authomnists in the Union of Britain, or in a way the 'Pacifists' of the Union in my mind, and I wish to give them some non-war events that may make the game more interesting without resorting to war.

I'm being told its an error with the triggers in the KR forums, but replies for aid is slow since attention is diverted to a new addition in planning.


I plan on making more events, but I need to get this one right so I can see where I'm going wrong and learn from it. I may try to make it as a decision event in the future rather than relying on offsets.


Help?
 
Apologies for the double.

OK, here is my first ever event chain that mostly works. (I'm crying tears of joy inside).

Code:
#############################
#  Draft Flavour events for Internationale Nations
#############################

    event = {
        id = 1500001
        random = no
        country = ENG
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        offset = 365
        deathdate = { day = 30 month = december year = 1964 }
                
        trigger = {
        headofstate = 1187 #Niclas y Glais
        atwar = no
                    } 
                name = "The British National Culture Festival"
                desc = "With the Authomnists in power in the Union, they have begun to promote cultural events for the Home Nations of Britain, such as the Eisteddfod in Wales.  Britain has a long and coloured history, and the planners wish to show it all, including that of the Monarchy.  With the nation freeing themselves of the Royalists, it may become problematic to display their history along with our new culture."
                action = {
                    name = "Promote the event, with the Monarchy history!"
                    ai_chance = 35
                    command = { type = money value = -100 }
                    command = { type = supplies value = -400 }
                    command = { type = dissent value = -2 } #some appreciate the total British history, though the revolutionists aren't too pleased.
                    command = { type = relation which = CAN value = 15 } #can be seen as reconciliary towards royalists
                    command = { type = relation which = FRA value = -30 } #French aren't pleased with royalist history being on show
                    command = { type = relation which = SCO value = 30 } #If Scotland is independant
                    command = { type = relation which = U17 value = 30 } #If Wales is independant
                    command = { type = domestic which = freedom value = 2 } #government is more open to other influences
                    command = { type = domestic which = defense_lobby value = -1 } #more peaceful lobby is promoted
                    command = { type = belligerence which = ENG value = -1  } # possible because they seek peace?
                    command = { type = trigger which = 1500002 }
                    }
                action = {
                    name = "Promote the event! For the Home Nations!"
                    ai_chance = 45
                    command = { type = money value = -80 }
                    command = { type = supplies value = -350 }
                    command = { type = dissent value = -6 }
                    command = { type = relation which = CAN value = -5 } #Royalists see it as a propoganda coup against them
                    command = { type = relation which = SCO value = 80 } #If Scotland is independant
                    command = { type = relation which = U17 value = 80 } #If Wales is independant
                    command = { type = domestic which = freedom value = 1 } #government is promoting Union cultures openly
                    command = { type = trigger which = 1500003 }
                    command = { type = trigger which = 1500004 }
                    command = { type = trigger which = 1500005 }
                    }
                action = {
                    name = "Cancel the event this year, horrible weather"
                    ai_chance = 20
                    command = { type = dissent value = 6 }
                    command = { type = domestic which = freedom value = -1 } #assumes Authomnists are not open after all
                    }
                }
                        
###############################################
###British host event with Monarchy History
###############################################
    event = { 
        id = 1500002
        random = no
        country = CAN
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        deathdate = { day = 30 month = december year = 1964 }
        
        trigger = {
        headofstate = 45140 #H.R.M Edward VIII
        }
                
            name = "The Revolutionaries Culture Event"
            desc = "It seems that the Revolutionary Government in Britain  is holding a cultural event that incorporates their rebellion and the history of the British Monarchy.  While it's little consolation for the British exiles that were forced from their homeland, it is at least a step towards peace in our time."
                action = {
                    name = "That's awfully nice of them."
                    command = { type = relation which = ENG value = 5 } 
                    command = { type = dissent value = -1 } #Canadians may be more at ease with a less aggressive British government to provoke the British elements into war
                    }
            }
            
###############################################
###British host event without Monarchy History
###############################################
            
    event = {
        id = 1500003
        random = no
        country = SCO
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        offset = 365
        deathdate = { day = 30 month = december year = 1964 }
        
            name = "The Union Festival"
            desc = "The English are sponsoring a cultural event in all the Home Nations!  This shall be a great festival for all Scottish nationals and our comrades in the British Isles!  Let us celebrate the Revolution!"  
            
            action = {
                name = "Let's put up the tents and toss some cabers!"
                command = { type = dissent value = -5 }
                command = { type = relation which = ENG value = 35 }
                }
            }
            
    event = {
        id = 1500004
        random = no
        country = U17
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        offset = 365
        deathdate = { day = 30 month = december year = 1964 }
            
            name = "The Union Festival"
            desc = "The English are sponsoring a cultural event in all the Home Nations!  This shall be a great festival for the Welsh as it will allow the Eisteddfod to go forward with better funding!  Let us celebrate the Union and the Revolution of Britain!"
            
            action = {
                name = "Let us sing for the Land Of Our Fathers!"
                command = { type = dissent value = -5 }
                command = { type = relation which = ENG value = 35 }
                }
            }
            
    event = {
        id = 1500005
        random = no
        country = CAN
        picture = "artist"
        date = { day = 1 month = January year = 1937 }
        offset = 365
        deathdate = { day = 30 month = december year = 1964 }
        
            name = "The Revolutionists Propoganda Coup!"
            desc = "The Revolutionaries in Britain are staging an event which celebrates the nationalities of the Welsh, Scottish as well as the English!  They are event taking the liberty to snuff out as much history of the British Monarchy as they can to control the knowledge of the young minds in the nation!  If we are to ever regain the British Isles in the name of the King, this event will surely breed more ill will towards the crown, and the populace will resent us all the more."
            
            action = {
                name = "Damn that Niclas Y Glais to hell!"
                command = { type = relation which = ENG value = -35 }
                command = { type = relation which = SCO value = -35 }
                command = { type = relation which = U17 value = -35 }
                command = { type = dissent value = -3 } #the Canadians are worried this may antagonize the British Exiles, while they themselves are outraged by this.
                }
            }
Now, what isn't working is the event where Scotland and Wales (U17) do not get their respective events firing. Events 1500003 & 1500004.

Also after that test I realized that Canada can be conquered... so I added a new trigger to the 1500002.

Code:
trigger = {
        headofstate = 45140 #H.R.M Edward VIII
                        }
For some reason that kills the game on the spot when I use that as Canada. I'm stumped.