• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
I've been toying with an idea to make an event that would give a permanent (that is, until the conditions no longer apply) casus belli against a non-muslim owner of Meka and Medina, but (keep in mind that my modding skills are a teeny-tiny bit rusty :blush: ) I can't find an elegant solution.

So, is there a trigger that would be based on the religion of the of the owner? :blink:
 
I do not think you can do it with an event and maybe you do not need to. In Db\Map\provinces_special.txt, you can find these lines:

Code:
religious_cb = {
    religion = {
        province = 399 #Roma
        type = catholic
        owner = { PAP }
    }
}
I think you can script the same thing for Meka and Medina with sunni religion, though as I understand things you will have to list all muslim tags in the owner category and that may prove a bit tedious.
 
Yeah, I know that, that's why I said I can't find an elegant solution :D

I was hoping for something like this:

religion: sunni/shiite
owner of province(s) meka& medina NOT muslim

--> casus belli or casusbelliprovince

:(
 
But in any case you can only give a casusbelli to the country receiving the event, so you would have to write an event for every single muslim country, even more tedious than writing a list of tags if you ask me.
 
Isn't there a way to make an event a persistent one, like the random events?

Sure, but that does not help you.

A random event could fire again and again - but no event can check that Mekkah is owned by a non-muslim AND give a CB to all muslim countries.
You would need more than one event to achieve that - so the permanent CB using the database seems the easier method to me:
http://forum.paradoxplaza.com/forum/showthread.php?431786-Development-Diary-3-16th-of-September-2009
 
Indeed, trying to achieve what you want with events would be a total mess requiring tons of events.

A quick search through the scenario files shows that there are only 48 sunni countries in vanilla GC so it would be much easier this way:
Code:
religious_cb = {
    religion = {
        province = 497 #Medina
        type = sunni
        owner = { < 48 sunni tags > }
    }
}