Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alltheatreides committed Nov 1, 2020
1 parent a5c9669 commit 1f169e3
Show file tree
Hide file tree
Showing 12 changed files with 365 additions and 83 deletions.
7 changes: 6 additions & 1 deletion common/culture/innovations/ave_maria_innovations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ innovation_frankish_cavalry = {
icon = @knight

potential = {
culture_group = culture_group:frankish_group
OR = {
culture_group = culture_group:frankish_group
culture_group = culture_group:central_germanic_group
this = culture:breton
}

}

unlock_maa = frankish_shock_cavalry
Expand Down
87 changes: 66 additions & 21 deletions common/decisions/ave_maria_roman_administration_major_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,31 @@ ave_maria_roman_administration_muster_all_the_tagma_decision = {
# }
}
}
# any_vassal_or_below = {
# any_held_title = {
# roman_administration_is_a_tagma_title_trigger = yes
# }
# root = {
# any_character_war = {
# any_war_participant = {
# NOT = { this = PREVPREV }
# }
# }
# }
# }
# NOT = {
# root = {
# every_character_war = {
# any_war_participant = {
# this = {
# any_held_title = {
# roman_administration_is_a_tagma_title_trigger = yes
# }
# }
# }
# }
# }
# }
}

cost = {
Expand All @@ -221,32 +246,52 @@ ave_maria_roman_administration_muster_all_the_tagma_decision = {
roman_administration_holds_tagma_title_trigger = yes
}
save_scope_as = tagma_commander
if = {
limit = {
#is_at_war_as_attacker = scope:actor
scope:actor = {
is_at_war_as_attacker = yes
scope:actor = {
every_character_war = {
limit = {
primary_attacker = scope:actor
}
add_attacker = scope:tagma_commander
}
scope:actor = {
every_character_war = {
add_attacker = scope:tagma_commander
}
}
# scope:basileus_war = {
# add_attacker = prev
# }
}
else = {
# scope:basileus_war = {
# add_defender = prev
# }
scope:actor = {
every_character_war = {
add_defender = scope:tagma_commander
every_character_war = {
limit = {
primary_defender = scope:actor
}
add_defender = scope:tagma_commander
}
}
# if = {
# limit = {
# #is_at_war_as_attacker = scope:actor
# scope:actor = {
# is_at_war_as_attacker = yes
# }
# }
# scope:actor = {
# every_character_war = {
# limit = {
# primary_attacker = scope:actor
# }
# add_attacker = scope:tagma_commander
# }
# }
# # scope:basileus_war = {
# # add_attacker = prev
# # }
# }
# else = {
# # scope:basileus_war = {
# # add_defender = prev
# # }
# scope:actor = {
# every_character_war = {
# limit = {
# primary_defender = scope:actor
# }
# add_defender = scope:tagma_commander
# }
# }
# }
}
}

Expand Down
56 changes: 28 additions & 28 deletions common/governments/ave_maria_government_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ roman_administration_military_government = {
valid_holdings = { city_holding church_holding metropolis_constantinople_holding sparsly_populated_holding }
required_county_holdings = { }

opinion_of_liege = {
scope:vassal = {
value = 20
}
}
opinion_of_liege_desc = {
first_valid = {
triggered_desc = {
trigger = {
# opinion_of_liege = {
# scope:vassal = {
# value = 20
# }
# }
# opinion_of_liege_desc = {
# first_valid = {
# triggered_desc = {
# trigger = {

}
desc = "ROMAN_ADMINISTRATION_APPOINTMENT_OPINION"
}
}
}
# }
# desc = "ROMAN_ADMINISTRATION_APPOINTMENT_OPINION"
# }
# }
# }

vassal_contract = {
ave_maria_roman_administration_theme_taxe
Expand Down Expand Up @@ -101,21 +101,21 @@ roman_administration_civilian_government = {
valid_holdings = { city_holding church_holding metropolis_constantinople_holding sparsly_populated_holding }
required_county_holdings = { }

opinion_of_liege = {
scope:vassal = {
value = 20
}
}
opinion_of_liege_desc = {
first_valid = {
triggered_desc = {
trigger = {
# opinion_of_liege = {
# scope:vassal = {
# value = 20
# }
# }
# opinion_of_liege_desc = {
# first_valid = {
# triggered_desc = {
# trigger = {

}
desc = "ROMAN_ADMINISTRATION_APPOINTMENT_OPINION"
}
}
}
# }
# desc = "ROMAN_ADMINISTRATION_APPOINTMENT_OPINION"
# }
# }
# }

vassal_contract = {
ave_maria_roman_administration_theme_taxe
Expand Down
10 changes: 10 additions & 0 deletions common/modifiers/ave_maria_roman_administration_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,13 @@ military_revolt_scheme_convinced = {
hide_effects = yes

}

military_revolt_scheme_refused = {
hide_effects = yes
scheme_secrecy = -5
}

military_revolt_levies_bonus = {
hide_effects = yes
levy_size = 10
}
12 changes: 8 additions & 4 deletions common/on_action/game_start.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,14 @@ on_game_start_after_lobby = {
this = character:1734
}
set_variable = { name = roman_administration_term_count value = 0 }
add_character_modifier = {
modifier = roman_administration_terms_of_office_0
years = 10
}
add_character_modifier = {
modifier = roman_administration_terms_of_office_0
years = 10
}
trigger_event = {
id = ave_maria_roman_administration_events.00013
days = 365
}
}
if = {
limit = {
Expand Down
7 changes: 7 additions & 0 deletions common/on_action/war_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ on_war_won_attacker = {
change_government = roman_administration_government
add_realm_law = ave_maria_roman_administration_realm_law
}

if = {
limit = {
has_character_modifier = military_revolt_levies_bonus
}
remove_character_modifier = military_revolt_levies_bonus
}
}
}

Expand Down
42 changes: 26 additions & 16 deletions common/schemes/ave_maria_roman_administration_scheme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
primary_title = {
this = title:e_byzantium
}
any_targeting_faction = {
faction_is_type = roman_administration_army_faction
#faction_discontent >= 50
}
# any_targeting_faction = {
# faction_is_type = roman_administration_army_faction
# #faction_discontent >= 50
# }
# exists = location
}
custom_description = {
text = roman_administration_military_revolt_scheme
object = scope:target
scope:target = {
any_targeting_faction = {
faction_is_type = roman_administration_army_faction
#faction_discontent >= 50
}
}
}
# custom_description = {
# text = roman_administration_military_revolt_scheme
# object = scope:target
# # scope:target = {
# # any_targeting_faction = {
# # faction_is_type = roman_administration_army_faction
# # #faction_discontent >= 50
# # }
# # }
# }
# Special AI exceptions
NOT = {
scope:owner = {
Expand All @@ -57,7 +57,7 @@
base = 0

modifier = {
add = -20
add = -10
desc = BASE_RELUCTANCE
}

Expand Down Expand Up @@ -159,6 +159,16 @@
desc = "SCHEME_CONVINCED_DIPLOMACY_TEST"
has_character_modifier = military_revolt_scheme_convinced
}

## Family
modifier = {
add = 50
OR = {
is_close_family_of = scope:owner
is_sibling_of = scope:owner
is_uncle_or_aunt_of = scope:owner
}
}
}

base_success_chance = {
Expand Down Expand Up @@ -237,7 +247,7 @@
scheme_owner = {
## Launch the war
trigger_event = {
name = ave_maria_roman_administration_military_revolt.0050
id = ave_maria_roman_administration_military_revolt.0050
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion events/ave_maria_roman_administration_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ ave_maria_roman_administration_events.0007 = {
desc = ave_maria_roman_administration_events.0007.opening
}
desc = {
desc = ave_maria_roman_administration_events.0007_desc
#desc = ave_maria_roman_administration_events.0007_desc
first_valid = {
triggered_desc = {
trigger = {
Expand Down
Loading

0 comments on commit 1f169e3

Please sign in to comment.