fixing that thing where it looks like characters hanged themselves

This commit is contained in:
Thakia 2026-10-01 13:11:41 -03:00
parent 3a8b2882cb
commit 273cb89aa5
21 changed files with 3227 additions and 775 deletions

View file

@ -4,7 +4,10 @@ my_animation = { # Name of the animation, this is the name events and g
male = { # Animations are scripted for each portrait type, all types needs to be scripted
default = { head = "idle" torso = "idle" } # Default animation used if no item has a weight > 0, or if it is used in a non scripted environment
force = no # portrait_modifier are copied to children if they have none of their own. If specified, copying is skipped unless force = yes. Default is no.
## How to handle portrait_modifiers at this top level, in relation to animation variants
# (default) no: portrait_modifiers at top level are _copied_ animation variants, if they have no portrait_modifiers (or packs) defined
# yes: for each portrait_modifiers at this top level, we _add_ their overrides to all portrait_modifiers of all animation variants
force = yes/no
portrait_modifier = { # Triggered portrait modifier for when this animation is picked. The first one satisfying the trigger will be picked.
trigger = {
@ -17,12 +20,34 @@ my_animation = { # Name of the animation, this is the name events and g
portrait_modifier = ...
evil = { # Item, specifies animations to be used if this one is choosen by the weighted random
portrait_modifier_pack = <key> # Add all of modifiers from the pack with name <key>. Packs are defined in `*.animationpack` files.
# Add a portrait modifier set. All modifier sets are applied independently when this animation is selected. (the first valid modifier in each is applied)
portrait_modifier_set = {
portrait_modifier = ... # Portrait modifiers for the current variant (same syntax as for the default animation). If none are specified, the default animation ones will be used.
portrait_modifier = ...
portrait_modifier_pack = <key> # Add all of modifiers from the pack with name <key>. Packs are defined in `*.animationpack` files.
}
portrait_modifier_set = { ... }
# Animation variant (possibly weighted)
evil = {
# Item, specifies animations to be used if this one is choosen by the weighted random
animation = { head = "evil" torso = "evil" }
portrait_modifier = ... # Portrait modifiers for the current variant (same syntax as for the default animation). If none are specified, the default animation ones will be used.
portrait_modifier = ...
portrait_modifier_pack = <key> # Add all of modifiers from the pack with name <key>. Packs are defined in `*.animationpack` files.
# Add a portrait modifier set. All modifier sets are applied independently when this animation is selected. (the first valid modifier in each is applied)
portrait_modifier_set = {
portrait_modifier = ... # Portrait modifiers for the current variant (same syntax as for the default animation). If none are specified, the default animation ones will be used.
portrait_modifier = ...
portrait_modifier_pack = <key> # Add all of modifiers from the pack with name <key>. Packs are defined in `*.animationpack` files.
}
portrait_modifier_set = { ... }
weight = { # This is where the weight is calculated
base = 1 # The final weigth is calculated like this:
# weight = base

View file

@ -3679,6 +3679,13 @@ hu = {
### Cultural Books ###
open_book = {
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = pam_bible_ornate_open_left
animations = female_prop_fix_additive
}
portrait_modifier = { # Chinese
trigger = {
culture = {
@ -3696,6 +3703,13 @@ open_book = {
}
open_book_w_writing_tool_left = {
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = open_book_left_writing_bible
animations = female_prop_fix_additive
}
portrait_modifier = { # Chinese
trigger = {
culture = {
@ -3713,6 +3727,13 @@ open_book_w_writing_tool_left = {
}
open_book_w_writing_tool_right = {
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = open_book_right_writing_bible
animations = female_prop_fix_additive
}
portrait_modifier = { # Chinese
trigger = {
culture = {
@ -3749,6 +3770,26 @@ paged_book = {
}
closed_book = {
portrait_modifier = { # Mediterranean
trigger = {
faith = faith:orthodox
culture = {
OR = {
has_clothing_gfx = iberian_christian_clothing_gfx
has_clothing_gfx = byzantine_clothing_gfx
}
}
}
animations_props = ep1_mediterranean_book
animations = female_prop_fix_additive
}
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = pam_bible_ornate_01
animations = female_prop_fix_additive
}
portrait_modifier = { # MENA
trigger = {
culture = {
@ -3774,18 +3815,6 @@ closed_book = {
animations_props = ep1_indian_book
animations = female_prop_fix_additive
}
portrait_modifier = { # Mediterranean
trigger = {
culture = {
OR = {
has_clothing_gfx = iberian_christian_clothing_gfx
has_clothing_gfx = byzantine_clothing_gfx
}
}
}
animations_props = ep1_mediterranean_book
animations = female_prop_fix_additive
}
portrait_modifier = { # China
trigger = {
culture = {
@ -3804,7 +3833,78 @@ closed_book = {
}
}
closed_book_left = {
portrait_modifier = { # Mediterranean
trigger = {
faith = faith:orthodox
culture = {
OR = {
has_clothing_gfx = iberian_christian_clothing_gfx
has_clothing_gfx = byzantine_clothing_gfx
}
}
}
animations_props = ep1_mediterranean_book_big_left
animations = female_prop_fix_additive
}
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = pam_bible_ornate_01_a_left
animations = female_prop_fix_additive
}
portrait_modifier = { # MENA
trigger = {
culture = {
OR = {
has_clothing_gfx = mena_clothing_gfx
has_clothing_gfx = mongol_clothing_gfx
has_clothing_gfx = iberian_muslim_clothing_gfx
}
}
}
animations_props = ep1_mena_book_big_left
animations = female_prop_fix_additive
}
portrait_modifier = { # India
trigger = {
culture = {
OR = {
has_clothing_gfx = indian_clothing_gfx
has_clothing_gfx = southeast_asian_clothing_gfx
}
}
}
animations_props = ep1_indian_book_big_left
animations = female_prop_fix_additive
}
portrait_modifier = { # China
trigger = {
culture = {
OR = {
has_clothing_gfx = chinese_clothing_gfx
has_unit_gfx = japanese_unit_gfx
}
}
}
animations_props = tgp_chinese_book_closed_left
animations = female_prop_fix_additive
}
portrait_modifier = { # Everything else - not great bc big cross
animations_props = ep1_western_book_big_left
animations = female_prop_fix_additive
}
}
closed_book_w_writing_tool = {
portrait_modifier = { # Christians
trigger = {
religion = religion:christianity_religion
}
animations_props = pam_bible_ornate_writing
animations = female_prop_fix_additive
}
portrait_modifier = { # MENA
trigger = {
culture = {
@ -3859,3 +3959,139 @@ closed_book_w_writing_tool = {
animations = female_prop_fix_additive
}
}
### Crozier ###
crozier = {
portrait_modifier = { # Orthodox ornate
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_orthodox_ornate
}
portrait_modifier = { # Orthodox basic
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
}
animations_props = pam_crozier_orthodox_basic
}
portrait_modifier = { # Catholic ornate
trigger = {
religion = religion:christianity_religion
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_catholic_ornate
}
portrait_modifier = { # Catholic archbishop / prince-bishop / cardinal
trigger = {
religion = religion:christianity_religion
OR = {
portrait_is_archbishop_trigger = yes
portrait_is_prince_bishop_trigger = yes
portrait_is_cardinal_trigger = yes
}
}
animations_props = pam_crozier_catholic_basic
}
portrait_modifier = { # Equipped
animations_props = bp3_walking_stick
}
}
crozier_right = {
portrait_modifier = { # Orthodox ornate
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_orthodox_ornate_right
}
portrait_modifier = { # Orthodox basic
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
}
animations_props = pam_crozier_orthodox_basic_right
}
portrait_modifier = { # Catholic ornate
trigger = {
religion = religion:christianity_religion
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_catholic_ornate_right
}
portrait_modifier = { # Catholic archbishop / prince-bishop / cardinal
trigger = {
religion = religion:christianity_religion
OR = {
portrait_is_archbishop_trigger = yes
portrait_is_prince_bishop_trigger = yes
portrait_is_cardinal_trigger = yes
}
}
animations_props = pam_crozier_catholic_basic_right
}
portrait_modifier = { # Equipped
animations_props = bp3_walking_stick_right
}
}
crozier_w_bible = {
portrait_modifier = { # Orthodox ornate
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_orthodox_ornate_right
animations_props = pam_bible_ornate_01
}
portrait_modifier = { # Orthodox basic
trigger = {
OR = {
faith = faith:orthodox
rite = rite:byzantine_rite
}
}
animations_props = pam_crozier_orthodox_basic_right
animations_props = pam_bible_ornate_01
}
portrait_modifier = { # Catholic ornate
trigger = {
religion = religion:christianity_religion
any_held_title = { is_head_of_faith = yes }
}
animations_props = pam_crozier_catholic_ornate_right
animations_props = pam_bible_ornate_01
}
portrait_modifier = { # Catholic archbishop / prince-bishop / cardinal
trigger = {
religion = religion:christianity_religion
OR = {
portrait_is_archbishop_trigger = yes
portrait_is_prince_bishop_trigger = yes
portrait_is_cardinal_trigger = yes
}
}
animations_props = pam_crozier_catholic_basic_right
animations_props = pam_bible_ornate_01
}
portrait_modifier = { # Equipped
animations_props = bp3_walking_stick_right
animations_props = pam_bible_ornate_01
}
}

File diff suppressed because it is too large Load diff