Hi, I am here to ask you all what is wrong with these events? it keeps giving me error after errors. I am (somehow dispite updating) using 1.0.0.
Code:
###################ALLIED FORCES EVENTS################
###################USA SUGGESTS UNITY#####################
event = {
id = 900000
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "USA starts Allied Forces preparations"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so?"
picture = "news_paper"
action_a = {
name = "The world needs protecting! Send the Invites!"
command = { type = setflag which = Allied Forces}}
}
}
###########USA SENDS THE OFFER########
event = {
id = 900001
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
flag = Allied Forces
event = 900000
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so? We have just sent the invites but we forgotten who to send them to. We should sent invites to Great Britian,France,Japan,Italy and China."
picture = "news_paper"
action_a = {
name = "We will send the invites!"
ai_chance = 80
command = { type = setflag which = Invites sent}
}
}
}
###########Invites sent to nations:Reponse.########
event = {
id = 900002
country = FRA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900001
flag = Allied Forces
flag = Invites sent
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers France choice"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just been given an invite for this. What is our resposne?"
picture = "news_paper"
action_a = {
name = "Oui! We will join!"
ai_chance = 80
command = { type = setflag which = Oui}
}
action_b = {
name = "Non! We will not join!"
ai_chance = 20
command = { type = setflag which = non}
}
}
event = {
id = 900004
country = ENG
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900001
flag = Allied Forces
flag = Invites sent
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers UK choice"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. The UK have just been given an invite for this. What is our resposne?"
picture = "news_paper"
action_a = {
name = "Yes! We will join!"
ai_chance = 80
command = { type = setflag which = Yes}
}
action_b = {
name = "No! We will not join!"
ai_chance = 20
command = { type = setflag which = No}
}
}
event = {
id = 900005
country = ITA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900001
and = { flag = Allied Forces
flag = Invites sent
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers Italy choice"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just been given an invite for this. What is our resposne?"
picture = "news_paper"
action_a = {
name = "Si! We will join!"
ai_chance = 80
command = { type = setflag which = si}
}
action_b = {
name = "No! We will not join!"
ai_chance = 20
command = { type = setflag which = no}
}
}
#########################Backers countup####################
event = {
id = 900006
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
and = { flag = Allied Forces
flag = Invites sent
flag = oui
flag = Yes
flag = si
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
flag = non
flag = No
flag = no
}
}
name = "Allied Forces needs backers All agreed!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. We have full backing with everyone! We can now proceed with the plan!
picture = "news_paper"
action_a = {
name = "Ok let get ready."
command = { type = setflag which = Final} # Final Stages of intergration.
command = { type = clrflag which = oui} #no longer needed
command = { type = clrflag which = non} #no longer needed
command = { type = clrflag which = si} #no longer needed
command = { type = clrflag which = no} #no longer needed
command = { type = clrflag which = Yes} #no longer needed
command = { type = clrflag which = No} #no longer needed
command = { type = clrflag which = Invites Sent} #no longer needed
}
}
event = {
id = 900007
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
and = { flag = Allied Forces
flag = Invites sent
flag = non
flag = No
flag = no
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
flag = oui
flag = yes
flag = si
}
}
name = "Allied Forces needs backers All refused!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. We have no backing with anyone! We cannout countine!
picture = "news_paper"
action_a = {
name = "At least we have tried."
command = { type = clrflag which = Allied Forces}
command = { type = clrflag which = Invites Sent}
command = { type = clrflag which = oui}
command = { type = clrflag which = non}
command = { type = clrflag which = si}
command = { type = clrflag which = no}
command = { type = clrflag which = Yes}
command = { type = clrflag which = No}
}
}
#####################Nations says yes######################
event = {
id = 900003
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900002
and = { flag = Allied Forces
flag = Invites sent
flag = oui
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers France says yes!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just said yes!"
picture = "news_paper"
action_a = {
name = "Great!"
}
}
event = {
id = 900008
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900004
and = { flag = Allied Forces
flag = Invites sent
flag = yes
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers UK says yes!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. UK have just said yes!"
picture = "news_paper"
action_a = {
name = "Great!"
}
}
event = {
id = 900009
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900005
and = { flag = Allied Forces
flag = Invites sent
flag = si
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers Italy says yes!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just said yes!"
picture = "news_paper"
action_a = {
name = "Great!"
}
}
###############Nations says no.################
event = {
id = 900010
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900002
and = { flag = Allied Forces
flag = Invites sent
flag = non
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers France says no!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just said no!"
picture = "news_paper"
action_a = {
name = "Damn!"
}
}
event = {
id = 900011
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900002
and = { flag = Allied Forces
flag = Invites sent
flag = No
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers UK says no!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. UK have just said No!"
picture = "news_paper"
action_a = {
name = "Damn!"
}
}
event = {
id = 900012
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900002
and = { flag = Allied Forces
flag = Invites sent
flag = no
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Allied Forces needs backers Italy says no!"
desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just said no!"
picture = "news_paper"
action_a = {
name = "Damn!"
}
}
event = {
id = 900013
country = USA
random = no
date = { hour = 5 day = 15 month = 2 year = 1937 }
offset = 5
deathdate = { hour = 23 day = 29 month = 12 year = 2000 }
trigger = {
exists = USA
exists = ENG
exists = FRA
exists = ITA
exists = SOV
event = 900006
and = { flag = Allied Forces
flag = Final
}
not = {
war = { country =SOV country = FRA }
war = { country =SOV country = ENG }
war = { country =SOV country = USA }
war = { country =SOV country = ITA }
}
}
name = "Final peperations"
desc = "With the nations ready to support each other, it is aproccing the final stages. The Allied Forces is ready to take flight. However we now need to prepare a flag.We have 2 designs to go for. what will it be? the one on the left? or the one on the right?"
picture = "Allied_Flag"
action_a = {
name = "One of the left(RA2-3)"
}
action_b = {
name = "One of the right(RA1)"
}
}