Crusader Kings III

Crusader Kings III

Lifestyle XP from Skills
Suggestion
This is a cool idea for a mod but I am noticing that there are no bonuses for education or congenital traits. Might I suggest changing the monthly_lifestyle_xp event to look something like this. It would stream line all the if statements, interface with the bonus modifiers in trait, and easily support skill values greater than 25. Sorry about creating a discussion this was a bit to long for a comment.

monthly_lifestyle_xp.001 = { hidden = yes immediate = { set_variable = { name = lxps_general_multipler value = { value = 1 if = { limit = { has_trait = intellect_bad_1 } add = -0.1 } if = { limit = { has_trait = intellect_bad_2 } add = -0.2 } if = { limit = { has_trait = intellect_bad_3 } add = -0.3 } if = { limit = { has_trait = intellect_good_1 } add = 0.1 } if = { limit = { has_trait = intellect_good_2 } add = 0.2 } if = { limit = { has_trait = intellect_good_3 } add = 0.3 } } } set_variable = { name = lxps_diplomacy_multipler value = { value = 1 if = { limit = { has_trait = education_diplomacy_1 } add = 0.1 } if = { limit = { has_trait = education_diplomacy_2 } add = 0.2 } if = { limit = { has_trait = education_diplomacy_3 } add = 0.3 } if = { limit = { has_trait = education_diplomacy_4 } add = 0.4 } if = { limit = { has_trait = diplomat has_trait = august has_trait = family_first } multiply = 0 } } } set_variable = { name = lxps_martial_multipler value = { value = 1 if = { limit = { has_trait = education_martial_1 } add = 0.1 } if = { limit = { has_trait = education_martial_2 } add = 0.2 } if = { limit = { has_trait = education_martial_3 } add = 0.3 } if = { limit = { has_trait = education_martial_4 } add = 0.4 } if = { limit = { has_trait = strategist has_trait = overseer has_trait = gallant } multiply = 0 } } } #... add_diplomacy_lifestyle_xp = { value = diplomacy multiply = var:lxps_general_multipler multiply = var:lxps_diplomacy_multipler #max = 35 } add_martial_lifestyle_xp = { value = martial multiply = var:lxps_general_multipler multiply = var:lxps_martial_multipler #max = 35 } #... } }
< >
Showing 1-9 of 9 comments
Lemur  [developer] 9 Sep, 2020 @ 11:10pm 
Wow thanks. I had planned aomething like this but I haven't yet had experience with modding variables in any od the paradox games. I even see you put in a 0x multiplier for when all perks are unlocked which I wanted to do but haven't yet checked how to script it(I wanted to check requirements of achievement for unlocking all perks on lifestyle) but you beat me to it too.

I'll try to implement that on a few hours when im back home
Lemur  [developer] 10 Sep, 2020 @ 6:02am 
I took the liberty of changing "lxps_[...]" to "lsxp_[...]", as for LifeStyle eXPerience, I hope you don't mind xD

I have one question though:
I see you put a comment
#max = 35
after multiplying values. Is this something that I can uncoment and it would make sure that even after multiplying value won't go beyond 35?
And, if I do something like this
value = diplomacy max = 25 multiply = var:lsxp_general_multipler multiply = var:lsxp_diplomacy_multipler
Would it mean that value from skill would be limited to 25, but after that it would increase by being multiplied even beyond 25?
Lemur  [developer] 10 Sep, 2020 @ 7:09am 
Thanks for help, I have just updated the mod :)
Lemur  [developer] 10 Sep, 2020 @ 1:19pm 
there is no "base 25 xp" - 25 is the "ceiling" for base
if character has 2 intrigue, he gets 2 intrigue xp base (it then gets multiplied based on intellect - may be lower if stupid - and by education trait if corresponding).
if character has 7 intrigue, he gets 7 intrigue xp base
if character has 25 intrigue, he gest 25 intrigue xp base
if character has 59840 intrigue, he gets 25 intrigue xp base too
Cryyc 12 Sep, 2020 @ 1:04pm 
Would it be possible to either include or to make a compability patch for the "Legacy" mod?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2223565199
Lemur  [developer] 12 Sep, 2020 @ 1:06pm 
is it not working, or do you want to get passive xp for it too?
Cryyc 12 Sep, 2020 @ 1:52pm 
Passive xp for it too. That would be fantastic.
Licarious Fenrir 12 Sep, 2020 @ 2:01pm 
I think that these are the rest of the modifiers to lifestyle xp.
The modifier for being in the dungeon seems like it could easily force the lifestyle_xp value into the negative and therefore start loosing xp by the event firing. So, I don't know if you would want to add a "min = 0" to the bottom of each of the add_BLANK_lifestyle_xp.

councilor of liege tier:
set_variable = { name = lsxp_council_liege_tier value = { value = 0.05 if = { limit = { liege = { highest_held_title_tier >= tier_empire } } multiply = 4 } else_if = { limit = { liege = { highest_held_title_tier >= tier_kingdom } } multiply = 3 } else_if = { limit = { liege = { highest_held_title_tier >= tier_duchy } } multiply = 2 } } }

general:
if = { limit = { has_religion = religion:buddhism_religion title:c_lumbini.holder.faith = root.faith } add = 0.15 } if = { limit = { has_character_modifier = all_work_no_play_persian_modifier } add = 0.25 } if = { limit = { has_character_modifier = bhakti_shaivism_dakshinamoorthy } add = 0.2 } if = { limit = { is_in_prison_type = house_arrest } add = -0.75 } if = { limit = { is_in_prison_type = dungeon } add = -1.5 } if = { limit = { any_directly_owned_province = { has_building = house_of_wisdom_01 } } add = 0.15 } if = { limit = { any_directly_owned_province = { has_building = generic_university } } add = 0.05 } if = { limit = { any_directly_owned_province = { has_building = al_azhar_university } } add = 0.1 } if = { limit = { any_directly_owned_province = { has_building = sankore_university } } add = 0.1 } if = { limit = { any_directly_owned_province = { has_building = siena_university } } add = 0.1 } if = { limit = { any_directly_owned_province = { has_building = nalanda_university } } add = 0.1 }

diplomacy:
if = { limit = { has_character_modifier = aloof_but_alluring_modifier } add = -0.2 } if = { limit = { has_character_modifier = astrology_new_friends } add = 0.25 } if = { limit = { has_dynasty_perk = glory_legacy_3 } add = 0.1 } if = { limit = { has_council_position = councillor_chancellor } add = var:lsxp_council_liege_tier }

martial:
if = { limit = { has_character_modifier = yearly_0011_friends_in_high_places } add = 0.5 } if = { limit = { has_character_modifier = astrology_great_battle } add = 0.25 } if = { limit = { has_dynasty_perk = warfare_legacy_3 } add = 0.1 } if = { limit = { has_council_position = councillor_marshal } add = var:lsxp_council_liege_tier }

stewardship:
if = { limit = { has_character_modifier = bhakti_vaishnavism_lakishmi } add = 0.2 } if = { limit = { has_character_modifier = astrology_hard_work } add = 0.25 } if = { limit = { has_dynasty_perk = law_legacy_3 } add = 0.1 } if = { limit = { has_council_position = councillor_steward } add = var:lsxp_council_liege_tier }

intrigue:
if = { limit = { has_character_modifier = aloof_but_alluring_modifier } add = -0.2 } if = { limit = { has_character_modifier = astrology_betrayal } add = 0.25 } if = { limit = { has_dynasty_perk = guile_legacy_3 } add = 0.1 } if = { limit = { has_council_position = councillor_spymaster } add = var:lsxp_council_liege_tier }

learning:
if = { limit = { faith = { has_doctrine = tenet_alexandrian_catechism } } add = 0.2 } if = { limit = { has_character_modifier = astrology_new_beginnings } add = 0.25 } if = { limit = { has_dynasty_perk = guile_legacy_3 } add = 0.1 } if = { limit = { has_council_position = councillor_court_chaplain } add = var:lsxp_council_liege_tier } if = { limit = { any_directly_owned_province = { has_building = stonehenge_01 } } add = 0.15 }
Last edited by Licarious Fenrir; 13 Sep, 2020 @ 12:07am
Cryyc 12 Sep, 2020 @ 2:15pm 
Just an idea here but I think getting xp for the legacy lifestyle could be gained by how many children of your own house/dynasty you fathered since there is no stat like martial, learning etc. for it.
If the cap is 25 then maybe do 5xp per child you fathered into your house/dynasty bc starting at 1 would mean that you would need 25 children to reach the cap. This way you reach it by having 5 children which not a lot of rulers have in their life, at least not in my saves except for a few exceptions.
Also only the children's house/dynasty counts, meaning in a patriarchal marriage the mother doesn't get any xp for her children, would need to be matrilineal for that to happen.
Just an idea :)
< >
Showing 1-9 of 9 comments
Per page: 1530 50