Oh oh oh—okay, I see what happened. I misunderstood what you were trying to do.
So, you're trying to make a tradition that is only accessible to the player, which gives +100 traditions. The problem is that this tradition is named the same in the base game, so when the game starts every tradition is already assigned one of
martial_custom_male_only
,
martial_custom_equal
, or
martial_custom_female_only
. That means the AI is getting access to this as well, without ever having to pick it. So if you give this
is_ai = no
it won't stop a culture from getting it on game start, it will only prevent the AI from ever changing it later.
To do something like what you want, you're probably going to want to change the name of these to something with
_player
at the end (e.g.,
martial_custom_male_only_player
), just to differentiate them from the base game's martial traditions, then if you want a tradition to exist for only the player when the game starts, you're going to want to create an effect in
game_start_after_lobby
on_action (which can be found in
common\on_action\game_start.txt
). Currently, there are two effects in there called
game_rule_full_gender_equality_effect
and
game_rule_inversed_gender_equality_effect
. I would put the effect you create after those, as it will still allow the gender equality game rules to work, which will allow the player's mod tradition to appropriately reflect the game rules they chose.
So after those effects, put something like:
Code:
every_player = { # Check every player
culture = {
switch = { # Check their martial tradition and change it to the appropriate player-only one
trigger = has_cultural_pillar
martial_custom_male_only = {
set_culture_pillar = martial_custom_male_only_player
}
martial_custom_female_only = {
set_culture_pillar = martial_custom_female_only_player
}
martial_custom_equal = {
set_culture_pillar = martial_custom_equal_player
}
}
}
}
Then, if you want the AI not to be able to ever pick it, don't forget to add
is_ai = no
to the
can_pick
block in the tradition itself.
Hope that helps!
EDIT: Clarity