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:
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?
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
}
}
}
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?