I've been working on my own little personal mod for a bit. I've taken my first steps into creating events, and am not yet too familiar with the syntaxes and the effects of the triggers and... er.. effects. I've hit a bit of a snag with an event I've been trying to write -
What I'm trying to accomplish is an event where, after a military presence for a year (subject to change) in a province whose barbarians have been (mostly) pacified, one could pay some money and the province is yours. This would make factions like Dacia, Suebi, or even just any one-prov tribe with nearby gray a lot more playable, I believe.
It doesn't work. The event never seems to trigger and forcing it via console brings up an empty box (the one that would usually have all the options, strings and an exit button). The console looks like it is only checking each province I own and not the empty neighbour ones I wanted.
I have no idea where it's going wrong, but as I have said, am rather new at scripting in a Paradox game. Have I made a wrong assumption about how a trigger or event works? Have I structured it wrong, or am going about the problem the wrong way? Is what I seek to accomplish simply impossible? I would greatly appreciate some help. Also, if the solution would only work with VV - I do not have VV.
I'm on vanilla 1.3.
Code:
country_event = {
id = 6714
trigger = {
any_province = {
any_empty_neighbour_province = {
barbarian_power = {NOT = 2}
units_in_province = 4
}
}
}
title = "A Few Friendly Tribes"
desc = "EVENT6714DESC"
mean_time_to_happen = {
months = 12
}
option = {
name = "Bring these people under our rule."
any_province = {
any_empty_neighbour_province = {
limit = {
barbarian_power = {NOT = 2}
units_in_province = 4
}
secede_province = THIS
population = 1
}
}
treasury = -10
}
option = {
name = "We can't afford it right now."
}
}
It doesn't work. The event never seems to trigger and forcing it via console brings up an empty box (the one that would usually have all the options, strings and an exit button). The console looks like it is only checking each province I own and not the empty neighbour ones I wanted.
I have no idea where it's going wrong, but as I have said, am rather new at scripting in a Paradox game. Have I made a wrong assumption about how a trigger or event works? Have I structured it wrong, or am going about the problem the wrong way? Is what I seek to accomplish simply impossible? I would greatly appreciate some help. Also, if the solution would only work with VV - I do not have VV.