Skip to content

Commit

Permalink
AOI: General AI rewrite
Browse files Browse the repository at this point in the history
Removes all the default values and improves the syntax where
possible
  • Loading branch information
DisherProject authored and ln-zookeeper committed Sep 2, 2018
1 parent 240d235 commit 9086e17
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 59 deletions.
Expand Up @@ -94,11 +94,6 @@
canrecruit=yes

facing=se

[ai]
grouping=offensive
attack_depth=5
[/ai]
[/side]

{STARTING_VILLAGES 1 6}
Expand Down
10 changes: 2 additions & 8 deletions data/campaigns/An_Orcish_Incursion/scenarios/02_Assassins.cfg
Expand Up @@ -69,21 +69,15 @@
[ai]
villages_per_scout=6
aggression=0.5
caution=0.25
leader_value=3
village_value=1
scout_village_targeting=3
[goal]
name=protect_unit
[criteria]
side=2
canrecruit=yes
[/criteria]
protect_radius=20
value=1
protect_radius=10
value=100
[/goal]
grouping=offensive
attack_depth=5
[/ai]
[/side]

Expand Down
5 changes: 0 additions & 5 deletions data/campaigns/An_Orcish_Incursion/scenarios/03_Wasteland.cfg
Expand Up @@ -72,11 +72,6 @@
canrecruit=yes

facing=se

[ai]
grouping=offensive
attack_depth=5
[/ai]
[/side]

[event]
Expand Down
Expand Up @@ -78,17 +78,11 @@
facing=ne

[ai]
aggression=0.8
turns="4,5,6,10,11,12,16,17,18,22,23,24"
grouping=offensive
{ATTACK_DEPTH 1 3 5}
[/ai]
[ai]
aggression=-0.1
simple_targeting=yes
turns="1,2,3,7,8,9,13,14,15,19,20,21"
grouping=none
{ATTACK_DEPTH 1 3 5}
{AI_SIMPLE_DAY_ASPECT aggression -0.1}
{AI_SIMPLE_DAY_ASPECT simple_targeting yes}
{AI_SIMPLE_DAY_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.8}
[/ai]
[/side]

Expand Down Expand Up @@ -118,17 +112,10 @@
facing=sw

[ai]
aggression=0.8
turns="4,5,6,10,11,12,16,17,18,22,23,24"
grouping=offensive
attack_depth=5
[/ai]
[ai]
aggression=-0.1
turns="1,2,3,7,8,9,13,14,15,19,20,21"
grouping=none
attack_depth=5
simple_targeting=yes
{AI_SIMPLE_DAY_ASPECT aggression -0.1}
{AI_SIMPLE_DAY_ASPECT simple_targeting yes}
{AI_SIMPLE_DAY_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.8}
[/ai]
[/side]

Expand Down
Expand Up @@ -72,11 +72,7 @@
facing=se

[ai]
grouping=offensive
{ATTACK_DEPTH 4 5 6}
villages_per_scout=4
leader_value=3
village_value=1
[/ai]
[/side]

Expand Down
Expand Up @@ -51,14 +51,6 @@
canrecruit=yes

facing=nw

[ai]
villages_per_scout=4
leader_value=3
village_value=1
grouping=offensive
attack_depth=5
[/ai]
[/side]

[event]
Expand Down
8 changes: 0 additions & 8 deletions data/campaigns/An_Orcish_Incursion/scenarios/07_Showdown.cfg
Expand Up @@ -64,14 +64,6 @@
canrecruit=yes

facing=se

[ai]
villages_per_scout=4
leader_value=3
village_value=1
grouping=offensive
attack_depth=5
[/ai]
[/side]

{STARTING_VILLAGES 1 4}
Expand Down

0 comments on commit 9086e17

Please sign in to comment.