Hmm, turns out my event actually looked almost identical to yours, but the trait wasn't a proper one.
I tried it with this:
Code:
character_event = {
id = amazon_male_disinherit
desc = "EVTamazon_male_disinherit01"
picture = "GFX_evt_birth"
only_men = yes
trigger = {
OR = {
religion_group = amazonism
culture_group = amazon
}
NOT = { trait = amazon_male }
}
meant_time_to_happen = {
days = 1
}
option = {
name = "EVTamazon_male_disinherit02"
add_trait = amazon_male
}
}
for this trait:
Code:
amazon_male = {
sex_appeal_opinion = -15
diplomacy = -5
stewardship = -2
intrigue = -2
customizer = no
cannot_inherit = yes
potential = {
OR = {
culture_group = amazon
religion_group = amazonism
}
}
}
The idea is to add in a matriarchal culture that autodisinherits men and defaults to true cognatic succession, but with this setup, I haven't seen it fire so far (I added an icon amazon_male.dds copied from the celibate icon, so it would show up if it fired properly, right?)
HEY!! You're almost copying me. I'm working on an 'all woman' world. Even the men are 'women'... hehehe...
You have to put a pointer to a '.gfx' file in 'interface so that it knows what picture to look for. Go to your mod's interface folder. If you don't have one, you gotta make one and put in a new file, you can call it 'my_traits.gfx'. You really only need to add one entry to that file.
Code:
spriteTypes = {
spriteType = {
name = "GFX_trait_amazon_male"
texturefile = "gfx/traits/amazon_male.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
}
After that, it should show up. Do not change the .tga extension on the pointer. Leave it as is while still keeping the picture as .dds extension.
Eh... Make sure that the picture is in 'your_mod\gfx\traits'. If it is not, then change the pointer to the right folder. the pointer is the 'texturefile =' line.
EH... YOU FORGOT A LINE OF CODE... Your potential should also have 'is_female = no' otherwise, women are going to get this also.
ONE MORE THING!!! On your potential and your code, are you sure it's 'OR' or should it be both? In other words, if the person has the correct religion but not the correct culture, will that person receive the event? The way it is written, the answer to this would be yes. If they have to have both be true, you need to take off the 'OR' code block on both the potential in the trait and the trigger in the event.
You might also wish to make another event that triggers to men that have the trait but changes their culture or religion and, by them doing so, would trigger the event to take off the trait?