Jump to content

CK2 modding linking mods


MuteDay

Recommended Posts

Posted
Hello muteday here,
so I have been working on a way that we can allow other mods to enhace ours without having to override them,
so far from what i have found is that through the use of character/provence/global flags and variables 
sexual crusaders and dark world have been linked together without requireing both mods, although currently sexual crusaders would have alot of bugs if you ran it through validator, due to missing traits/events but i can tell you that you can run sexual crusaders without dark world but you dont get all the features
 
so how have we done this, well the answer is simple we added flags at start up
currently they use the following global flags
sexual crusaders global flag = SC_enabled
Dark world global flag = DW_enabled
 
so i have decided to add the flags and variables from sexual cruaders and if you post your flags i will update the list
 
---Sexual Crusaders Flags---
--flag names and discriptions

 
Character Flags 
- None Currently
 
Provence Flags 
- None Currently
 
Global Flags
- SC_enabled 
-- Shows sexual cruaders is enabled
 
Character Variables
- st_sex
-- the mods sexuality system driving stat for heterosexual trait
- bi_sex
-- sexuality system driving stat for bisexual trait
- ho_sex
-- sexuality system driving stat for homosexual trait
 
provence variables
-none currently
 
global variables
- none due to thier is no global variables

 
--- Dark World Flags ----
-- flag names and discriptions

 
Character Flags 
- None Currently
 
Provence Flags 
(capital only)

DW_enslave_built = indicates that one of the Dark World slavery buildings has been constructed

DW_ass_guild_built = indicates that the Dark World Assassins Guild has been constructed

DW_brothel_built = indicates that one of the Dark World whoring buildings has been constructed

 

Global Flags
- DW_enabled 
-- Shows dark world is enabled
 
Character Variables
- None currently
 
provence variables
-none currently
 
global variables
- none due to thier is no global variables

 
----Tutorial/examples ----

Example of how to check for DW
gen_m_EN = {
group = gen_law_m
potential = {
holder_scope = {
religion_group = sex_group
}
}
allow = {
holder_scope = {
has_global_flag = DW_enabled
prisoner = no
hidden_tooltip = {
capital_scope = {
OR = {
has_building = dw_slave_dungeon
has_building = dw_slave_market
has_building = dw_slave_pen
}
}
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {factor = 0}
ai_will_revoke = { factor = 0 }
effect = {
custom_tooltip = { text = gen_m_law_tip5}
hidden_tooltip = {
revoke_law = gen_m_PL # prisoner law
revoke_law = gen_m_RN # Ransom
revoke_law = gen_m_RE # Release
revoke_law = gen_m_EX # Execute
revoke_law = gen_m_EN # Enslave
 
}
}
}
Example of how to check for SC
law_template = {
group = template_name
potential = {
# whatever you want your reasons for showing
}
allow = {
has_global_flag = SC_enabled
# rest of reasons
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
ai_will_revoke = {
factor = 0
}
effect = {
# whatever the effect is
}
}
this can be applied to any potnetial, trigger, allow and any if and limit statements 
 
how to use the sex_variables for SC
option = {
		name = SC_Cancel
		piety = 5
		prestige = -3
		hidden_tooltip = {
			change_variable = { which = st_sex value = -5 }
			change_variable = { which = ho_sex value = 5 }
			change_variable = { which = bi_sex value = 10}
		}
	}

this can be used in any effect/immediate or option code

  • 2 weeks later...
Posted

More flags:

 

Province flags:

 

(Capitals only)

DW_enslave_built = indicates that one of the Dark World slavery buildings has been constructed

DW_ass_guild_built = indicates that the Dark World Assassins Guild has been constructed

DW_brothel_built = indicates that one of the Dark World whoring buildings has been constructed

Posted

what about your whore baby flag

 

and do you mind providing examples so people know how to use them or would you like me to do that for you?

Posted

what about your whore baby flag

 

and do you mind providing examples so people know how to use them or would you like me to do that for you?

 

Ah. Good point. A change I made invalidated the previous brothel_baby flag. I'll need to add it back in before I post the next version later tonight.

 

Regarding the example - are you talking about how someone may use one of the flags? If so, I don't mind putting something together unless you've already got an example ready.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...