mattsc
7652c456b7
Fast Micro AI: fix AI setup
2019-12-16 12:25:26 -08:00
mattsc
e5eb2cc11e
Fast Micro AI: fix re-adding default CAs when deleting the MAI
...
The high_xp_attack CA is deleted when adding the Fast MAI, but not added back in when deleting the MAI.
2019-12-16 07:18:56 -08:00
mattsc
c9ef14ad54
Do not load helper.lua where it is not used any more
2018-05-12 17:41:42 -07:00
mattsc
c7f32b1ed5
Lua code: replace deprecated helper.child_range() calls
2018-05-12 17:41:40 -07:00
mattsc
a5bd46e172
Lua code: replace deprecated helper.get_child() calls
2018-05-12 17:41:39 -07:00
Celtic Minstrel
c266b35528
Fix rabbits AI being broken by save-load
2018-03-17 17:16:22 -04:00
Celtic Minstrel
23aac4f72f
Cleanup of fef953a48e
...
- Fix the rabbit AI
- Enable invoke_synced_command to also call (some) built-in commands
and give an error message in the case of an unknown command
- Remove some unnecessary implementation details
2018-03-17 16:48:00 -04:00
Celtic Minstrel
8d4cf3cf62
Shorten requires where possible
2017-05-03 02:42:25 -04:00
Celtic Minstrel
f45d795134
fixup 0f01f97b
(GNA25615)
2017-03-23 17:00:51 -04:00
Celtic Minstrel
0f01f97b30
Update Micro AIs to use new Lua API functions for altering AI
2017-03-20 12:00:21 +11:00
mattsc
b84ec9f775
Micro AIs: fix attacks aspect setup when ca_id= key not given
...
This is an optional key of the [micro_ai] tag.
2016-09-17 08:33:55 -07:00
mattsc
d781e6263a
High XP attacks: adapt other AIs to existence of new CA
...
This means:
1. Adding the new CA to AI configs
2. Removing it whenever the combat CA is removed
3. Preventing conflicts for AIs that previously used overlapping scores
2016-09-03 20:00:12 -07:00
mattsc
f7d9d747c0
New Micro AI: Assassin Squad AI
2016-09-01 14:41:17 -07:00
Celtic Minstrel
232709ea57
A few Micro AI tweaks
...
- For MAIs using aspects, make the facet ID more unique
- Only shallow-preparse the [micro_ai], rather than fully preparsing it
(This is so that filters in Micro AIs can use $this_unit if needed)
2016-07-15 16:15:44 -04:00
Celtic Minstrel
21e79b5f6a
Protect Micro AI: Fix missing aspect ID
2016-07-15 15:50:24 -04:00
Celtic Minstrel
c8b47e48a1
Simple Attack MAI: Fix filters being ignored
2016-03-28 14:59:38 -04:00
Celtic Minstrel
32c3abbbaf
Micro AIs: Distinguish attribute and tag parameters and copy all of the latter
...
(Though currently only Protect Unit and Random Recruiting actually honour multiples of any tag.)
2016-03-28 12:54:25 -04:00
mattsc
c82ae94ae9
Random Recruiting Micro AI: fix [probability] tag
2016-03-28 07:22:52 -07:00
Celtic Minstrel
c79874086d
MicroAIs: Update all to use the new [args] syntax
...
Except for Protect Unit, all of them seem to still work correctly.
2016-03-27 15:13:21 -04:00
Celtic Minstrel
c19ddba30a
MicroAIs: Refactor code to make it easy for add-ons to add new ones
2016-03-26 21:57:15 -04:00