I'm trying to make an event that occasionally lowers badboy a little bit, but I can't get it to work. Most of the text has been taken from other events, so it's quite puzzling to me where the fault lies.
When the scenario loads, a message tells me there is an unknown event in the line mean_time_to_happen. What have I got wrong?
Any help will be greatly appreciated.
edit: I also noted the ugly colors in my post, how can I get rid of them?
When the scenario loads, a message tells me there is an unknown event in the line mean_time_to_happen. What have I got wrong?
Code:
#################################################
# New event to lower badboy for Player #
#################################################
character_event = { # You have been allowed acts of contrition and penitence that will somewhat improve your status in the eyes of Our Lord and the Christian Community
id = 9145
picture = "event_religion"
trigger = {
condition = { type = ruler }
condition = { type = religion value = catholic }
condition = { type = exists value = PAPA }
condition = { type = badboy value = 1.5 }
condition = { type = not value = { type = ai } }
condition = { type = not value = { type = trait value = heretic } }
condition = { type = not value = { type = trait value = excommunicated } }
condition = { type = not value = { type = trait value = sceptical } }
condition = { type = not value = { type = trait value = kinslayer } }
}
}
mean_time_to_happen = {
months = 120
modifier = {
condition = { type = not value = { type = piety value = 0 } }
factor = 2.0
}
modifier = {
condition = { type = piety value = 200 }
factor = 0.8
}
modifier = {
condition = { type = piety value = 500 }
factor = 0.8
}
modifier = {
condition = { type = piety value = 1000 }
factor = 0.8
}
modifier = {
condition = { type = not value = { type = prestige value = 0 } }
factor = 1.25
}
modifier = {
condition = { type = prestige value = 200 }
factor = 0.9
}
modifier = {
condition = { type = prestige value = 500 }
factor = 0.9
}
modifier = {
condition = { type = prestige value = 1000 }
factor = 0.9
}
modifier = {
condition = { type = trait value = zealous }
factor = 0.8
}
modifier = {
condition = { type = trait value = crusader }
factor = 0.66
}
}
action_a = { # Praise The Lord!
effect = { type = badboy value = -0.5 }
effect = { type = ruler_piety value = 5 }
effect = { type = gold scale = -0.5 }
}
action_b = { # I can't afford that!
effect = { type = ruler_piety value = -5 }
}
Any help will be greatly appreciated.
edit: I also noted the ugly colors in my post, how can I get rid of them?
Last edited by a moderator: