Replace deprecated aspects with [goal] tag

in mainline campaigns.
Patch by pl_kolek. See https://gna.org/patch/?3884
Examined by me and mattsc.
This commit is contained in:
flix 2013-06-11 22:46:06 +03:00
parent 1c6e0b7291
commit db2f04636f
70 changed files with 1389 additions and 724 deletions

View file

@ -8,6 +8,8 @@ Version 1.11.4+dev:
ai-table of [side].
* Improved AI behavior when using goto_x / goto_y in WML
* Campaigns:
* All:
* replaced deprecated aspects with [goal] aspect
* Legend of Wesmere:
* Scenario 05: Elvish Horse Archers can now carry the treasure
* Scenario 09: the player's loyal units stay in the recall list, instead of

View file

@ -55,8 +55,14 @@
leader_value=3
village_value=1
scout_village_targeting=3
protect_leader=1
protect_leader_radius=20
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=20
value=1
[/goal]
grouping=offensive
attack_depth=5
[/ai]

View file

@ -113,14 +113,20 @@
#endif
[ai]
[target]
race=monster
[goal]
name=target
[criteria]
race=monster
[/criteria]
value=0
[/target]
[target]
race=merman
[/goal]
[goal]
name=target
[criteria]
race=merman
[/criteria]
value=100
[/target]
[/goal]
recruitment_pattern="scout, scout"
village_value=0
[/ai]
@ -143,14 +149,20 @@
no_leader=yes
user_team_name= _ "Wild Wolves"
[ai]
[target]
race=merman
[goal]
name=target
[criteria]
race=merman
[/criteria]
value=100
[/target]
[target]
race=goblin
[/goal]
[goal]
name=target
[criteria]
race=goblin
[/criteria]
value=0
[/target]
[/goal]
[/ai]
[/side]

View file

@ -138,10 +138,13 @@
recruit=Wolf Rider, Goblin Knight, Goblin Pillager, Orcish Archer, Orcish Grunt, Orcish Crossbowman, Orcish Assassin, Orcish Warrior, Orcish Slurbow, Orcish Warlord, Orcish Slayer
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=1000
[/target]
[/goal]
leader_value=1000
[/ai]
@ -159,14 +162,20 @@
user_team_name= _ "Undead"
[ai]
aggression=0.8
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=1000
[/target]
[target]
side=2
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=1
[/target]
[/goal]
village_value=0
# Even though they are less attractive targets, the ghosts
# will attack the orcs if they are in range and the mermen

View file

@ -187,11 +187,14 @@
recruitment_ignore_bad_combat=yes
recruitment_ignore_bad_movement=yes
scout_village_targeting=5
[protect_location]
x,y=36,23
radius=8
[goal]
name=protect_location
[criteria]
x,y=36,23
[/criteria]
protect_radius=8
value=200
[/protect_location]
[/goal]
[/ai]
[/modify_side]

View file

@ -57,10 +57,13 @@
# attack Delfador more heavily than Leollyn
leader_value=2.0
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=3.0
[/target]
[/goal]
[/ai]
{GOLD 200 200 300}
team_name=baddies

View file

@ -73,10 +73,13 @@
team_name=baddies
user_team_name= _ "Enemies"
no_leader=yes
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=100
[/target]
[/goal]
[/side]
{MEMOIRS_DEATHS}

View file

@ -226,14 +226,20 @@
[ai]
recruitment_pattern=fighter
aggression=1.0
[target] # they're not interested in killing ghosts
id=Delfador
[goal] # they're not interested in killing ghosts
name=target
[criteria]
id=Delfador
[/criteria]
value=50
[/target]
[target]
side=3
[/goal]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=0
[/target]
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]
@ -250,15 +256,21 @@
aggression=-0.5
# try to get to Delfador and protect him
# TODO target is aimed at enemy units. I dont know what happens when used with an ally.
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=8.0
[/target]
[protect_unit]
id=Delfador
radius=6
[/goal]
[goal]
name=protect_unit
[criteria]
id=Delfador
[/criteria]
protect_radius=6
value=40.0
[/protect_unit]
[/goal]
[/ai]
[unit]
id=Rorthin

View file

@ -201,7 +201,13 @@
[ai]
village_value=0
leader_value=0
protect_leader=0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=0
[/goal]
[avoid]
x=1-64, 1-64,20-64,1-15
y=1-49,53-64, 1-64,1-64

View file

@ -49,10 +49,13 @@
{INCOME 0 2 2}
[ai]
recruitment_pattern=fighter,archer
[target]
id=Kalenz
[goal]
name=target
[criteria]
id=Kalenz
[/criteria]
value=10
[/target]
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]

View file

@ -58,10 +58,13 @@
{INCOME 0 0 0}
[ai]
passive_leader=yes
[protect_unit]
id="Garard II"
[goal]
name=protect_unit
[criteria]
id="Garard II"
[/criteria]
value=20
[/protect_unit]
[/goal]
[avoid]
[not]
x,y=14,22

View file

@ -89,10 +89,13 @@
# attack Delfador heavily
leader_value=2.0
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=3.0
[/target]
[/goal]
[/ai]
{GOLD 200 200 250}
team_name=foe
@ -124,10 +127,13 @@
# attack Delfador heavily
leader_value=2.0
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=3.0
[/target]
[/goal]
[/ai]
{GOLD 200 200 250}
team_name=foe

View file

@ -82,10 +82,13 @@
{INCOME 0 2 2}
[ai]
recruitment_pattern=scout,fighter,archer
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=10
[/target]
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]

View file

@ -77,7 +77,13 @@
recruitment_pattern=fighter,archer,mixed fighter,scout
aggression=1.0
caution=0.0
protect_leader=3.0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=3.0
[/goal]
[/ai]
{FLAG_VARIANT loyalist}
[/side]

View file

@ -78,7 +78,13 @@
#recruitment_pattern=fighter,archer,mixed fighter,scout
aggression=1.0
caution=0.0
protect_leader=3.0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=3.0
[/goal]
[/ai]
{FLAG_VARIANT loyalist}
[/side]

View file

@ -62,7 +62,13 @@
recruitment_pattern=fighter,archer,scout
aggression=1.0
caution=0.0
protect_leader=3.0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=3.0
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]

View file

@ -114,10 +114,14 @@
recruit=Peasant,Woodsman,Spearman
[ai]
village_value=0
[protect_unit]
id=Malin Keshar
[goal]
name=protect_unit
[criteria]
id=Malin Keshar
[/criteria]
value=4
[/protect_unit]
[/goal]
caution=0.5
#don't block Malins keep
[avoid]

View file

@ -101,10 +101,13 @@
grouping=no
simple_targeting=yes
village_value=0
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=100
[/target]
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]

View file

@ -77,14 +77,20 @@
[ai]
villages_per_scout=8
village_value=0.5
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=1
[/target]
[target]
id=Darken Volk
[/goal]
[goal]
name=target
[criteria]
id=Darken Volk
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -108,14 +114,20 @@
[ai]
scout_village_targeting=2
village_value=0.5
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=1
[/target]
[target]
id=Darken Volk
[/goal]
[goal]
name=target
[criteria]
id=Darken Volk
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -139,14 +151,20 @@
[ai]
villages_per_scout=6
village_value=0.5
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=1
[/target]
[target]
id=Darken Volk
[/goal]
[goal]
name=target
[criteria]
id=Darken Volk
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]

View file

@ -104,14 +104,20 @@
canrecruit=yes
recruit=Spearman,Bowman,Swordsman,Pikeman,Longbowman,Thug,Poacher,Footpad
[ai]
[protect_unit]
id=Drogan
[goal]
name=protect_unit
[criteria]
id=Drogan
[/criteria]
value=2
[/protect_unit]
[target]
id=Malin Keshar
[/goal]
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=2
[/target]
[/goal]
[/ai]
{FLAG_VARIANT loyalist}
[/side]

View file

@ -179,7 +179,13 @@
value=2
[/protect_area]
grouping=offensive
protect_leader=2
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=2
[/goal]
[/ai]
shroud=no
fog=yes

View file

@ -58,12 +58,21 @@
[ai]
village_value=0
aggression=0.8
protect_leader=5
[protect_unit]
id=Darken Volk
radius=6
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=5
[/goal]
[goal]
name=protect_unit
[criteria]
id=Darken Volk
[/criteria]
protect_radius=6
value=20
[/protect_unit]
[/goal]
[/ai]
shroud=yes
fog=no

View file

@ -63,11 +63,20 @@
passive_leader=yes
village_value=0.2
villages_per_scout=10
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=2
[/target]
protect_leader=4
[/goal]
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=4
[/goal]
number_of_possible_recruits_to_force_recruit=1
[/ai]
{FLAG_VARIANT undead}
@ -94,14 +103,20 @@
[ai]
village_value=0.1
villages_per_scout=10
[target]
side=2
[goal]
name=target
[criteria]
side=2
[/criteria]
value=3
[/target]
[target]
side=1
[/goal]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2
[/target]
[/goal]
#recruitment_pattern=fighter,healer
[/ai]
{FLAG_VARIANT loyalist}
@ -125,10 +140,13 @@
recruit=Spearman,Bowman,Swordsman,Longbowman,Thug,Poacher,Footpad
[ai]
passive_leader=yes
[target]
id=Malin Keshar
[goal]
name=target
[criteria]
id=Malin Keshar
[/criteria]
value=2
[/target]
[/goal]
[/ai]
{FLAG_VARIANT loyalist}
[/side]

View file

@ -72,7 +72,13 @@
[ai]
caution=0.5
grouping=defensive
protect_leader=10
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=10
[/goal]
recruitment_pattern=fighter,fighter,mixed fighter
# Avoid the spiders, the wose, and the beginning area
[avoid]
@ -127,10 +133,13 @@
no_leader=yes
[ai]
# This is mostly for the Wose -- the others are guardians
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=5
[/target]
[/goal]
[/ai]
fog=yes
shroud=yes

View file

@ -54,14 +54,18 @@
user_team_name=_"Wesnothians"
[ai]
grouping=no
[target]
side=2
[goal]
[criteria]
side=2
[/criteria]
value=100
[/target]
[target]
side=4
[/goal]
[goal]
[criteria]
side=4
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]

View file

@ -81,11 +81,14 @@
user_team_name=_"Monsters"
{GOLD 150 130 100}
[ai]
[target]
side=3
[goal]
name=target
[criteria]
side=3
[/criteria]
value=100
recruitment_pattern=fighter
[/target]
[/goal]
recruitment_pattern=fighter
{NO_SCOUTS}
[/ai]
[/side]

View file

@ -56,7 +56,13 @@
#don't target any of the default things
village_value=0
leader_value=0
protect_leader=0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=0
[/goal]
#stay in the middle of the map
[avoid]
[not]
@ -66,15 +72,18 @@
[/avoid]
#and target anyone in it (otherwise it will have nothing to do when
#it can't attack in the current turn)
[target]
#who knows what would happen if it targetted itself
[not]
type="Skeletal Dragon"
[/not]
x=14-32
y=10-45
value=100.0
[/target]
[goal]
name=target
[criteria]
#who knows what would happen if it targetted itself
[not]
type="Skeletal Dragon"
[/not]
x=14-32
y=10-45
[/criteria]
value=100
[/goal]
#I don't know if this is needed, but it sure would be stupid to use
#any grouping behavior when there's only one unit on this side!
grouping=no

View file

@ -36,14 +36,18 @@
#define INVADER_AI_STUFF
[ai]
[target]
side=1
[goal]
[criteria]
side=1
[/criteria]
value=100
[/target]
[target]
side=5
value=.01
[/target]
[/goal]
[goal]
[criteria]
side=5
[/criteria]
value=0.01
[/goal]
[/ai]
#enddef

View file

@ -89,29 +89,44 @@
[/modifications]
[/unit]
[ai]
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=3.0
[/target]
[protect_unit]
id=Delfador
radius=6
[/goal]
[goal]
name=protect_unit
[criteria]
id=Delfador
[/criteria]
protect_radius=6
value=20.0
[/protect_unit]
[protect_unit]
id=Konrad
radius=10
[/goal]
[goal]
name=protect_unit
[criteria]
id=Konrad
[/criteria]
protect_radius=10
value=20.0
[/protect_unit]
[target]
id=Kalenz
[/goal]
[goal]
name=target
[criteria]
id=Kalenz
[/criteria]
value=3.0
[/target]
[protect_unit]
id=Kalenz
radius=4
[/goal]
[goal]
name=protect_unit
[criteria]
id=Kalenz
[/criteria]
protect_radius=4
value=20.0
[/protect_unit]
[/goal]
[avoid]
x=20-31
@ -127,14 +142,21 @@
#ifdef HARD
#define HIGH_PRIORITY_TARGETS
[target]
id=Delfador
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=100
[/target]
[target]
id=Konrad
[/goal]
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=100
[/target]
[/goal]
#enddef
#endif

View file

@ -82,47 +82,68 @@
grouping="offensive"
aggression="0.0"
caution="-0.75"
[protect_location]
x=20
y=28
radius="12"
value="20.0"
[/protect_location]
[protect_location]
x=16
y=17
radius="12"
value="10.0"
[/protect_location]
[protect_location]
x=25
y=10
radius="10"
value="10.0"
[/protect_location]
[target]
id=Delfador
[goal]
name=protect_location
[criteria]
x,y=20,28
[/criteria]
protect_radius=12
value=20.0
[/goal]
[goal]
name=protect_location
[criteria]
x,y=16,17
[/criteria]
protect_radius=12
value=10.0
[/goal]
[goal]
name=protect_location
[criteria]
x,y=25,10
[/criteria]
protect_radius=10
value=10.0
[/goal]
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=3.0
[/target]
[protect_unit]
id=Delfador
radius=6
[/goal]
[goal]
name=protect_unit
[criteria]
id=Delfador
[/criteria]
protect_radius=6
value=20.0
[/protect_unit]
[protect_unit]
id=Konrad
radius=10
[/goal]
[goal]
name=protect_unit
[criteria]
id=Konrad
[/criteria]
protect_radius=10
value=20.0
[/protect_unit]
[target]
id=Kalenz
[/goal]
[goal]
name=target
[criteria]
id=Kalenz
[/criteria]
value=3.0
[/target]
[protect_unit]
id=Kalenz
radius=4
[/goal]
[goal]
name=protect_unit
[criteria]
id=Kalenz
[/criteria]
protect_radius=4
value=20.0
[/protect_unit]
[/goal]
[avoid]
x="9-23"

View file

@ -116,10 +116,13 @@
#ifdef HARD
recruitment_pattern=scout,mixed fighter,fighter,fighter,fighter,archer
#endif
[target]
id=Konrad
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=9.0
[/target]
[/goal]
leader_value=6.0
[/ai]
team_name=asheviere

View file

@ -114,10 +114,13 @@
leader_value=100
#target Konrad especially heavily
[target]
id=Konrad
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=100
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -142,10 +145,13 @@
y=1-12
[/avoid]
#target Konrad especially heavily
[target]
id=Konrad
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=100
[/target]
[/goal]
village_value=0
[/ai]
[/side]

View file

@ -95,22 +95,34 @@
#endif
villages_per_scout=0
village_value=0
[target]
id=Honber
[goal]
name=target
[criteria]
id=Honber
[/criteria]
value=100
[/target]
[target]
id=Konrad
[/goal]
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=0
[/target]
[target]
id=Delfador
[/goal]
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=0
[/target]
[target]
id="Li'sar"
[/goal]
[goal]
name=target
[criteria]
id="Li'sar"
[/criteria]
value=0
[/target]
[/goal]
[/ai]
[ai]
time_of_day=dusk
@ -159,22 +171,34 @@
#endif
villages_per_scout=0
village_value=0
[target]
id=Kior-Dal
[goal]
name=target
[criteria]
id=Kior-Dal
[/criteria]
value=100
[/target]
[target]
id=Konrad
[/goal]
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=0
[/target]
[target]
id=Delfador
[/goal]
[goal]
name=target
[criteria]
id=Delfador
[/criteria]
value=0
[/target]
[target]
id="Li'sar"
[/goal]
[goal]
name=target
[criteria]
id="Li'sar"
[/criteria]
value=0
[/target]
[/goal]
[/ai]
[ai]
time_of_day=dawn
@ -218,10 +242,13 @@
#
# The previous value was 15
#
[target]
id=Konrad
[goal]
name=target
[criteria]
id=Konrad
[/criteria]
value=4
[/target]
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]

View file

@ -117,7 +117,13 @@
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
protect_leader_radius=1
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=1
[/goal]
[/ai]
[ai]
ai_algorithm=idle_ai
@ -147,7 +153,13 @@
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
protect_leader_radius=1
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=1
[/goal]
[/ai]
[ai]
ai_algorithm=idle_ai
@ -175,7 +187,13 @@
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
protect_leader_radius=1
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=1
[/goal]
[/ai]
[ai]
ai_algorithm=idle_ai
@ -205,7 +223,13 @@
{NO_SCOUTS}
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
protect_leader_radius=1
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=1
[/goal]
[/ai]
[ai]
ai_algorithm=idle_ai

View file

@ -10,11 +10,14 @@
#endif
#define HIGH_PRIORITY_TARGETS
[target]
# wmllint: recognize Kalenz
id=Kalenz
[goal]
[criteria]
# wmllint: recognize Kalenz
id=Kalenz
[/criteria]
value=200
[/target]
[/goal]
#enddef
id=21_Elvish_Assassins

View file

@ -86,11 +86,14 @@
x,y=9,2
[/leader_goal]
[protect_unit]
id=Fal Khag
radius=10
[goal]
name=protect_unit
[criteria]
id=Fal Khag
[/criteria]
protect_radius=10
value=10
[/protect_unit]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]

View file

@ -49,11 +49,14 @@
team_name=bad_guys
user_team_name=_"Asheviere"
[ai]
[protect_location]
x,y=30,7
radius=11
[goal]
name=protect_location
[criteria]
x,y=30,7
[/criteria]
protect_radius=11
value=10
[/protect_location]
[/goal]
[/ai]
{FLAG_VARIANT loyalist}
[/side]

View file

@ -49,12 +49,14 @@
controller=ai
[ai]
#This should get them to attack the saurians
[protect_location]
x=7
y=5
radius=10
[goal]
name=protect_location
[criteria]
x,y=7,5
[/criteria]
protect_radius=10
value=7
[/protect_location]
[/goal]
[/ai]
recruit=Outlaw_Peasant,Trapper_Peasant,Poacher_Peasant,Huntsman_Peasant,Thug_Peasant
{GOLD 250 130 60}

View file

@ -81,12 +81,14 @@
[ai]
village_value=0.5
leader_value=1
[protect_unit]
side=1
radius=8
[goal]
name=protect_unit
[criteria]
side=1
[/criteria]
protect_radius=8
value=2.0
[/protect_unit]
[/goal]
[/ai]
[/side]

View file

@ -154,19 +154,24 @@
caution=0.2
aggression=0.8
scout_village_targeting=1
[target]
side=1,5
[goal]
[criteria]
side=1,5
[/criteria]
value=1.0
[/target]
[target]
side=2,3
[/goal]
[goal]
[criteria]
side=2,3
[/criteria]
value=2.5
[/target]
[target]
side=6
[/goal]
[goal]
[criteria]
side=6
[/criteria]
value=0.5
[/target]
[/goal]
[avoid]
x,y=1-22,1-40
@ -177,20 +182,24 @@
caution=0.1
aggression=0.9
scout_village_targeting=1
[target]
side=1,5
[goal]
[criteria]
side=1,5
[/criteria]
value=1.0
[/target]
[target]
side=2,3
[/goal]
[goal]
[criteria]
side=2,3
[/criteria]
value=2.5
[/target]
[target]
side=6
[/goal]
[goal]
[criteria]
side=6
[/criteria]
value=0.5
[/target]
[/goal]
[avoid]
x,y=1-17,1-40
[/avoid]
@ -216,10 +225,12 @@
color=purple
[ai]
recruitment_pattern=mixed fighter,mixed fighter,fighter,mixed fighter,archer
[target]
id=Dommel
[goal]
[criteria]
id=Dommel
[/criteria]
value=10
[/target]
[/goal]
[/ai]
team_name=good_guys
user_team_name=_"Rebels"
@ -238,26 +249,30 @@
aggression=0.6
caution=0.6
leader_value=0.5
[target]
side=2
[goal]
[criteria]
side=2
[/criteria]
value=2.5
[/target]
[target]
side=3
[/goal]
[goal]
[criteria]
side=3
[/criteria]
value=1.5
[/target]
[target]
side=4
[/goal]
[goal]
[criteria]
side=4
[/criteria]
value=0.5
[/target]
[target]
id=Dommel
[/goal]
[goal]
[criteria]
id=Dommel
[/criteria]
value=0.25
[/target]
[/goal]
[avoid]
x,y=18-40,1-40
@ -270,25 +285,30 @@
caution=0.6
leader_value=0.5
[target]
side=2
[goal]
[criteria]
side=2
[/criteria]
value=2.5
[/target]
[target]
side=3
[/goal]
[goal]
[criteria]
side=3
[/criteria]
value=1.5
[/target]
[target]
side=4
[/goal]
[goal]
[criteria]
side=4
[/criteria]
value=0.5
[/target]
[target]
id=Dommel
[/goal]
[goal]
[criteria]
id=Dommel
[/criteria]
value=0.25
[/target]
[/goal]
[avoid]
x,y=22-40,1-40

View file

@ -118,14 +118,20 @@
[ai]
village_value=0.75 # Weakened desire to capture villages
caution=0.50 # Wants to survive the duel
[target]
side=3
value=3.0
[/target]
[target]
side=1
value=1.0
[/target]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=3
[/goal]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=1
[/goal]
[/ai]
[/side]
@ -144,14 +150,20 @@
leader=5 # Strong desire to kill Al'Tar
village_value=0.75 # Weakened desire to capture villages
caution=0.50 # Wants to survive the duel
[target]
side=2
value=3.0
[/target]
[target]
side=1
value=1.0
[/target]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=3
[/goal]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=1
[/goal]
[/ai]
[/side]

View file

@ -180,10 +180,13 @@
leader_value=50.0
villages_per_scout=0.0
recruitment_pattern=scout
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -208,10 +211,13 @@
leader_value=50.0
villages_per_scout=0.0
recruitment_pattern=scout
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -235,10 +241,13 @@
leader_value=50.0
villages_per_scout=0.0
recruitment_pattern=scout
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -262,10 +271,13 @@
leader_value=50.0
villages_per_scout=0.0
recruitment_pattern=scout
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -289,10 +301,13 @@
leader_value=50.0
villages_per_scout=0.0
recruitment_pattern=scout
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]

View file

