Hi. I'm trying to make an event which would destroy a factory if you fight too long.
event = {
id = 24535
random = no
trigger = {
war_exhaustion = { country = -1 value = 3 } #30%
random = 10
}
AND = {
war_exhaustion = { country = -1 value = 6 } #60%
random = 50
}
AND = {
war_exhaustion = { country = -1 value = 9 } #90%
random = 80
}
}
name = "Violence due to exhaustion!"
desc = "People are rioting due to war exhaustion! And they're about to destroy our factory!"
style = 0
date = { day = 1 month = january year = 1875 }
offset = 7
deathdate = { day = 30 month = december year = 2800 }
action_a = {
name = "Need your cooperation to win the war. So donate money!"
ai_chance = 20
command = { type = treasury value = 1500 }
command = { type = pop_militancy which = farmers value = 4 where = -1 }
command = { type = pop_militancy which = labourers value = 4 where = -1 }
command = { type = pop_militancy which = clerks value = 2 where = -1 }
command = { type = pop_militancy which = craftsmen value = 4 where = -1 }
}
action_b = {
name = "Can't finish like this!"
ai_chance = 80
command = { type = remove_building which = -1 }
}
}
What exactly does offset do?
Hmm... Would've been great if there's a thread explaining this.
No searching column :-(
P.S. any advise on this event?
event = {
id = 24535
random = no
trigger = {
war_exhaustion = { country = -1 value = 3 } #30%
random = 10
}
AND = {
war_exhaustion = { country = -1 value = 6 } #60%
random = 50
}
AND = {
war_exhaustion = { country = -1 value = 9 } #90%
random = 80
}
}
name = "Violence due to exhaustion!"
desc = "People are rioting due to war exhaustion! And they're about to destroy our factory!"
style = 0
date = { day = 1 month = january year = 1875 }
offset = 7
deathdate = { day = 30 month = december year = 2800 }
action_a = {
name = "Need your cooperation to win the war. So donate money!"
ai_chance = 20
command = { type = treasury value = 1500 }
command = { type = pop_militancy which = farmers value = 4 where = -1 }
command = { type = pop_militancy which = labourers value = 4 where = -1 }
command = { type = pop_militancy which = clerks value = 2 where = -1 }
command = { type = pop_militancy which = craftsmen value = 4 where = -1 }
}
action_b = {
name = "Can't finish like this!"
ai_chance = 80
command = { type = remove_building which = -1 }
}
}
What exactly does offset do?
Hmm... Would've been great if there's a thread explaining this.
No searching column :-(
P.S. any advise on this event?
Last edited: