making a custom mod that adds new societies, and the first one I making isn't showing up, even when I put show_society = { always = yes } it won't work.
code
(society file)
(localisation file)
(event file)
code
(society file)
Code:
children_of_lucifer = {
primary_attribute = intrigue
is_secret = yes
criminal = yes
devil_worshipper = yes
opinion_to_other_members = +5
opinion_to_pretenders = -40
opinion_to_perceived_members = -40
opinion_per_rank_above = +10
society_rank_up_decision = request_to_rank_up_within_society
sound = devil_worshippers_interface
society_ranks_gfx = devil_ranks
society_influence = no
active = {
always = yes
}
indestructible = yes
can_join_society - {
hidden_trigger = {
NAND = {
ai = yes
is_society_rank_full = {
society = children_of_lucifer
rank = 1
}
}
}
OR = {
trait = lustful
trait = gluttonous
trait = greedy
trait = slothful
trait = wroth
trait = envious
trait = proud
}
}
show_society = {
always = yes
}
potential = { }
society_rank = {
level = 1
limit = 100
startup_limit = 50
decisions = { }
}
society_rank = {
level = 2
limit = 50
startup_limit = 25
modifier = {
is_visible = {
OR = {
society_member_of = the_satanists
FROM = { is_society_discovered = yes }
}
}
intrigue = 1
}
decisions = { }
society_rank = {
level = 3
limit = 25
startup_limit = 10
modifier = {
is_visible = {
OR = {
society_member_of = the_satanists
FROM = { is_society_discovered = yes }
}
}
intrigue = 2
}
decisions = { }
society_rank = {
level = 4
limit = 1
startup_limit = 1
modifier = {
is_visible = {
OR = {
society_member_of = the_satanists
FROM = { is_society_discovered = yes }
}
}
intrigue = 3
}
decisions = { }
monthly_currency_gain = {
name = children_of_lucifer_currency
per_attribute = {
name = intrigue
value = 0.5
}
triggered_gain = {
has_trait = {
trait = ambitious
value = 5
}
has_trait = {
trait = genius
value = 4
}
has_trait = {
trait = quick
value = 3
}
has_trait = {
trait = shrewd
value = 3
}
has_trait = {
trait = hedonist
value = 3
}
has_trait = {
trait = mystic
value = 3
}
has_trait = {
trait = seducer
value = 3
}
has_trait = {
trait = seductress
value = 3
}
has_trait = {
trait = schemer
value = 3
}
has_trait = {
trait = impaler
value = 3
}
has_trait = {
trait = lustful
value = 1
}
has_trait = {
trait = proud
value = 1
}
has_trait = {
trait = greedy
value = 1
}
has_trait = {
trait = deceitful
value = 1
}
has_trait = {
trait = arbitrary
value = 1
}
has_trait = {
trait = baptized_by_satan
value = 5
}
society_rank = {
rank = 4
value = 10
}
}
member_score_per_attribute = 3
member_score_per_rank = 100
member_score = {
value = 10
modifier = {
trait = baptized_by_satan
factor = 1.75
}
modifier = {
trait = ambitious
factor = 1.5
}
modifier = {
trait = genius
factor = 1.3
}
modifier = {
trait = quick
factor = 1.3
}
modifier = {
trait = shrewd
factor = 1.3
}
modifier = {
trait = hedonist
factor = 1.3
}
modifier = {
trait = mystic
factor = 1.3
}
modifier = {
trait = seducer
factor = 1.3
}
modifier = {
trait = seductress
factor = 1.3
}
modifier = {
trait = schemer
factor = 1.3
}
modifier = {
trait = impaler
factor = 1.3
}
modifier = {
trait = lustful
factor = 1.1
}
modifier = {
trait = proud
factor = 1.1
}
modifier = {
trait = greedy
factor = 1.1
}
modifier = {
trait = deceitful
factor = 1.1
}
modifier = {
trait = arbitrary
factor = 1.1
}
}
startup_populate = {
trigger = {
ai = yes
controls_religion = no
age = 16
OR = {
trait = lustful
trait = gluttonous
trait = greedy
trait = slothful
trait = wroth
trait = envious
trait = proud
}
}
}
}
Code:
children_of_lucifer;the Children of Lucifer;;;;;;;;;;;;;x
string_children_of_lucifer;children_of_lucifer;;;;;;;;;;;;;x
children_of_lucifer_desc;Those who serve the Great Adversary hide in our midst, dedicating their depravities and perfidies to their Lord Satan. Every transgression is a hymn, every murder a roar of defiance against the word of [Root.Religion.GetHighGodName]. Lucifer rewards such dark sacraments handsomely – witches are said to be gifted with unnatural lifespans and all manner of demonic powers…;;;;;;;;;;;;;x
children_of_lucifer_leader_desc;Said to be the Anti-Christ, or the vessel of Lucifer himself, he wields powers like no other;;;;;;;;;;;;;x
children_of_lucifer_rank_1_female;Satanist;;;;;;;;;;;;;x
children_of_lucifer_rank_2_female;Seductress;;;;;;;;;;;;;x
children_of_lucifer_rank_3_female;Witch;;;;;;;;;;;;;x
children_of_lucifer_rank_4_female;the Anti-Christ;;;;;;;;;;;;;x
children_of_lucifer_rank_1_male;Satanist;;;;;;;;;;;;;x
children_of_lucifer_rank_2_male;Prector;;;;;;;;;;;;;x
children_of_lucifer_rank_3_male;Priest;;;;;;;;;;;;;x
children_of_lucifer_rank_4_male;the Anti-Christ;;;;;;;;;;;;;x
children_of_lucifer_currency;Belief;;;;;;;;;;;;;x
request_to_rank_up_within_children_of_lucifer;Ask Priests for a Promotion;;;;;;;;;;;;;x
IS_children_of_lucifer_TRIGGER;Is a member of the Children of Lucifer.;;;;;;;;;;;;;x
EVTDESC_LUCIFER_3;We have noticed you have taken an interest in our society. Tell me, are you ready to accept the true God Lucifer as your one true God?;;;;;;;;;;;;;x
EVTOPTA_LUCIFER_3;Yes, I am ready.;;;;;;;;;;;;;x
EVTOPTB_LUCIFER_3;No! [Root.Religion.GetHighGodName]is my true God, and will always be!;;;;;;;;;;;;;x
EVTDESC_LUCIFER_23;We have reviewed your request, and have granted you a rank up;;;;;;;;;;;;;x
EVTOPTA_LUCIFER_23;Praise Lucifer!;;;;;;;;;;;;;x
Code:
namespace = LUCIFER
####################################### JOINING ##########################################
character_event = {
id = LUCIFER.1
hide_window = yes
is_triggered_only = yes
trigger = {
FROM = { leader = { society_member_of = children_of_lucifer } }
}
immediate = {
FROM = { leader = { character_event = { id = LUCIFER.1 } } }
}
}
character_event = {
id = LUCIFER.2
hide_window = yes
is_triggered_only = yes
immediate = {
FROM = { letter_event = { id = LUCIFER.2 } }
}
}
letter_event = {
id = LUCIFER.3
desc = EVTDESC_LUCIFER_3
border = GFX_event_letter_frame_war
is_triggered_only = yes
option = {
name = EVTOPTA_LUCIFER_3
FROM = { ROOT = { join_society = children_of_lucifer } }
}
option = {
name = EVTOPTB_LUCIFER_3
}
}
################################ AI JOIN AND AI RANK UP ###################################
character_event = {
id = LUCIFER.11
hide_window = yes
only_rulers = yes
is_triggered_only = yes
immediate = {
if = {
limit = {
ai = yes
prisioner = no
NOT = { trait = incapable }
society_member_of = children_of_lucifer
society_rank <= 3
society_can_rank_up = yes
}
random_list = {
75 = { }
25 = {
society_rank_up = 1
}
}
}
any_courtier = {
limit = {
ai = yes
prisoner = no
NOT = { trait = incapable }
is_adult = yes
is_in_society = no
controls_religion = no
block_general_event_trigger = no
}
character_event = { id = LUCIFER.12 }
}
if = {
limit = {
ai = yes
prisoner = no
NOT = { trait = incapable }
is_adult = yes
is_in_society = no
controls_religion = no
block_general_event_trigger = no
}
character_event = { id = LUCIFER.12 }
}
}
}
character_event = {
id = LUCIFER.12
hide_window = yes
is_triggered_only = yes
immediate = {
random_list = {
90 = { }
10 = {
trigger = {
can_join_society = children_of_lucifer
}
modifier = {
factor = 2
piety = -5
}
modifier = {
factor = 3
piety = -35
}
modifier = {
factor = 4
piety = -65
}
modifier = {
factor = 5
piety = -100
}
}
if = {
limit = {
NOT = {
society = {
any_society_member = {
is_society_grandmaster = yes
}
}
}
}
set_society_grandmaster = yes
}
####################################### Rank Up ###########################################
character_event = {
id = LUCIFER.21
hide_window = yes
trigger = {
has_character_flag = has_sent_request_to_rank_up
}
is_triggered_only = yes
immediate = {
if = {
limit = { is_in_society = yes }
random_society_member = {
limit = {
is_society_grandmaster = yes
same_society_as = ROOT
}
character_event = { id = LUCIFER.22 }
}
}
if = {
limit = { is_in_society = no }
clr_character_flag = has_sent_request_to_rank_up
}
}
}
character_event = {
id = LUCIFER.22
hide_window = yes
is_triggered_only = yes
immediate = {
event_target:rank_up_target = { letter_event = { id = LUCIFER.23 } }
}
}
letter_event = {
id = LUCIFER.23
desc = EVTDESC_LUCIFER_23
border = GFX_event_letter_frame_war
trigger = {
society_rank < 4
has_character_flag = has_sent_request_to_rank_up
}
is_triggered_only = yes
option = {
name = EVTOPTA_LUCIFER_23
if = { limit = { society_rank < 4 }
society_rank_up_1
}
clr_character_flag = has_sent_request_to_rank_up
}
}
Last edited: