Liberty S8: General fix and cleanup to the AI goals
All sides will now head to the central fortress. Orcs
should now be a bit smarter, and they should not suicide
during the morning or the afternoon. The humans in Halstead
will initially remain inside their fortress, until the enemy
arrival.
(cherry-picked from commit e63a15fc91
)
This commit is contained in:
parent
18c1b3f7fe
commit
d222aaf875
1 changed files with 37 additions and 108 deletions
|
@ -72,29 +72,21 @@
|
|||
{AI_SIMPLE_NIGHT_ASPECT aggression 0}
|
||||
{AI_SIMPLE_ALWAYS_ASPECT caution 0.9}
|
||||
[goal]
|
||||
# This is supposed to make the AI tend to group at the gates
|
||||
name=target_location
|
||||
[criteria]
|
||||
side=2,3
|
||||
# These cover the area around the four gates
|
||||
x=14-16,19-21,19-21,25-27
|
||||
y=14-19,10-13,19-22,14-19
|
||||
# Only try to group with 1-2 other units, instead of forming
|
||||
# huge lumps of units
|
||||
[filter_adjacent]
|
||||
side=2,3
|
||||
count=1-2
|
||||
[/filter_adjacent]
|
||||
x=18-22,14-16,18-22,24-26
|
||||
y=18-20,15-18,12-14,15-18
|
||||
[/criteria]
|
||||
value=5
|
||||
value=10
|
||||
[/goal]
|
||||
[goal]
|
||||
name=protect_location
|
||||
[criteria]
|
||||
x,y=20,16
|
||||
[/criteria]
|
||||
protect_radius=8
|
||||
value=20
|
||||
[/goal]
|
||||
{AI_SIMPLE_ALWAYS_ASPECT_VALUE avoid (
|
||||
[not]
|
||||
# These cover Halstead itself and a bit of the area around
|
||||
# the four gates
|
||||
x=14-26,12-28,17-23
|
||||
y=11-22,14-20,10-22
|
||||
[/not]
|
||||
)}
|
||||
[/ai]
|
||||
team_name=bad_guys
|
||||
user_team_name=_"Asheviere"
|
||||
|
@ -141,56 +133,29 @@
|
|||
controller=ai
|
||||
color=green
|
||||
[ai]
|
||||
turns=1-6
|
||||
caution=0.2
|
||||
aggression=0.8
|
||||
scout_village_targeting=1
|
||||
{AI_SIMPLE_NIGHT_ASPECT aggression 0.9}
|
||||
{AI_SIMPLE_DAY_ASPECT aggression 0.5}
|
||||
{AI_SIMPLE_ALWAYS_ASPECT caution 0.2}
|
||||
[goal]
|
||||
[criteria]
|
||||
side=1,5
|
||||
side=2
|
||||
[/criteria]
|
||||
value=1.0
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=2,3
|
||||
[/criteria]
|
||||
value=2.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=6
|
||||
[/criteria]
|
||||
value=0.5
|
||||
value=10
|
||||
[/goal]
|
||||
[/ai]
|
||||
[ai]
|
||||
turns=1-6
|
||||
|
||||
# Don't let orcs reach Dommel and Sir Gwydion
|
||||
[avoid]
|
||||
x,y=1-22,1-40
|
||||
[/avoid]
|
||||
[/ai]
|
||||
[ai]
|
||||
turns=7-99999
|
||||
caution=0.1
|
||||
aggression=0.9
|
||||
scout_village_targeting=1
|
||||
[goal]
|
||||
[criteria]
|
||||
side=1,5
|
||||
[/criteria]
|
||||
value=1.0
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=2,3
|
||||
[/criteria]
|
||||
value=2.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=6
|
||||
[/criteria]
|
||||
value=0.5
|
||||
[/goal]
|
||||
|
||||
# Now just avoid Sir Gwydion
|
||||
[avoid]
|
||||
x,y=1-17,1-40
|
||||
[/avoid]
|
||||
|
@ -218,10 +183,16 @@
|
|||
recruitment_pattern=mixed fighter,mixed fighter,fighter,mixed fighter,archer
|
||||
[goal]
|
||||
[criteria]
|
||||
id=Dommel
|
||||
side=2
|
||||
[/criteria]
|
||||
value=10
|
||||
[/goal]
|
||||
|
||||
# Don't let side 4 accidentally move to a trapdoor
|
||||
[avoid]
|
||||
x=16,16,24,24
|
||||
y=13,19,13,19
|
||||
[/avoid]
|
||||
[/ai]
|
||||
team_name=good_guys
|
||||
user_team_name=_"Rebels"
|
||||
|
@ -236,7 +207,6 @@
|
|||
team_name=good_guys
|
||||
user_team_name=_"Rebels"
|
||||
[ai]
|
||||
turns=1-6
|
||||
aggression=0.6
|
||||
caution=0.6
|
||||
leader_value=0.5
|
||||
|
@ -244,63 +214,22 @@
|
|||
[criteria]
|
||||
side=2
|
||||
[/criteria]
|
||||
value=2.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=3
|
||||
[/criteria]
|
||||
value=1.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=4
|
||||
[/criteria]
|
||||
value=0.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
id=Dommel
|
||||
[/criteria]
|
||||
value=0.25
|
||||
value=10
|
||||
[/goal]
|
||||
[/ai]
|
||||
[ai]
|
||||
turns=1-6
|
||||
|
||||
# Don't let the allies reach the human leader and
|
||||
# the orcish one
|
||||
[avoid]
|
||||
x,y=18-40,1-40
|
||||
[/avoid]
|
||||
[/ai]
|
||||
|
||||
[ai]
|
||||
turns=7-99999
|
||||
aggression=0.6
|
||||
caution=0.6
|
||||
leader_value=0.5
|
||||
|
||||
[goal]
|
||||
[criteria]
|
||||
side=2
|
||||
[/criteria]
|
||||
value=2.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=3
|
||||
[/criteria]
|
||||
value=1.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
side=4
|
||||
[/criteria]
|
||||
value=0.5
|
||||
[/goal]
|
||||
[goal]
|
||||
[criteria]
|
||||
id=Dommel
|
||||
[/criteria]
|
||||
value=0.25
|
||||
[/goal]
|
||||
|
||||
# Now just avoid the orc leader
|
||||
[avoid]
|
||||
x,y=22-40,1-40
|
||||
[/avoid]
|
||||
|
|
Loading…
Add table
Reference in a new issue