Diff to HTML by rtfpessoa

Files changed (3) hide show
  1. common/ai_army/00_ai_army_province_war.txt +15 -13
  2. common/ai_army/01_ai_army_province_peace.txt +11 -13
  3. common/ai_army/99_ai_army_readme.txt +8 -4
common/ai_army/00_ai_army_province_war.txt CHANGED
@@ -1,13 +1,15 @@
1
- province = {
2
- war = {
3
- active = {
4
- is_at_war = yes
5
- }
6
- eval_multiply = {
7
- factor = 10
8
- modifier = {
9
- is_in_capital_area = yes
10
- }
11
- }
12
- }
13
- }
1
+ # Dummy example (add 0 or 0*100)
2
+ # province = {
3
+ # war = {
4
+ # active = {
5
+ # is_at_war = yes
6
+ # }
7
+ # eval_add = {
8
+ # factor = 0
9
+ # modifier = {
10
+ # factor = 100
11
+ # is_in_capital_area = yes
12
+ # }
13
+ # }
14
+ # }
15
+ #}
common/ai_army/01_ai_army_province_peace.txt CHANGED
@@ -1,13 +1,11 @@
1
- province = {
2
- peace = {
3
- active = {
4
- is_at_war = no
5
- }
6
- eval_multiply = {
7
- factor = 10
8
- modifier = {
9
- is_in_capital_area = yes
10
- }
11
- }
12
- }
13
- }
1
+ # Dummy example (multiply by 1)
2
+ #province = {
3
+ # peace = {
4
+ # active = {
5
+ # is_at_war = no
6
+ # }
7
+ # eval_multiply = {
8
+ # factor = 1
9
+ # }
10
+ # }
11
+ #}
common/ai_army/99_ai_army_readme.txt CHANGED
@@ -1,6 +1,10 @@
1
1
  # Scripts in ai_army can be used to influence how the army AI behaves when certain conditions (Defined in the "active" trigger) are met.
2
2
  # It is intended not to control daily decision making of armies but to define a general attitude that will influence (or overwrite) hard-coded AI behaviour.
3
- # The "active" trigger (I.e. the trigger that decides what attitude is currently active) is evaluated when any of the following happens:
4
- # * A war begins or ends
5
- # * A country gains or loses a province
6
- # * A year without wars or province changes passes
3
+ # The value is (re)calculated on the first AI daily tick (or console command "ai_army_tick") after any of the following happens:
4
+ # * The list of countries the AI is at war with changes
5
+ # * The country gains or loses a province
6
+ # * It's a new year
7
+ # * A new game starts, or save game is loaded
8
+ #
9
+ # Remember: AI will choose the province with the *lowest* value. Use console command "mapmode armyeval" (and select an army) to debug it.
10
+ #