mattsc
835194eee4
Micro AIs: add check for valid stopunit execution and error message
...
This now checks whether the stopunit execution intended to be done with
ai.stopunit_all, ai.stopunit_attacks or ai.stopunit_moves is possible
and displays an error message if it is not.
2014-02-27 17:06:19 -08:00
mattsc
f0506b2d31
Micro AIs: add check for valid move and error message
...
This now checks whether the move intended to be done with ai.move is
possible and display an error message if it is not.
2014-02-27 17:06:19 -08:00
mattsc
c06529aa18
Micro AIs: add check for valid full move and error message
...
This now checks whether the move intended to be done with ai.move_full
is possible and display an error message if it is not.
2014-02-27 17:06:19 -08:00
mattsc
70e3fc58bd
Micro AIs: add check for valid attacks and error message
...
This will now check whether the attack intended to be done with
ai.attack is possible and display an error message if it is not.
2014-02-27 17:06:18 -08:00
mattsc
ac5acf69af
Forest Animals MAI: make the rabbit-type animals replay safe
...
They need to be put on the map and taken off using ai.synced_command(),
otherwise it causes OOS errors.
2014-02-20 21:04:24 -08:00
mattsc
e78462c395
Remove function ai_helper.random()
...
This was using the synced RNG which is exactly the wrong thing to do
within the AI evaluation/execution functions.
2014-02-20 11:33:05 -08:00
mattsc
77d258474e
Hang Out MAI: use [ai][avoid] if [micro_ai][avoid] is not given
...
The scenario author now has the option to use either the default AI
[avoid] tag or a specialized [avoid] tag inside the [micro_ai] tag. If
neither is given, the default remains all castle terrain.
2014-02-11 14:00:21 -08:00
mattsc
f856cadff6
Coward Micro AI: add optional tag [filter_second]
...
This tag determines from which units the coward flees. It defaults to
all enemy units, but can be set to enemy and/or allied units if
specified.
2014-01-03 19:03:06 -08:00
mattsc
ffbf2c2891
Simple Attack MAI: add optional parameter 'weapon'
2013-11-25 19:37:20 -08:00
mattsc
c6db6cd8d5
Lua AIs: Remove unnecessary arguments in call to wesnoth.put_unit()
2013-11-14 20:04:52 -08:00
mattsc
9976eac873
Micro AI CA files: replace tabs by spaces
...
I had not realized that TextWrangler changes spaces to tabs when
shifting blocks of text to the left, which had been done for all CA
files when converting the engine files.
2013-11-14 10:54:14 -08:00
mattsc
b340188038
Hunter MAI [micro_ai] tag: add optional [filter] tag
2013-11-01 17:13:06 -07:00
mattsc
08a722e248
All Guardian MAI [micro_ai] tags: add optional [filter] tag
2013-11-01 17:13:05 -07:00
mattsc
0670630ff9
Patrol MAI [micro_ai] tag: add optional [filter] tag
2013-11-01 17:13:05 -07:00
mattsc
b826e5ead5
Micro AIs: make recruit_rushers work with new external CA method
...
The previous code did not allow to get the ai table to the execution
function.
2013-10-30 09:42:41 -07:00
mattsc
3a30675d2f
Micro AIs: remove all references to AI-demos add-on
2013-10-28 17:27:14 -07:00
mattsc
6fb7c46dbe
Both Recruiting MAIs: switch to using external CAs
...
This includes disabling the rush recruiter for the time being, as the
engine files it uses do not yet use the external CAs. It will be
re-enabled once those have been converted as well.
2013-10-26 17:26:37 -07:00
mattsc
323595623b
Protect Unit MAI: switch to using external CAs
...
Also remove the code for the parameter selection dialog. It hasn't
been used in a long time and we can always get it back from the git
history, if needed.
2013-10-26 13:15:18 -07:00
mattsc
cb6c1cd9e6
Bottleneck Defense MAI: switch to using external CAs
2013-10-26 12:27:01 -07:00
mattsc
fe16335132
Healer Support MAI: switch to using external CAs
2013-10-26 11:56:42 -07:00
mattsc
4d92a3068e
All Remaining Animal MAIs: switch to using external CAs
2013-10-26 10:03:07 -07:00
mattsc
d486c093ac
Swarm MAI: switch to using external CAs
2013-10-25 22:22:11 -07:00
mattsc
f308a26dcb
Hunter MAI: switch to using external CAs
2013-10-25 16:41:38 -07:00
mattsc
b13a9d98d9
All Guardian MAIs: switch to using external CAs
2013-10-24 21:00:38 -07:00
mattsc
851ea73cc9
Patrol MAI: switch to using external CAs
...
Also need to disable the zone guardian in the scenario for the time
being, until the guardian MAIs have also been converted.
2013-10-24 19:52:53 -07:00
mattsc
ea99f746c9
Simple Attack MAI: switch to using external CAs
2013-10-24 19:38:56 -07:00
mattsc
68e8f8e610
Hang Out MAI: switch to using external CAs
2013-10-24 19:38:56 -07:00
mattsc
d7e3b87584
Messenger MAI: switch to using external CAs
2013-10-24 13:33:09 -07:00
mattsc
ff2ead45bf
Goto MAI: switch to using external CAs
2013-10-24 12:28:28 -07:00
mattsc
79e28544a0
Lurkers MAI: switch to using external CAs
2013-10-24 08:07:16 -07:00