@ -342,10 +342,13 @@
villages_per_scout=0.0
recruitment_pattern=fighter,fighter,mixed fighter
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -372,10 +375,13 @@
villages_per_scout=0.0
recruitment_pattern=fighter,fighter,mixed fighter
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -402,10 +408,13 @@
villages_per_scout=0.0
recruitment_pattern=fighter,fighter,mixed fighter
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]
@ -433,10 +442,13 @@
villages_per_scout=0.0
recruitment_pattern=fighter,fighter,mixed fighter
[target]
id=Tallin
[goal]
name=target
[criteria]
id=Tallin
[/criteria]
value=500
[/target]
[/goal]
[/ai]
[/side]

View file

@ -63,27 +63,42 @@
team_name=orcs
user_team_name=_"Orcs"
[ai]
[target]
x=30
y=30
[goal]
name=target
[criteria]
x=30
y=30
[/criteria]
value=400
[/target]
[target]
side=1
[/goal]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=300
[/target]
[target]
side=7
[/goal]
[goal]
name=target
[criteria]
side=7
[/criteria]
value=150
[/target]
[target]
side=8
[/goal]
[goal]
name=target
[criteria]
side=8
[/criteria]
value=50
[/target]
[target]
side=9
[/goal]
[goal]
name=target
[criteria]
side=9
[/criteria]
value=250
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -101,22 +116,34 @@
team_name=orcs
user_team_name=_"Orcs"
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=400
[/target]
[target]
side=7
[/goal]
[goal]
name=target
[criteria]
side=7
[/criteria]
value=300
[/target]
[target]
side=8
[/goal]
[goal]
name=target
[criteria]
side=8
[/criteria]
value=200
[/target]
[target]
side=9
[/goal]
[goal]
name=target
[criteria]
side=9
[/criteria]
value=350
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -134,22 +161,34 @@
team_name=orcs
user_team_name=_"Orcs"
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=400
[/target]
[target]
side=7
[/goal]
[goal]
name=target
[criteria]
side=7
[/criteria]
value=300
[/target]
[target]
side=8
[/goal]
[goal]
name=target
[criteria]
side=8
[/criteria]
value=200
[/target]
[target]
side=9
[/goal]
[goal]
name=target
[criteria]
side=9
[/criteria]
value=350
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -167,22 +206,34 @@
team_name=orcs
user_team_name=_"Orcs"
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=400
[/target]
[target]
side=7
[/goal]
[goal]
name=target
[criteria]
side=7
[/criteria]
value=300
[/target]
[target]
side=8
[/goal]
[goal]
name=target
[criteria]
side=8
[/criteria]
value=200
[/target]
[target]
side=9
[/goal]
[goal]
name=target
[criteria]
side=9
[/criteria]
value=350
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -200,22 +251,34 @@
team_name=orcs
user_team_name=_"Orcs"
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=400
[/target]
[target]
side=7
[/goal]
[goal]
name=target
[criteria]
side=7
[/criteria]
value=300
[/target]
[target]
side=8
[/goal]
[goal]
name=target
[criteria]
side=8
[/criteria]
value=200
[/target]
[target]
side=9
[/goal]
[goal]
name=target
[criteria]
side=9
[/criteria]
value=350
[/target]
[/goal]
[/ai]
{FLAG_VARIANT ragged}
[/side]
@ -263,10 +326,13 @@
village_value=0.0
leader_value=50.0
villages_per_scout=0.0
[target]
id=Rakshas
[goal]
name=target
[criteria]
id=Rakshas
[/criteria]
value=500
[/target]
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]

View file

@ -865,10 +865,13 @@
village_value=0.2
recruitment_pattern=fighter,fighter,mixed fighter
[target]
side=1
value=2.0
[/target]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2
[/goal]
[/ai]
recruit=Troll Whelp,Goblin Spearman,Troll Rocklobber
team_name=trolls1
@ -924,10 +927,13 @@
village_value=0.2
recruitment_pattern=fighter
[target]
side=1
value=2.0
[/target]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2
[/goal]
[/ai]
recruit=Troll Whelp,Goblin Spearman,Young Ogre,Ogre
team_name=trolls2
@ -982,10 +988,13 @@
village_value=0.2
recruitment_pattern=fighter
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2.0
[/target]
[/goal]
[/ai]
recruit=Goblin Spearman,Goblin Rouser,Goblin Impaler
team_name=trolls3

View file

@ -48,8 +48,14 @@
recruitment_ignore_bad_combat=yes
villages_per_scout=0
grouping=defensive
protect_leader=2
protect_leader_radius=4
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
protect_radius=4
value=2
[/goal]
[/ai]
team_name=enemies
user_team_name= _ "Enemies"
@ -72,7 +78,13 @@
leader_value=1
recruitment_ignore_bad_combat=yes
grouping=no
protect_leader=0.5
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=0.5
[/goal]
[/ai]
[ai]
recruitment_pattern=fighter,fighter,archer
@ -81,7 +93,13 @@
caution=0.2
village_value=2
grouping=offensive
protect_leader=1.0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=1
[/goal]
[/ai]
[ai]
recruitment_pattern=fighter,fighter,archer,scout
@ -91,7 +109,13 @@
village_value=0
leader_value=10
grouping=no
protect_leader=0
[goal]
name=protect_my_unit
[criteria]
canrecruit=yes
[/criteria]
value=0
[/goal]
[/ai]
team_name=enemies
user_team_name= _ "Enemies"

View file

@ -40,23 +40,35 @@
team_name=elves
user_team_name= _ "Elves"
[ai]
[protect_location]
x,y=36,3
radius=10
[goal]
name=protect_location
[criteria]
x,y=36,3
[/criteria]
value=100
[/protect_location]
[target]
type=Gryphon,Gryphon Rider,Gryphon Master
protect_radius=10
[/goal]
[goal]
name=target
[criteria]
type=Gryphon,Gryphon Rider,Gryphon Master
[/criteria]
value=10
[/target]
[target]
id=Alanin
[/goal]
[goal]
name=target
[criteria]
id=Alanin
[/criteria]
value=2
[/target]
[target]
race=dwarf
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]
@ -75,15 +87,21 @@
team_name=elves
user_team_name= _ "Elves"
[ai]
[protect_location]
x,y=36,3
radius=10
[goal]
name=protect_location
[criteria]
x,y=36,3
[/criteria]
value=100
[/protect_location]
[target]
race=dwarf
protect_radius=10
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=10
[/target]
[/goal]
[avoid]
x=1-18
y=1-38
@ -106,14 +124,20 @@
team_name=elves
user_team_name= _ "Elves"
[ai]
[target]
id=Alanin
[goal]
name=target
[criteria]
id=Alanin
[/criteria]
value=10
[/target]
[target]
race=dwarf
[/goal]
[goal]
name=target
[criteria]
race=dwarf
[/criteria]
value=1
[/target]
[/goal]
[/ai]
{FLAG_VARIANT wood-elvish}
[/side]

View file

@ -34,14 +34,20 @@
no_leader=yes
side=2
[ai]
[target]
id=Alanin
[goal]
name=target
[criteria]
id=Alanin
[/criteria]
value=1
[/target]
[target]
type=Bowman,Spearman
[/goal]
[goal]
name=target
[criteria]
type=Bowman,Spearman
[/criteria]
value=0.1
[/target]
[/goal]
[avoid]
x=11,17,18,16,14,22
y=5,12,20,33,28,14

View file

@ -56,10 +56,13 @@
grouping=none
passive_leader=yes
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=2.0
[/target]
[/goal]
[/ai]
[ai]
turns=12-FOREVER
@ -73,10 +76,13 @@
grouping=none
passive_leader=yes
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=20
[/target]
[/goal]
[/ai]
team_name=elves
user_team_name= _ "Elves"
@ -99,10 +105,13 @@
leader_aggression=0.9
caution=0.1
grouping=offensive
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=20
[/target]
[/goal]
[/ai]
team_name=khrakrahs
user_team_name= _ "Khrakrahs"

View file

@ -34,14 +34,20 @@
team_name=elves
user_team_name= _ "Elves"
[ai]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=5
[/target]
[target]
side=3,4,5,6
[/goal]
[goal]
name=target
[criteria]
side=3,4,5,6
[/criteria]
value=0.5
[/target]
[/goal]
grouping=none
aggression=1.0
[/ai]
@ -57,10 +63,13 @@
{INCOME 20 25 30}
[ai]
recruitment_pattern=fighter
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[/goal]
[/ai]
team_name=orcs
user_team_name= _ "Orcs"
@ -76,10 +85,13 @@
{INCOME 20 25 30}
[ai]
recruitment_pattern=fighter
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[/goal]
[/ai]
team_name=orcs
user_team_name= _ "Orcs"
@ -95,14 +107,20 @@
{INCOME 5 6 7}
[ai]
recruitment_pattern=fighter
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=2
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=1
[/target]
[/goal]
[/ai]
team_name=orcs
user_team_name= _ "Orcs"
@ -118,14 +136,20 @@
{INCOME 5 6 7}
[ai]
recruitment_pattern=fighter
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=2
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=1
[/target]
[/goal]
[/ai]
team_name=orcs
user_team_name= _ "Orcs"

View file

@ -96,10 +96,13 @@
[ai]
aggression=1.0
recruitment_pattern=scout, scout, fighter, fighter, fighter, healer, archer
[target]
type=Saurian
[goal]
name=target
[criteria]
type=Saurian
[/criteria]
value=50
[/target]
[/goal]
[/ai]
recruit=Elvish Fighter, Elvish Archer, Elvish Shaman, Elvish Scout
team_name=villains
@ -120,10 +123,13 @@
recruitment_pattern=scout, fighter, fighter, fighter, mixed fighter
aggression=1.0
villages_per_scout=10
[target]
type=Saurian
[goal]
name=target
[criteria]
type=Saurian
[/criteria]
value=50
[/target]
[/goal]
[/ai]
recruit=Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Footpad, Bandit
team_name=villains

View file

@ -104,11 +104,14 @@
recruitment_pattern=scout,scout,fighter,archer,fighter,archer,mixed fighter,mixed fighter,healer
leader_value=50.0
villages_per_scout=10
[protect_unit]
id="Earl Lanbec'h"
radius=8
[goal]
name=protect_unit
[criteria]
id="Earl Lanbec'h"
[/criteria]
protect_radius=8
value=20
[/protect_unit]
[/goal]
[/ai]
[ai]
time_of_day=dawn,morning,afternoon

View file

@ -93,11 +93,14 @@
recruitment_pattern=scout,scout,fighter,archer,fighter,archer,mixed fighter,mixed fighter,healer
leader_value=50.0
villages_per_scout=10
[protect_unit]
id="Earl Lanbec'h"
radius=8
[goal]
name=protect_unit
[criteria]
id="Earl Lanbec'h"
[/criteria]
protect_radius=8
value=20
[/protect_unit]
[/goal]
[/ai]
[ai]
time_of_day=dawn,morning,afternoon
@ -132,10 +135,13 @@
{GOLD 300 350 400}
[ai]
[target]
id="Kapou'e"
[goal]
name=target
[criteria]
id="Kapou'e"
[/criteria]
value=10
[/target]
[/goal]
[/ai]
[/side]

View file

@ -69,10 +69,13 @@
#ifdef HARD
#define HIGH_PRIORITY_TARGETS
[target]
id=Marth-Tak
[goal]
name=target
[criteria]
id=Marth-Tak
[/criteria]
value=100
[/target]
[/goal]
#enddef
#endif

View file

@ -104,10 +104,14 @@
[leader_goal]
x,y=44,15 # wants to take the Kal Karthans' keep.
[/leader_goal]
[target]
side=2 # wants to kill Kal Karthans
[goal]
name=target
[criteria]
side=2 # wants to kill Kal Karthans
[/criteria]
value=4.0
[/target]
[/goal]
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
@ -138,10 +142,13 @@
[leader_goal]
x,y=44,15 # wants to take the Kal Karthans' keep.
[/leader_goal]
[target]
side=2 # wants to kill Kal Karthans
[goal]
name=target
[criteria]
side=2 # wants to kill Kal Karthans
[/criteria]
value=4.0
[/target]
[/goal]
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch
@ -171,10 +178,13 @@
[leader_goal]
x,y=44,15 # wants to take the Kal Karthans' keep.
[/leader_goal]
[target]
side=2 # wants to kill Kal Karthans
[goal]
name=target
[criteria]
side=2 # wants to kill Kal Karthans
[/criteria]
value=4.0
[/target]
[/goal]
[/ai]
[ai]
time_of_day=dusk,first_watch,second_watch

View file

@ -55,12 +55,14 @@
{ATTACK_DEPTH 4 5 5}
[/ai]
[ai]
[protect_location]
x=20
y=23
radius=12
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/protect_location]
[/goal]
[/ai]
[/side]
@ -88,12 +90,14 @@
{ATTACK_DEPTH 4 5 5}
[/ai]
[ai]
[protect_location]
x=20
y=23
radius=12
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/protect_location]
[/goal]
[/ai]
[/side]
@ -122,12 +126,14 @@
{ATTACK_DEPTH 4 5 5}
[/ai]
[ai]
[protect_location]
x=20
y=23
radius=12
[goal]
name=protect_location
[criteria]
x,y=20,23
[/criteria]
protect_radius=12
value=10
[/protect_location]
[/goal]
[/ai]
[/side]
@ -154,11 +160,13 @@
recruitment_ignore_bad_movement=yes
recruitment_pattern=scout,archer,scout,scout,healer
{ATTACK_DEPTH 4 5 5}
[target]
id=Prince Haldric
[goal]
name=target
[criteria]
id=Prince Haldric
[/criteria]
value=15
[/target]
[/goal]
[/ai]
[/side]

View file

@ -61,12 +61,14 @@
caution=0.0
[/ai]
[ai]
[protect_location]
x=13
y=16
radius=10
[goal]
name=protect_location
[criteria]
x,y=13,16
[/criteria]
protect_radius=10
value=10
[/protect_location]
[/goal]
[/ai]
[/side]
@ -100,12 +102,14 @@
caution=0.0
[/ai]
[ai]
[protect_location]
x=13
y=16
radius=10
[goal]
name=protect_location
[criteria]
x,y=13,16
[/criteria]
protect_radius=10
value=10
[/protect_location]
[/goal]
[/ai]
[/side]

View file

@ -62,12 +62,14 @@
aggression=0.65
[/ai]
[ai]
[protect_location]
x=42
y=40
radius=8
[goal]
name=protect_location
[criteria]
x,y=42,40
[/criteria]
protect_radius=8
value=10
[/protect_location]
[/goal]
[/ai]
{INCOME 4 6 8}
{FLAG_VARIANT undead}

View file

@ -75,15 +75,21 @@
{ATTACK_DEPTH 3 4 5}
village_value=0.1
villages_per_scout=10
[target]
id=Deoran
value=10.0
[/target]
[protect_location]
x,y=28,16
radius=10
[goal]
name=target
[criteria]
id=Deoran
[/criteria]
value=10
[/goal]
[goal]
name=protect_location
[criteria]
x,y=28,16
[/criteria]
protect_radius=10
value=5.0
[/protect_location]
[/goal]
[avoid]
x,y=1-24,1-9
[/avoid]

View file

@ -85,10 +85,13 @@
#endif
{QUANTITY aggression 0.5 0.6 0.7}
{ATTACK_DEPTH 3 4 5}
[target]
id=Ethiliel
value=3.0
[/target]
[goal]
name=target
[criteria]
id=Ethiliel
[/criteria]
value=3
[/goal]
[/ai]
#ifdef EASY
recruit=Walking Corpse,Skeleton
@ -127,10 +130,14 @@
recruitment_pattern=fighter,scout,archer
#endif
{QUANTITY aggression 0.2 0.3 0.4}
[target]
id=Ethiliel
value=2.0
[/target]
[goal]
name=target
[criteria]
id=Ethiliel
[/criteria]
value=2
[/goal]
[avoid]
x,y=27-35,29-35
[/avoid]

View file

@ -83,10 +83,13 @@
grouping=no
attack_depth=1
village_value=0
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=20
[/target]
[/goal]
[/ai]
{FLAG_VARIANT undead}
[/side]
@ -104,10 +107,13 @@
[ai]
aggression=0.7
caution=0.4
[target]
side=1
value=5.0
[/target]
[goal]
name=target
[criteria]
side=1
[/criteria]
value=5
[/goal]
[/ai]
{FLAG_VARIANT long}
[/side]

View file

@ -197,11 +197,13 @@
aggression=0.9
caution=0.5
village_value=0.0
[target]
side=2
[goal]
name=target
[criteria]
side=2
[/criteria]
value=5
[/target]
[/goal]
[/ai]
recruit=Troll Whelp,Troll,Troll Rocklobber

View file

@ -68,10 +68,12 @@
recruitment_pattern=scout, fighter, fighter, archer, scout, fighter, archer
aggression=1.0
caution=0.0
[target]
id=Sir Gerrick
[goal]
[criteria]
id=Sir Gerrick
[/criteria]
value=10.0
[/target]
[/goal]
[/ai]
recruit=Wraith, Shadow, Skeleton, Revenant, Draug, Bone Shooter, Blood Bat, Chocobone
{FLAG_VARIANT undead}

View file

@ -67,10 +67,12 @@
recruitment_pattern=scout,fighter,fighter,archer,scout,fighter,archer,mixed fighter
aggression=1.0
caution=0.0
[target]
id=Deoran
[goal]
[criteria]
id=Deoran
[/criteria]
value=6.0
[/target]
[/goal]
[/ai]
recruit=Wraith,Shadow,Revenant,Draug,Bone Shooter,Blood Bat,Chocobone,Dark Sorcerer,Necrophage
{FLAG_VARIANT undead}

View file

@ -75,10 +75,13 @@
passive_leader=yes
aggression=0.0
caution=1.0
[target]
id=Ethiliel
value=2.0
[/target]
[goal]
name=target
[criteria]
id=Ethiliel
[/criteria]
value=2
[/goal]
[/ai]
[ai]
passive_leader=yes

View file

@ -178,10 +178,13 @@
[ai]
aggression=1.0
caution=0.0
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=1000
[/target]
[/goal]
[/ai]
[/side]
@ -835,7 +838,6 @@
[option]
message= _ "I fear no creature, I will take the blade!"
[command]
[message]
speaker=unit
message= _ "The blade is chill to the touch and gives off a cold glow. I wonder how it came to be here."

View file

@ -58,20 +58,27 @@
# depending on the difficulty (default=5)
{ATTACK_DEPTH 3 4 5}
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=4
[/goal]
[goal]
name=target
[criteria]
side=4
[/criteria]
value=9
[/target]
[target]
side=5
[/goal]
[goal]
name=target
[criteria]
side=5
[/criteria]
value=9
[/target]
[/goal]
[/ai]
[/side]
@ -101,20 +108,27 @@
caution=0.05
grouping=offensive
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=4
[/goal]
[goal]
name=target
[criteria]
side=4
[/criteria]
value=9
[/target]
[target]
side=5
[/goal]
[goal]
name=target
[criteria]
side=5
[/criteria]
value=9
[/target]
[/goal]
[/ai]
[/side]
@ -142,20 +156,27 @@
caution=0.05
grouping=offensive
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=2
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=9
[/target]
[target]
side=3
[/goal]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=9
[/target]
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]
@ -184,20 +205,27 @@
caution=0.05
grouping=offensive
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[target]
side=2
[/goal]
[goal]
name=target
[criteria]
side=2
[/criteria]
value=9
[/target]
[target]
side=3
[/goal]
[goal]
name=target
[criteria]
side=3
[/criteria]
value=9
[/target]
[/goal]
[/ai]
{FLAG_VARIANT knalgan}
[/side]
@ -228,15 +256,21 @@
recruitment_ignore_bad_combat=yes
#causes ants to target cave spider
[target]
type=Cave Spider
[goal]
name=target
[criteria]
type=Cave Spider
[/criteria]
value=150
[/target]
[/goal]
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=100
[/target]
[/goal]
passive_leader=yes
[/ai]
@ -264,10 +298,14 @@
[/ai]
#causes assassin to attack Kaleh more than other units
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=20
[/target]
[/goal]
[/side]
{UTBS_INCLUDE utils/dialog-macros.cfg}

View file

@ -154,11 +154,13 @@
aggression=0.90
caution=0.10
[/ai]
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=20
[/target]
[/goal]
[/side]
#Side=6 dwarf 2 (main base guards)

View file

@ -64,10 +64,13 @@
passive_leader=yes
[target]
side=1
[goal]
name=target
[criteria]
side=1
[/criteria]
value=10
[/target]
[/goal]
[/ai]
[/side]
@ -195,11 +198,13 @@
x=10-20
y=10-18
[/avoid]
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=20
[/target]
[/goal]
[/ai]
[/side]
@ -2504,7 +2509,6 @@
animate,fire_event=no,no
[/kill]
# When a unit moves into human outpost cavern, they see the human base
# and the dead guards. If unit is not Kaleh, Kaleh comes up to see.
# Then Cloaked Figure asks Kaleh to put him down and a conversation ensues.

View file

@ -64,25 +64,35 @@
# other units more, since Kaleh's death leads to
# immediate defeat
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=1
[/target]
[target]
id=Nym
[/goal]
[goal]
name=target
[criteria]
id=Nym
[/criteria]
value=3
[/target]
[target]
id=Zhul
[/goal]
[goal]
name=target
[criteria]
id=Zhul
[/criteria]
value=3
[/target]
[/goal]
[target]
id=$ally_name
[goal]
name=target
[criteria]
id=$ally_name
[/criteria]
value=3
[/target]
[/goal]
[/ai]
[/side]
@ -102,25 +112,35 @@
aggression=0.95
caution=0.1
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=1
[/target]
[target]
id=Nym
[/goal]
[goal]
name=target
[criteria]
id=Nym
[/criteria]
value=3
[/target]
[target]
id=Zhul
[/goal]
[goal]
name=target
[criteria]
id=Zhul
[/criteria]
value=3
[/target]
[/goal]
[target]
id=$ally_name
[goal]
name=target
[criteria]
id=$ally_name
[/criteria]
value=3
[/target]
[/goal]
[/ai]
{FLAG_VARIANT long}
[/side]
@ -142,25 +162,35 @@
aggression=-1.0
caution=1.0
[target]
id=Kaleh
[goal]
name=target
[criteria]
id=Kaleh
[/criteria]
value=1
[/target]
[target]
id=Nym
[/goal]
[goal]
name=target
[criteria]
id=Nym
[/criteria]
value=3
[/target]
[target]
id=Zhul
[/goal]
[goal]
name=target
[criteria]
id=Zhul
[/criteria]
value=3
[/target]
[/goal]
[target]
id=$ally_name
[goal]
name=target
[criteria]
id=$ally_name
[/criteria]
value=3
[/target]
[/goal]
[/ai]
[/side]