mattsc
1010a790b1
Messenger MAI: deal with case when path is entirely blocked by enemies
...
This is different from the case when there's an enemy on the next
waypoint, which was already taken care of.
2013-09-01 17:43:34 -07:00
mattsc
cc6831f9e6
New Simple Attack Micro AI and test scenario
2013-09-01 07:34:30 -07:00
mattsc
87a9c2b9f6
[micro_ai] tag: fix bug that prevented removal of sticky behavior CAs
2013-08-29 17:32:03 -07:00
mattsc
500ccde573
Messenger MAI: minor bug fix to messenger attack behavior
...
The syntax of the waypoint_x/y parameter was changed recently, without
adapting its treatment here. As a result, the messenger did "unsafe"
attacks whenever it ended up next to an enemy and not only on the last
waypoint as it is supposed to.
2013-08-29 11:11:23 -07:00
mattsc
14570a0a96
Messenger MAI bug fix: don't try to attack with escort unit without weapon
...
This one was a much more serious bug than the previous one, as it could
throw Wesnoth into an infinite loop.
2013-08-29 08:36:58 -07:00
mattsc
2f56734d4e
Messenger MAI bug fix: don't try to attack with messenger without weapon
2013-08-29 08:03:07 -07:00
Adrián Chaves Fernández (Gallaecio)
71c75e43c1
Removed double spaces from a couple of internationalized strings.
2013-08-18 11:49:36 +02:00
Alexander van Gessel
38b224c1ff
Revert "Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old""
...
This reverts commit 23b72d6956
.
2013-08-09 00:13:46 +02:00
Thibault Févry
23b72d6956
Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old"
...
This reverts commit 5fa5c03411
, reversing
changes made to 06374c64ba
.
2013-08-08 18:50:46 +02:00
Alexander van Gessel
08d1c949f1
wmlindent workarounds for some micro_ai scenarios
2013-08-05 00:15:58 +02:00
Alexander van Gessel
0738a4e59c
make reindent minus some wmlindent issues
2013-08-04 23:22:56 +02:00
mattsc
45611d8fa6
Messenger Micro AI: move duplicate code into a function
2013-07-25 16:30:23 -07:00
mattsc
0891bffafb
ai_helper.put_labels(): add optional keys= parameter
2013-07-16 08:32:45 -07:00
mattsc
7e0a05ed6e
Experimental AI: consistently use underscores in AI ids and file names
...
This is the last step of making everything use consistent syntax.
2013-07-10 20:37:30 -07:00
mattsc
9c087fc348
Experimental AI: change function names in calls to healer_support AI
...
The healer_support internal functions were renamed in a previous commit.
2013-07-10 19:51:03 -07:00
mattsc
cb833d9468
Hang Out MAI test scenario: add wmllint exception
2013-07-07 15:58:56 -07:00
mattsc
e78585586f
ai_helper.put_labels: add show_coords= parameter
2013-07-07 10:50:05 -07:00
mattsc
019b6df9c4
Remove double spaces after periods
...
wmllint complains about this in WML. This is all in Lua code, done for
consistency only.
2013-07-07 10:35:07 -07:00
mattsc
68e84eba23
Fix indenting
2013-07-07 10:35:07 -07:00
mattsc
874eb7cafd
Goto MAI test scenario: move ghost removal into turn end event
...
This prevents the E_NOT_REACHED_DESTINATION errors that happen if this
is done in a moveto event.
2013-07-06 18:13:32 -07:00
mattsc
1c27a6d1cc
Goto MAI: add ignore_enemy_at_goal= parameter
2013-07-06 17:21:23 -07:00
mattsc
61bd7e6e44
Goto MAI: add ignore_units= parameter
2013-07-06 16:56:00 -07:00
mattsc
e30f68f2f1
Goto MAI scenario: minor change to a message
2013-07-06 13:01:19 -07:00
mattsc
35848693e5
Goto Micro AI scenario: use change action rather than delete+add ...
...
... when changing the Micro AI for a side.
2013-07-06 12:59:21 -07:00
mattsc
bb26763602
Goto MAI test scenario: don't use [filter] if all side units are to be controlled
...
[filter] is now an optional parameter for the Goto MAI.
2013-07-06 12:54:04 -07:00
mattsc
2c890d5932
Goto MAI: make [filter] an optional parameter
...
Defaults to all units of the side if not defined.
2013-07-06 12:47:45 -07:00
mattsc
8d8014e375
Goto MAI test scenario: add ghost side that uses avoid_enemies= key
2013-07-06 10:48:44 -07:00
mattsc
8d55cc572f
Goto MAI: add avoid_enemies= parameter
2013-07-06 10:47:09 -07:00
mattsc
b103ded118
[micro_ai] tag setup: fix eval/exec function name assignment when ca_id= key is set
...
In this case, the CA id and eval/exec function names are different.
2013-07-05 21:09:37 -07:00
mattsc
84841a2484
Fix some comments
2013-07-04 12:40:00 -07:00
mattsc
7242ed59bf
Protect Unit MAI: slight adjustment of evaluation scores
...
and add comment about them being hardcoded.
2013-07-04 12:28:29 -07:00
mattsc
338d2f1f22
Healer support MAI: add comment about CA scores being hard-coded
2013-07-04 12:18:04 -07:00
mattsc
5b5964c1e4
Lurkers MAI: add optional ca_score parameter
2013-07-04 12:10:33 -07:00
mattsc
64b923f98f
Bottleneck MAI: add optional ca_score parameter
2013-07-04 12:06:36 -07:00
mattsc
ff7a2590f4
Recruiting MAI: add optional ca_score parameter
2013-07-04 11:55:02 -07:00
mattsc
c225c2a3e7
Patrol MAI: add optional ca_score parameter
2013-07-04 11:51:26 -07:00
mattsc
f8e242d5ac
All Guardian MAIs: add optional ca_score parameter
2013-07-04 11:42:26 -07:00
mattsc
9b8be208ed
All Animal MAIs: add optional ca_score parameter
2013-07-04 11:11:45 -07:00
mattsc
2cd8dea7d9
[micro_ai] tag: simplify how CA id and eval/exec function names are set up
2013-07-04 10:22:51 -07:00
mattsc
ce28d04edd
[micro_ai] tag: simplify how sticky BCAs are set up
2013-07-04 09:58:34 -07:00
mattsc
0a3277100b
All MAIs: only define score/max_score in one place
...
Score and max_score are now always defined in the [micro_ai] definition
tag and a treated as a required parameter by the AI eval/exec functions.
2013-07-04 08:03:16 -07:00
mattsc
5b86d489f1
Micro AIs: make CA names consistent with eval/exec function names (and thus unique)
2013-07-03 20:43:33 -07:00
mattsc
447cbc0ecb
Micro AIs: consistently use underscores in ids and files names, Part 2
...
For some reason these were missed in the previous commit.
2013-07-03 20:05:56 -07:00
mattsc
5e676307dc
Micro AIs: consistently use underscores in ids and file names
...
This was still a mix of underscores and hyphens from the development
phase(s) done by a number of different people.
2013-07-03 20:04:09 -07:00
mattsc
bd76e51af9
Multipack Wolves MAI bug fix: move a misplaced 'end'
...
This caused the AI to become inactive when the show_pack_number= key
was not set.
2013-07-03 19:15:58 -07:00
mattsc
969c6aef03
Messenger MAI: keep messenger at final waypoint once it gets there
...
Previously this caused an error message and jumping back and forth
between the last waypoint and an adjacent hex.
2013-07-03 18:44:42 -07:00
mattsc
bce61017f1
New Hang Out Micro AI and test scenario
2013-07-03 17:10:49 -07:00
mattsc
a277f760eb
Goto MAI: Set ca_score and max_score default to 300,000
2013-07-02 18:17:22 -07:00
mattsc
b7fdf80ec2
Messenger Escort MAI: add optional ca_score parameter
2013-07-02 17:34:24 -07:00
mattsc
3059a11602
[micro_ai] tag: make ca_score a universal optional key for all Micro AIs
...
This does not mean that all the MAIs do anything with this yet, only
that it is passed to all MAIs for which it is set. It needs to be
implemented on a one-by-one basis. Only the Goto MAI uses this option
so far.
2013-07-02 16:57:11 -07:00