So, I'm about to embark on a mod to make muslims and pagans "fully playable" through a rather ugly hack.
Namely, forcing all muslim and pagan characters to orthodox and using user defined traits A and B as muslim and pagan respectively.
Obviously, this will require some rework of the events. One question I have is how best to simulate the enemy_same_religion check.
Would something like the following work (to implement the not enemy_same_religion check, actually, but the principle applies):
Obviously, this is a lot more cumbersome, but it is what it is.
Namely, forcing all muslim and pagan characters to orthodox and using user defined traits A and B as muslim and pagan respectively.
Obviously, this will require some rework of the events. One question I have is how best to simulate the enemy_same_religion check.
Would something like the following work (to implement the not enemy_same_religion check, actually, but the principle applies):
Code:
# check to be sure this is a real Christian character
# i.e., catholic or "orthodox" missing the muslim and pagan traits
condition = {
type = or
condition = { type = religion value = catholic }
condition = {
type = and
condition = { type = religion value = orthodox }
condition = { type = not value = { type = trait value = user_defined_a } }
condition = { type = not value = { type = trait value = user_defined_b } }
}
}
# now see if his enemy is a muslim or pagan based on the user trait
condition = { type = any_enemy
condition = {
type = or
condition = { type = trait value = user_defined_a }
condition = { type = trait value = user_defined_b } }
}
}
Obviously, this is a lot more cumbersome, but it is what it is.
Last edited: