Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope.
- #
- # filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] ('self' MUST be set for decisions targetting only the taker, the other filter types can be set to lessen CPU load)
- # ai_target_filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (which characters for which the AI evaluates the decision.)
- # court: all characters in the AI's host court, including prisoners, and characters currently away (wards, prisoners, etc)
- # home_court: all characters in the AI's home court, including prisoners, and characters currently away (wards, prisoners, etc)
- # vassals: direct vassal rulers of the AI's employer
- # sub_realm: all characters below the AI's employer
- # realm: all characters in the same top realm as the AI
- # dynasty: all members of the same dynasty
- # all: all living characters (Avoid if possible. VERY CPU-HEAVY!)
- #
- targetted_decisions = {
- declare_rival = {
- ai_target_filter = realm
- filter = realm
- from_potential = {
- NOT = {num_of_rivals = 3}
- age = 16
- }
- potential = {
- ai = yes
- NOT = {
- is_rival = FROM
- is_friend = FROM
- is_lover = FROM
- }
- age = 16
- }
- allow = {
- prisoner = no
- is_within_diplo_range = FROM
- NOT = {
- opinion = {
- who = FROM
- value = -50
- }
- reverse_opinion = {
- who = FROM
- value = -50
- }
- }
- NOT = {
- num_of_rivals = 20
- }
- }
- effect = {
- add_rival = FROM
- }
- revoke_allowed = {
- always = no
- }
- ai_will_do = {
- factor = 0.1
- }
- }
- attempt_befriend = {
- ai_target_filter = realm
- filter = realm
- from_potential = {
- age = 16
- NOT = {
- has_character_modifier = befriend_wait
- num_of_friends = 3
- }
- }
- potential = {
- ai = yes
- NOT = {
- is_rival = FROM
- is_friend = FROM
- is_lover = FROM
- }
- age = 16
- }
- allow = {
- prisoner = no
- is_within_diplo_range = FROM
- opinion = {
- who = FROM
- value = 0
- }
- NOT = {
- num_of_friends = 10
- }
- }
- effect = {
- FROM = {
- add_character_modifier = {
- name = befriend_wait
- days = 30
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 0
- }
- NOT = {
- opinion = {
- who = FROM
- value = 10
- }
- }
- }
- random = {
- chance = 5
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 10
- }
- NOT = {
- opinion = {
- who = FROM
- value = 30
- }
- }
- }
- random = {
- chance = 20
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 30
- }
- NOT = {
- opinion = {
- who = FROM
- value = 50
- }
- }
- }
- random = {
- chance = 30
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 50
- }
- NOT = {
- opinion = {
- who = FROM
- value = 70
- }
- }
- }
- random = {
- chance = 50
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 70
- }
- NOT = {
- opinion = {
- who = FROM
- value = 90
- }
- }
- }
- random = {
- chance = 70
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 90
- }
- NOT = {
- opinion = {
- who = FROM
- value = 100
- }
- }
- }
- random = {
- chance = 90
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 100
- }
- }
- random = {
- chance = 100
- add_friend = FROM
- }
- }
- }
- revoke_allowed = {
- always = no
- }
- ai_will_do = {
- factor = 0.1
- }
- }
- attempt_befriend2 = {
- ai_target_filter = all
- filter = all
- from_potential = {
- ai = yes
- age = 16
- is_ruler = yes
- NOT = {
- num_of_friends = 3
- has_character_modifier = befriend_wait
- }
- }
- potential = {
- ai = yes
- NOT = {
- is_rival = FROM
- is_friend = FROM
- is_lover = FROM
- }
- age = 16
- }
- allow = {
- is_ruler = yes
- prisoner = no
- is_within_diplo_range = FROM
- opinion = {
- who = FROM
- value = 0
- }
- NOT = {
- num_of_friends = 10
- }
- }
- effect = {
- FROM = {
- add_character_modifier = {
- name = befriend_wait
- days = 30
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 0
- }
- NOT = {
- opinion = {
- who = FROM
- value = 10
- }
- }
- }
- random = {
- chance = 5
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 10
- }
- NOT = {
- opinion = {
- who = FROM
- value = 30
- }
- }
- }
- random = {
- chance = 20
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 30
- }
- NOT = {
- opinion = {
- who = FROM
- value = 50
- }
- }
- }
- random = {
- chance = 30
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 50
- }
- NOT = {
- opinion = {
- who = FROM
- value = 70
- }
- }
- }
- random = {
- chance = 50
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 70
- }
- NOT = {
- opinion = {
- who = FROM
- value = 90
- }
- }
- }
- random = {
- chance = 70
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 90
- }
- NOT = {
- opinion = {
- who = FROM
- value = 100
- }
- }
- }
- random = {
- chance = 90
- add_friend = FROM
- }
- }
- if = {
- limit = {
- opinion = {
- who = FROM
- value = 100
- }
- }
- random = {
- chance = 100
- add_friend = FROM
- }
- }
- }
- revoke_allowed = {
- always = no
- }
- ai_will_do = {
- factor = 0.1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment