865 Commits

Author SHA1 Message Date
Jyrki Vesterinen
a74f1054ca Always use underscores in event names
Follow-up of 3cbf249b. This commit changes event names to be written with
underscores everywhere where events are fired (or every place I found in a
quick search, anyway).
2016-08-05 08:43:47 +03:00
Celtic Minstrel
b295aab4ba Deprecate {MAGENTA_IS_THE_TEAM_COLOR}
The magenta colour is now the default flag_rgb colour if one is not specified.
2016-08-05 00:49:39 -04:00
Charles Dang
a6dd6c668c Ran wmlindent and fixed badly formatted code 2016-08-05 13:46:39 +11:00
Bär Halberkamp
4e71bbe448 Generate trait help instead of hardcoding
Introduces a new key "help_text=" in [trait]
2016-07-29 18:44:10 -04:00
Celtic Minstrel
7286ea8e0f Merge pull request #661 from spixi/name_and_map_generator
Improvements in the name and map generators
2016-07-18 01:10:46 -04:00
Spixi
f96f86245e Improvements in the map and name generators
- Implement a way to escape special characters {|} in the CFG generator
- Eliminate null pointers to name generators
- Invalid generators now throw exceptions
- Name generating rules for different terrain elements can now be specified
  (The defaults in english.cfg are still used)
2016-07-17 23:42:19 -04:00
Gregory A Lundberg
010f943a40 [option]message= deprecated, use label=
According to the Wiki, since 1.13.2 message= is an alias for label=.

Using message= provokes a warning about it being deprecated.

This replaces message= with label= in the entire mainline (where it had not already been changed).
2016-07-03 13:41:44 -05:00
gfgtdf
2ba7ad5c43 move feedung event to lua
this has 2 advantages:
1) It decreased savefile size since the event is no longer sotred in
each savefile.
2) The ABILITY_FEEDING no longer assumes its used from within
[abilities]
2016-05-20 14:42:49 +02:00
gfgtdf
a1b9469eed remove RECALL_AI_SIDE
This macro causes OOS because it changes the gamestate during the unsynced ai_turn event.
Also it doesn't handle custom recall costs.

This commit also fixes MAKE_AI_SIDE_PERSISTENT. But i think this macro should be removed too since just writing 'persistent=yes' in [side] is much easier to understand than using this macro.
2016-05-11 19:24:20 +02:00
ln-zookeeper
dba586ce53 Rewrote feeding's code to give units only one object, not one per kill 2016-04-23 21:44:30 +03:00
Celtic Minstrel
6b8b83c90d Female names grammar for the Khalifate
(Loosely based on a list of female Arabic names from behindthename.com)
2016-04-15 15:51:25 -04:00
Dugy
f84e8f4795 Added a new way to generate unit names, using rules of a context-free grammar. 2016-04-11 22:14:21 +02:00
mattsc
f161a3cc1c Fix AI_FORMULA_AI_EXPERIMENTAL_RECRUITMENT macro
This also deletes the AI_SIMPLE_FORMULA_AI_EXPERIMENTAL_RECRUITMENT
macro. There is no point in keeping both of them.
2016-03-26 15:34:39 -07:00
Celtic Minstrel
af9be371da Remove old move-to-targets CA and move new one to default 2016-03-24 12:32:34 -04:00
mattsc
ae8df114f6 Fix indenting 2016-03-24 05:27:45 -07:00
Celtic Minstrel
1d7c1c74f6 Improve backwards compatibility for Lua AI
This changes the following:
- Fixes the experimental AI, without changing any of its code except for that in the [engine] tag
- Returns a dummy self from the dummy Lua engine, so that external CAs are more easily switched to using [params]
- Changes the order in which parameters are passed to AI component code. The order is now:
        state/self,    params,    data
2016-03-22 07:22:22 -07:00
Celtic Minstrel
28937124f3 Remove [goal]name=protect and add [goal]name=target_unit
- name=protect was a synonym for protect_location, which I consider confusing when name=target refers to a unit
- name=target_unit is of course a synonym for target, added for greater consistency of syntax
2016-03-22 07:22:22 -07:00
Celtic Minstrel
9c2027a8d8 Remove version key from AI configs
This has a lot of cascade effects and may remove support for some old syntaxes, such as [protect_unit].
2016-03-22 07:22:22 -07:00
Celtic Minstrel
c761a80bd5 Restore the new implementation of the backstab weapon special
This reverts commit e0ac69ce962069de1f04e519db48b58a78e593b4.
2016-03-06 18:29:17 -05:00
ln-zookeeper
e0ac69ce96 Revert parts of 12c96a94 to fix doubled backstab damage in right panel 2016-03-04 23:18:20 +02:00
CelticMinstrel
b5b907afd3 Include all components in COLOR_* macros 2015-12-15 10:45:55 -05:00
Charles Dang
65c0df2343 Updated COLOR_* macros to use color= 2015-12-16 01:26:04 +11:00
gfgtdf
ab1a4629a9 rename [filter] -> [filter_location] in [random_placement] 2015-12-10 01:43:32 +01:00
gfgtdf
f329b1e431 fixup random_placement patch 2015-12-08 01:13:14 +01:00
gfgtdf
a9f141c58e fixup SCATTER_UNITS
was broken in 9d656ad755
2015-12-07 22:40:26 +01:00
gfgtdf
dc786dc181 add tag [random_placement]
and use it to implement SCATTER_IMAGE,SCATTER_EMBELLISHMENTS and
SCATTER_UNITS
2015-12-07 21:49:09 +01:00
Charles Dang
2775d3df4d Minor simplification of FORCE_CHANCE_TO_HIT 2015-10-04 13:52:23 +11:00
Charles Dang
fd098e4b62 Simplify HIGHLIGHT_IMAGE using the new [repeat] tag 2015-10-04 04:30:38 +11:00
Celtic Minstrel
9fb175c9d6 Use new looping tags to implement loop macros 2015-10-01 13:37:55 -04:00
Charles Dang
dd0b2104a5 Deprecated MENU_IMG_TXT and MENU_IMG_TXT2 2015-10-01 21:10:27 +11:00
Charles Dang
bd6467d166 Converted mainline campaigns to use new difficulty syntax 2015-09-29 15:35:40 +11:00
Charles Dang
bec40a3c39 Merge pull request #483 from Wedge009/Spelling_Corrections
Spelling and Grammar Corrections
2015-09-20 07:07:00 +11:00
Celtic Minstrel
7ca65c819e Clarify changelog 2015-09-19 15:41:23 -04:00
Celtic Minstrel
f54d6b5d28 Rewrite leadership ability as a single macro using $other_unit
Note: It's no longer supported to use the macro in a unit with a non-matching level,
for example giving a 2nd-level unit 4th-level leadership.
2015-09-19 02:14:38 -04:00
Celtic Minstrel
12c96a94d2 New autostored WML variable $other_unit for [filter_adjacent]
Also accessible in:
- Weapon specials ([filter_self], [filter_opponent], [filter_attacker], [filter_defender])
- Abilities ([affect_adjacent][filter])

The backstab weapon special is now implemented using this.
(In a weapon special filter, units are guaranteed to be facing each other.)
2015-09-19 00:55:19 -04:00
Charles Dang
282cfe38be Added new default amla icon
The old icon (misc/icon-amla-default.png) remains for compatibility purposes,
but I added a wmllint rule to update the path.

The new image was created with https://openclipart.org/detail/29043/heart, which is
released under the public domain (CC-0).
2015-09-03 18:53:11 +11:00
Wedge009
73b10f315a Separated 'can not' is more common where 'not' forms part of a construction with subsequent words. 2015-08-31 19:11:05 +10:00
Charles Dang
0dfe2a21d9 Deprecate ANIMATED_CAMPFIRE and ANIMATED_BRAZIER
Both of these have been replaced with embellishment overlay terrains
2015-08-17 10:41:46 +11:00
Charles Dang
768a418137 Deprecate ON_SIGHTING
Since sighted events now work, this macro is no longer necessary
2015-08-12 06:12:13 +11:00
Ignacio R. Morelle
b9c6ab59d6 Fix WML variable leak in RECRUIT_UNIT_VARIATIONS 2015-08-09 01:52:27 -03:00
ln-zookeeper
4e7e00d2d5 New dwarf hit and die sounds 2015-07-04 18:18:59 +03:00
Elvish_Hunter
c642e5327a wmlindent run 2015-05-29 11:40:07 +02:00
Elvish_Hunter
082cfdc9af Updated core macros to use [filter] status= instead of [filter_wml] 2015-04-28 19:02:19 +02:00
Charles Dang
117068790c Deprecated LOYAL_UNDEAD_UNIT 2015-04-22 00:09:52 +11:00
Charles Dang
711c4fe690 Deprecate STORY_PART_SPEECH 2015-04-17 19:04:31 +11:00
ln-zookeeper
c4ad38a251 Revert failed attempt to fix slow/poison sounds
The fix failed because attacker/defender hits events are fired after the
attack animation has finished, not in the middle of it when the hit
occurs.
2015-04-17 08:47:07 +03:00
Ignacio R. Morelle
0e55f61051 Remove help markup from SPECIAL_NOTES_DEFENSE_CAP
Causes issues with tooltips in-game.
2015-04-16 22:03:23 -03:00
Ignacio R. Morelle
218b81f833 Use em dash in SPECIAL_NOTES_DEFENSE_CAP 2015-04-16 18:35:26 -03:00
ln-zookeeper
45e9ecfb8a Added a macro for letting intro music play out 2015-04-08 18:40:08 +03:00
ln-zookeeper
ce9beb3c88 Switch to intro music immediately 2015-04-08 17:09:28 +03:00