Skip to content

Commit

Permalink
Further tweaks to ai
Browse files Browse the repository at this point in the history
Ai requires above 50 liberty desire to click certain buttons
giving up a state lowers flanders liberty desire.
  • Loading branch information
AndHope committed Oct 15, 2024
1 parent 081ec5e commit be682a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions common/scripted_buttons/br_control_lowlands_buttons.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ je_request_french_low_countries_button = {
ai_chance = {
base = 0
modifier = {
trigger = { bureaucracy > 0 }
trigger = {
c:FLA = { liberty_desire >= 50 }
}
add = 5
}
}
Expand Down Expand Up @@ -77,7 +79,9 @@ je_request_wallonia_button = {
ai_chance = {
base = 0
modifier = {
trigger = { bureaucracy > 0 }
trigger = {
c:FLA = { liberty_desire >= 50 }
}
add = 5
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ je_create_princely_league_button = {
trigger = {
country_rank >= rank_value:major_power
}
add = 2
add = 5
}
}

Expand Down Expand Up @@ -90,7 +90,9 @@ je_invite_members_to_league_button = {
ai_chance = {
base = 0
modifier = {
trigger = { bureaucracy > 0 }
trigger = {
c:FLA = { liberty_desire >= 50 }
}
add = 5
}
}
Expand Down
6 changes: 6 additions & 0 deletions events/br_events/br_control_lowlands_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ request_lowlands_state.1 = {
set_state_owner = scope:state_demander
}
}
c:FLA = {
add_liberty_desire = -25
}
ai_chance = {
base = 75
}
Expand All @@ -51,6 +54,9 @@ request_lowlands_state.1 = {
value = -20
}
}
ai_chance = {
base = 25
}
}
}

Expand Down

0 comments on commit be682a8

Please sign in to comment.