Playdate Actions
Playdate Actions
Playdate Actions
icon = friendship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = temperate }
count >= 2
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = temperate }
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = temperate }
NOT = { this = scope:first }
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_won_at_dice
tags = { pulse_action }
character = scope:first
scope:first = {
add_stress = minor_stress_loss
}
}
}
}
apa_good_manners = {
icon = diplomacy
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = rowdy }
NOT = { has_trait = bossy }
NOT = { has_trait = wrathful }
NOT = { has_trait = callous }
NOT = { has_trait = sadistic }
NOT = { has_trait = impatient }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = rowdy }
NOT = { has_trait = bossy }
NOT = { has_trait = wrathful }
NOT = { has_trait = callous }
NOT = { has_trait = sadistic }
NOT = { has_trait = impatient }
}
save_scope_as = first
}
add_activity_log_entry = {
key = apa_good_manners
tags = { pulse_action }
character = scope:first
scope:first = {
add_prestige = minor_prestige_gain
}
}
}
}
apa_visited_friends_chapel = {
icon = piety
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
count >= 2
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { this = scope:host }
}
save_scope_as = first
}
add_activity_log_entry = {
key = apa_visited_friends_chapel
tags = { pulse_action }
character = scope:first
scope:first = {
add_piety = minor_piety_gain
}
}
}
}
apa_mentor_taught_me = {
icon = learning
is_valid = {
is_current_phase_active = yes
scope:host = {
any_relation = {
type = guardian
exists = this
location = scope:province
}
}
any_attending_character = {
location = scope:province
NOT = { has_variable = had_apa_mentor_taught_me_var }
NOT = { this = scope:host }
}
}
weight = {
value = 1
}
effect = {
scope:host = {
random_relation = {
type = guardian
limit = {
location = scope:province
}
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_variable = had_apa_mentor_taught_me_var }
NOT = { this = scope:host }
}
save_scope_as = second
set_variable = {
name = had_apa_mentor_taught_me_var
years = 1
}
}
add_activity_log_entry = {
key = apa_mentor_taught_me
tags = { pulse_action }
character = scope:second
scope:second = {
add_random_skill_point_effect = yes
}
}
}
}
apa_read_a_book = {
icon = learning
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_variable = had_read_a_book_var }
NOT = { has_trait = rowdy }
NOT = { has_trait = lazy }
NOT = { has_trait = impatient }
NOT = { has_trait = dull }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_variable = had_read_a_book_var }
NOT = { has_trait = rowdy }
NOT = { has_trait = lazy }
NOT = { has_trait = impatient }
NOT = { has_trait = dull }
}
save_scope_as = first
set_variable = {
name = had_read_a_book_var
years = 1
}
}
add_activity_log_entry = {
key = apa_read_a_book
tags = { pulse_action }
character = scope:first
scope:first = {
add_random_skill_point_effect = yes
}
}
}
}
apa_joked_together = {
icon = friendship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = callous }
count >= 2
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = callous }
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = callous }
NOT = { this = scope:first }
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_joked_together
tags = { pulse_action }
character = scope:first
scope:first = {
add_opinion = {
target = scope:second
opinion = 10
modifier = friendliness_opinion
}
}
}
}
}
apa_rescued_kid = {
icon = friendship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = callous }
NOT = { has_trait = sadistic }
age > 12
save_temporary_scope_as = first_temp
}
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = arrogant }
age <= 12
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = callous }
NOT = { has_trait = sadistic }
age > 12
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = arrogant }
NOT = { this = scope:first }
age <= 12
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_rescued_kid
tags = { pulse_action }
character = scope:second
scope:second = {
add_opinion = {
target = scope:first
opinion = 15
modifier = friendliness_opinion
}
}
}
}
}
apa_shared_food = {
icon = friendship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = callous }
NOT = { has_trait = gluttonous }
NOT = { has_trait = greedy }
save_temporary_scope_as = first_temp
}
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = arrogant }
age <= 12
}
}
weight = {
value = 1
if = {
limit = {
any_attending_character = {
location = scope:province
OR = {
has_trait = gluttonous
has_trait = comfort_eater
}
}
}
add = 1
}
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = callous }
NOT = { has_trait = gluttonous }
NOT = { has_trait = greedy }
save_temporary_scope_as = first_temp
scope:activity = {
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = arrogant }
age <= 12
}
}
}
weight = {
base = 1
modifier = {
add = 2
has_trait = generous
}
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = arrogant }
NOT = { this = scope:first }
age <= 12
}
weight = {
base = 1
modifier = {
add = 4
OR = {
has_trait = gluttonous
has_trait = comfort_eater
}
}
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_shared_food
tags = { pulse_action }
character = scope:first
scope:first = {
add_piety = minor_piety_gain
}
scope:second = {
add_opinion = {
target = scope:first
opinion = 10
modifier = friendliness_opinion
}
}
}
}
}
apa_broke_toy = {
icon = dread
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
OR = {
has_trait = callous
has_trait = sadistic
has_trait = wrathful
has_trait = rowdy
}
save_temporary_scope_as = first_temp
}
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
OR = {
has_trait = callous
has_trait = sadistic
has_trait = wrathful
has_trait = rowdy
}
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { this = scope:first }
}
weight = {
base = 1
modifier = {
add = 2
has_trait = craven
}
modifier = {
add = 2
age <= 8 #this is cruel, but fair
}
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_broke_toy
tags = { pulse_action }
character = scope:first
scope:first = {
add_dread = minor_dread_gain
}
scope:second = {
add_opinion = {
target = scope:first
opinion = -10
modifier = cruelty_opinion
}
}
}
}
}
apa_found_gold_stash = {
icon = stewardship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
has_trait = curious
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
has_trait = curious
}
save_scope_as = first
}
add_activity_log_entry = {
key = apa_found_gold_stash
tags = { pulse_action }
character = scope:first
scope:first = {
add_gold = minor_gold_value
}
}
}
}
apa_sang_nice_song = {
icon = diplomacy
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
has_trait = charming
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
has_trait = charming
}
save_scope_as = first
}
add_activity_log_entry = {
key = apa_found_gold_stash
tags = { pulse_action }
character = scope:first
scope:first = {
add_prestige = minor_prestige_gain
}
}
}
}
apa_learned_from_kid = {
icon = learning
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
age >= 10
save_temporary_scope_as = first_temp
}
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = dull }
age >= scope:first_temp.age_plus_1
}
}
weight = {
value = 1
if = {
limit = {
any_attending_character = {
location = scope:province
has_trait = curious
age >= 10
}
}
add = 1
}
}
effect = {
random_attending_character = {
limit = {
location = scope:province
age >= 10
save_temporary_scope_as = first_temp
scope:activity = {
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = dull }
age >= scope:first_temp.age_plus_1
}
}
}
weight = {
base = 1
modifier = {
add = 2
has_trait = curious
}
}
save_scope_as = first
}
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = dull }
NOT = { this = scope:first }
age >= scope:first.age_plus_1
}
weight = {
base = 1
modifier = {
add = 2
has_trait = shrewd
}
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_learned_from_kid
tags = { pulse_action }
character = scope:first
scope:first = {
add_prestige = miniscule_prestige_gain
}
scope:second = {
add_prestige = miniscule_prestige_gain
}
}
}
}
apa_practiced_with_swords = {
icon = martial
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_variable = had_apa_practiced_with_swords_var }
NOT = { has_trait = lazy }
NOT = { has_trait = craven }
NOT = { has_trait = pensive }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_variable = had_apa_practiced_with_swords_var }
NOT = { has_trait = lazy }
NOT = { has_trait = craven }
NOT = { has_trait = pensive }
}
weight = {
base = 1
modifier = {
has_trait = rowdy
}
}
save_scope_as = first
set_variable = {
name = had_apa_practiced_with_swords_var
years = 1
}
}
add_activity_log_entry = {
key = apa_practiced_with_swords
tags = { pulse_action }
character = scope:first
scope:first = {
add_prowess_skill = 1
}
}
}
}
apa_studied_ledger = {
icon = stewardship
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_variable = had_apa_studied_ledger_var }
NOT = { has_trait = lazy }
NOT = { has_trait = wrathful }
NOT = { has_trait = rowdy }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_variable = had_apa_studied_ledger_var }
NOT = { has_trait = lazy }
NOT = { has_trait = wrathful }
NOT = { has_trait = rowdy }
}
weight = {
base = 1
modifier = {
has_trait = charming
}
}
save_scope_as = first
set_variable = {
name = had_apa_studied_ledger_var
years = 1
}
}
add_activity_log_entry = {
key = apa_studied_ledger
tags = { pulse_action }
character = scope:first
scope:first = {
add_stewardship_skill = 1
}
}
}
}
apa_had_charming_convo = {
icon = diplomacy
is_valid = {
is_current_phase_active = yes
any_attending_character = {
location = scope:province
NOT = { has_trait = rowdy }
NOT = { has_trait = pensive }
NOT = { has_trait = shy }
NOT = { has_trait = arrogant }
NOT = { has_variable = had_apa_had_charming_convo_var }
save_temporary_scope_as = first_temp
}
any_attending_character = {
location = scope:province
NOT = { this = scope:first_temp }
NOT = { has_trait = rowdy }
NOT = { has_trait = pensive }
}
}
weight = {
value = 1
}
effect = {
random_attending_character = {
limit = {
location = scope:province
NOT = { has_trait = rowdy }
NOT = { has_trait = pensive }
NOT = { has_trait = shy }
NOT = { has_trait = arrogant }
NOT = { has_variable = had_apa_had_charming_convo_var }
}
weight = {
base = 1
modifier = {
has_trait = bossy
}
}
save_scope_as = first
set_variable = {
name = had_apa_had_charming_convo_var
years = 1
}
}
random_attending_character = {
limit = {
location = scope:province
NOT = { this = scope:first }
NOT = { has_trait = rowdy }
NOT = { has_trait = pensive }
}
save_scope_as = second
}
add_activity_log_entry = {
key = apa_had_charming_convo
tags = { pulse_action }
character = scope:first
scope:first = {
add_diplomacy_skill = 1
}
}
}
}