fixed bga events
This commit is contained in:
parent
4ead0b92e4
commit
cd26a19f4f
20 changed files with 29092 additions and 12489 deletions
345
events/dlc/pam/pam_religious_artifact_events.txt
Normal file
345
events/dlc/pam/pam_religious_artifact_events.txt
Normal file
|
|
@ -0,0 +1,345 @@
|
|||
namespace = pam_religious_artifact_events
|
||||
|
||||
###########################
|
||||
## 0001 - Courtier asks for sponsoring for making a religious artifact
|
||||
## 0002 - Religious Artifact Inspiration completion event
|
||||
############################
|
||||
|
||||
scripted_trigger pam_religious_artifact_events_valid_courtier_trigger = {
|
||||
is_available_healthy_ai_adult = yes
|
||||
faith = root.faith
|
||||
NOR = {
|
||||
is_spouse_of = root
|
||||
is_child_of = root
|
||||
exists = inspiration
|
||||
has_any_court_position = yes
|
||||
is_councillor = yes
|
||||
has_trait = cynical
|
||||
}
|
||||
}
|
||||
|
||||
pam_religious_artifact_events.0001 = {
|
||||
type = character_event
|
||||
title = pam_religious_artifact_events.0001.t
|
||||
desc = pam_religious_artifact_events.0001.desc
|
||||
theme = friendly
|
||||
override_background = { reference = council_chamber }
|
||||
cooldown = { years = 10 }
|
||||
|
||||
left_portrait = {
|
||||
character = root
|
||||
animation = thinking
|
||||
}
|
||||
|
||||
right_portrait = {
|
||||
character = scope:inspired_courtier
|
||||
animation = happiness
|
||||
}
|
||||
|
||||
trigger = {
|
||||
is_available_adult = yes
|
||||
OR = {
|
||||
religion = religion:catholic_religion
|
||||
religion = religion:protestant_religion
|
||||
religion = religion:eastern_orthodox_religion
|
||||
religion = religion:oriental_orthodox_religion
|
||||
}
|
||||
any_courtier = {
|
||||
pam_religious_artifact_events_valid_courtier_trigger = yes
|
||||
}
|
||||
}
|
||||
|
||||
weight_multiplier = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 1
|
||||
NOT = { any_sponsored_inspiration = { } }
|
||||
}
|
||||
modifier = {
|
||||
factor = 0.5
|
||||
has_royal_court = no
|
||||
}
|
||||
}
|
||||
|
||||
immediate = {
|
||||
random_courtier = {
|
||||
limit = { pam_religious_artifact_events_valid_courtier_trigger = yes }
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
has_trait = zealous
|
||||
add = 5
|
||||
}
|
||||
modifier = {
|
||||
has_trait = theologian
|
||||
add = 5
|
||||
}
|
||||
modifier = {
|
||||
is_clergy = yes
|
||||
add = 5
|
||||
}
|
||||
}
|
||||
save_scope_as = inspired_courtier
|
||||
create_inspiration = religious_artifact_inspiration
|
||||
inspiration = { save_scope_as = my_inspiration }
|
||||
}
|
||||
}
|
||||
|
||||
option = { # Accuse them of fraud
|
||||
name = pam_religious_artifact_events.0001.aa
|
||||
trigger = {
|
||||
OR = {
|
||||
has_trait = cynical
|
||||
has_trait = sadistic
|
||||
}
|
||||
}
|
||||
rightfully_imprison_character_less_verbose_effect = {
|
||||
TARGET = scope:inspired_courtier
|
||||
IMPRISONER = root
|
||||
}
|
||||
stress_and_fulfillment_impact = {
|
||||
cynical = medium_stress_impact_loss
|
||||
sadistic = medium_stress_impact_loss
|
||||
zealous = major_stress_impact_gain
|
||||
}
|
||||
|
||||
ai_chance = {
|
||||
base = 50
|
||||
modifier = {
|
||||
factor = 2
|
||||
OR = {
|
||||
has_trait = cynical
|
||||
has_trait = sadistic
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
factor = 0
|
||||
has_trait = zealous
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
option = { # Sponsor them
|
||||
name = pam_religious_artifact_events.0001.a
|
||||
sponsor_inspiration = scope:my_inspiration
|
||||
|
||||
reverse_add_opinion = {
|
||||
target = scope:inspired_courtier
|
||||
modifier = pleased_opinion
|
||||
opinion = 25
|
||||
}
|
||||
|
||||
stress_and_fulfillment_impact = {
|
||||
profligate = medium_stress_impact_loss
|
||||
content = major_stress_impact_gain
|
||||
greedy = medium_stress_impact_gain
|
||||
}
|
||||
|
||||
ai_chance = {
|
||||
base = 50
|
||||
ai_value_modifier = {
|
||||
ai_compassion = 1.5
|
||||
ai_greed = 0.5
|
||||
}
|
||||
modifier = {
|
||||
factor = 2
|
||||
has_trait = profligate
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
option = { # Refuse
|
||||
name = pam_religious_artifact_events.0001.b
|
||||
scope:inspired_courtier = {
|
||||
progress_towards_rival_effect = {
|
||||
CHARACTER = root
|
||||
REASON = rival_rejected_tapestries
|
||||
OPINION = -25
|
||||
}
|
||||
}
|
||||
|
||||
stress_and_fulfillment_impact = {
|
||||
profligate = medium_stress_impact_gain
|
||||
greedy = minor_stress_impact_loss
|
||||
content = minor_stress_impact_loss
|
||||
}
|
||||
|
||||
ai_chance = {
|
||||
base = 50
|
||||
ai_value_modifier = {
|
||||
ai_compassion = 0.5
|
||||
ai_greed = 1.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Religious artifact completion event
|
||||
pam_religious_artifact_events.0002 = {
|
||||
type = character_event
|
||||
title = fund_inspiration.1001.t
|
||||
desc = pam_religious_artifact_events.0002.desc
|
||||
theme = inspiration_complete
|
||||
override_background = { reference = temple }
|
||||
left_portrait = {
|
||||
character = root
|
||||
animation = admiration
|
||||
}
|
||||
right_portrait = {
|
||||
character = scope:inspiration_owner
|
||||
animation = prayer
|
||||
camera = camera_event_right_to_the_right
|
||||
}
|
||||
artifact = { # To display the artifact in the event-window
|
||||
target = scope:newly_created_artifact
|
||||
position = lower_center_portrait
|
||||
}
|
||||
|
||||
trigger = {
|
||||
has_character_flag = trigger_religious_artifact_completion_event
|
||||
}
|
||||
|
||||
immediate = {
|
||||
play_music_cue = "mx_cue_epic_sacral_moment"
|
||||
remove_character_flag = trigger_religious_artifact_completion_event
|
||||
create_christian_religious_artifact_effect = {
|
||||
OWNER = root
|
||||
CREATOR = scope:inspiration_owner
|
||||
}
|
||||
# Add a dedication to the description - fund_inspiration.7001
|
||||
if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_a_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_a_var = {
|
||||
save_scope_as = dedication_a
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_a
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_b_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_b_var = {
|
||||
save_scope_as = dedication_b
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_b
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_var
|
||||
var:artifact_dedication_var = flag:dedication_c
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_c
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_d_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_d_var = {
|
||||
save_scope_as = dedication_d
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_d
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_e_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_e_var = {
|
||||
save_scope_as = dedication_e
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_e
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_f_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_f_var = {
|
||||
save_scope_as = dedication_f
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_f
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_g1_var
|
||||
has_variable = artifact_dedication_g2_var
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_g1_var = {
|
||||
save_scope_as = dedication_g1
|
||||
}
|
||||
}
|
||||
scope:inspiration_owner = {
|
||||
var:artifact_dedication_g2_var = {
|
||||
save_scope_as = dedication_g2
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_g
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_dedication_var
|
||||
var:artifact_dedication_h_var = flag:dedication_h
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_dedication_inscribed_h
|
||||
}
|
||||
}
|
||||
#Inscribe your family motto
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:inspiration_owner = {
|
||||
has_variable = artifact_inscribe_motto_var
|
||||
}
|
||||
}
|
||||
scope:newly_created_artifact = {
|
||||
set_artifact_description = artifact_motto_inscribed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
option = {
|
||||
name = pam_religious_artifact_events.0002.a
|
||||
custom_tooltip = create_artifact_religious_artifact_tooltip
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue