Ok. I wrote this event for Catalonias tag, a country I basically turned into a hindu philipino kingdom called tongo
event = {
id = 316330
trigger = {
NOT = {
religion = sunni
}
}
country = CAT
random = no
name = "Brunei Invasion"
desc = "Brunei invaded the Tongo and forced the kingdom to adopt Islam"
style = 0
date = { day = 1 month = january year = 1510 }
offset = 60
deathdate = { day = 1 month = january year = 1820 }
action_a = {
name = "Found a great muslim dynasty"
command = { type = religion which = sunni }
command = { type = provincereligion which = -1 value = sunni }
}
action_b = {
name = "Do not found the sultanate"
command = { type = stability value = -2 }
}
}
The event doesnt actually fire, but I dont know why. It looks 'right' to me, and I doubt that event id is used. I added in a catalonia eue line to db/events, so I'm not sure what im missing here, or why it wont fire.
event = {
id = 316330
trigger = {
NOT = {
religion = sunni
}
}
country = CAT
random = no
name = "Brunei Invasion"
desc = "Brunei invaded the Tongo and forced the kingdom to adopt Islam"
style = 0
date = { day = 1 month = january year = 1510 }
offset = 60
deathdate = { day = 1 month = january year = 1820 }
action_a = {
name = "Found a great muslim dynasty"
command = { type = religion which = sunni }
command = { type = provincereligion which = -1 value = sunni }
}
action_b = {
name = "Do not found the sultanate"
command = { type = stability value = -2 }
}
}
The event doesnt actually fire, but I dont know why. It looks 'right' to me, and I doubt that event id is used. I added in a catalonia eue line to db/events, so I'm not sure what im missing here, or why it wont fire.