mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-22 14:08:15 +00:00
THoT-S3: make AI sides smarter (#9992)
- Side 2 will be less reckless and more defensive - Side 3 will avoid making stupid moves, like placing units on water for easy kills Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
This commit is contained in:
parent
968e9b95e1
commit
96e32d8dae
@ -61,15 +61,34 @@
|
|||||||
facing=ne
|
facing=ne
|
||||||
|
|
||||||
[ai]
|
[ai]
|
||||||
# Make our allies stupidly aggressive;
|
passive_leader=yes
|
||||||
# keeping Marth-Tak alive anyway is part of the tactical problem.
|
village_value=1
|
||||||
{NO_SCOUTS}
|
aggression=0.40
|
||||||
passive_leader=no
|
caution=0.60
|
||||||
village_value=0.3
|
grouping=defensive
|
||||||
aggression=0.8
|
retreat_factor=0.40
|
||||||
leader_value=3.0
|
retreat_enemy_weight={ON_DIFFICULTY 6 4 2}
|
||||||
caution=0.3
|
[goal]
|
||||||
grouping=offensive
|
name=protect_unit
|
||||||
|
[criteria]
|
||||||
|
side=2
|
||||||
|
canrecruit=yes
|
||||||
|
[/criteria]
|
||||||
|
protect_radius=12
|
||||||
|
value=100
|
||||||
|
[/goal]
|
||||||
|
[goal]
|
||||||
|
name="target_location"
|
||||||
|
[criteria]
|
||||||
|
x=17-25
|
||||||
|
y=18-23
|
||||||
|
radius=4
|
||||||
|
[/criteria]
|
||||||
|
value=100
|
||||||
|
[/goal]
|
||||||
|
[avoid]
|
||||||
|
terrain=Ww*
|
||||||
|
[/avoid]
|
||||||
[/ai]
|
[/ai]
|
||||||
[/side]
|
[/side]
|
||||||
|
|
||||||
@ -97,21 +116,26 @@
|
|||||||
[ai]
|
[ai]
|
||||||
passive_leader=yes
|
passive_leader=yes
|
||||||
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
|
recruitment_pattern=scout,fighter,fighter,archer,mixed fighter
|
||||||
#ifdef HARD
|
|
||||||
[goal]
|
[goal]
|
||||||
name=target
|
name=target
|
||||||
value=100
|
value={ON_DIFFICULTY 60 80 100}
|
||||||
[criteria]
|
[criteria]
|
||||||
id=Marth-Tak
|
id=Marth-Tak
|
||||||
[/criteria]
|
[/criteria]
|
||||||
[/goal]
|
[/goal]
|
||||||
#endif
|
[avoid]
|
||||||
|
terrain=Ww*
|
||||||
|
[/avoid]
|
||||||
[/ai]
|
[/ai]
|
||||||
[/side]
|
[/side]
|
||||||
|
|
||||||
{STARTING_VILLAGES 1 3}
|
{STARTING_VILLAGES 1 3}
|
||||||
{STARTING_VILLAGES 2 9} # Give Marth-Tak all villages south of the rivers.
|
{STARTING_VILLAGES 2 9} # Give Marth-Tak all villages south of the rivers.
|
||||||
|
|
||||||
|
# these sides spawn the Orc Assassin way too much
|
||||||
|
{LIMIT_CONTEMPORANEOUS_RECRUITS 2 ("Orcish Assassin") ({ON_DIFFICULTY 4 3 3})}
|
||||||
|
{LIMIT_CONTEMPORANEOUS_RECRUITS 3 ("Orcish Assassin") ({ON_DIFFICULTY 4 5 5})}
|
||||||
|
|
||||||
[event]
|
[event]
|
||||||
name=prestart
|
name=prestart
|
||||||
|
|
||||||
@ -144,6 +168,11 @@
|
|||||||
bonus=yes
|
bonus=yes
|
||||||
carryover_percentage=40
|
carryover_percentage=40
|
||||||
[/gold_carryover]
|
[/gold_carryover]
|
||||||
|
|
||||||
|
# let player know that they have to flank and attack the attacking orcs
|
||||||
|
[note]
|
||||||
|
description=_"Your ally will focus on defending."
|
||||||
|
[/note]
|
||||||
[/objectives]
|
[/objectives]
|
||||||
|
|
||||||
[unit]
|
[unit]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user