Commit graph

284 commits

Author SHA1 Message Date
Anonymissimus
e1828a43f0 allow comma-separated list for side= in [disallow_recruit]...
...and [set_recruit] (FR bug #17266) (the three should behave
analogically...)
2010-12-17 19:42:07 +00:00
Anonymissimus
89ca6db076 new action tag [harm_unit] (patch #2230 by Elvish_Hunter) 2010-12-14 23:50:56 +00:00
Anonymissimus
28768c71ef better error handling in [move_unit]...
...if invalid coordinates are passed (bug #17087)
2010-11-15 16:57:55 +00:00
Anonymissimus
1838992e5d extended [petrify] and [unpetrify] to also work on recall list units 2010-11-14 12:44:24 +00:00
Anonymissimus
8c3884cbca Created tag [petrify] (bug #17077).
Moved [unpetrify] to lua. Syntax changed from [unpetrify][filter]<SUF>
to [unpetrify]<SUF>. No references in mainline data/ that need to be
updated. Actually, most or all have been using the tag incorrectly,
but worked since [unpetrify] without filter tag was the same as with
an empty filter tag.
2010-11-14 11:52:24 +00:00
Lari Nieminen
02e804a6db Added a [floating_text] tag so text can be floated without unstoring a unit. 2010-11-14 09:55:42 +00:00
Lari Nieminen
a97209abc3 Applied patch #2201: show_turn_counter for win conditions. 2010-11-13 21:43:43 +00:00
Guillaume Melquiond
bd24521d56 Modified get_sides so that it returns the actual side number. Renamed it. 2010-11-07 08:22:53 +00:00
Iurii Chernyi
c30997182e standard side filter 2010-11-06 23:43:53 +00:00
Anonymissimus
3b4ac4ef07 generous error handling in [scroll_to] 2010-11-03 17:57:01 +00:00
Anonymissimus
d1c87949ed Improved error handling in [sound] a bit. 2010-11-01 22:29:06 +00:00
Guillaume Melquiond
33db0a937e Added a public interface for functions handling WML tile overlays. 2010-11-01 18:32:50 +00:00
Steven Panek
ea3c006195 'hilight' -> 'highlight' in [select_unit]-related code. 2010-11-01 03:36:10 +00:00
Guillaume Melquiond
5d39d878a3 Avoided usage of [find_in]. 2010-10-31 17:24:41 +00:00
Guillaume Melquiond
2992b40fca Added helper for iterating over adjacent tiles. 2010-10-31 17:24:38 +00:00
Guillaume Melquiond
768a514bc7 Avoided usage of [find_in]. 2010-10-31 17:24:36 +00:00
Guillaume Melquiond
7e43fc0e3f Added a location_set:filter method. 2010-10-31 17:24:33 +00:00
Guillaume Melquiond
5c52cf4bf9 Simplified code structure. 2010-10-31 17:24:31 +00:00
Guillaume Melquiond
064f268456 Fixed attribute values. 2010-10-31 17:24:27 +00:00
Lari Nieminen
8454d10c37 A more efficient implementation of [store_reachable_locations].
Could probably still be made faster.
2010-10-26 14:43:47 +00:00
Lari Nieminen
3bd47bcb15 This seems to fix a bug occurring when using of_wml_var.
Should be proofread by someone who knows what they're doing.
2010-10-26 14:42:22 +00:00
Lari Nieminen
b16c46e46e Added more options to [store_reachable_locations]. 2010-10-18 12:48:33 +00:00
Ignacio R. Morelle
3fc1fc16e1 Initial implementation of the [select_unit] tag per bug #16819
Optional attributes: fire_event (def. no), hilight (def. yes)

Part of this is broken since I haven't figured out yet how to make it
possible to draw the movement ranges etc. when hilight=yes; apparently
some pathfinder stuff is required per mouse_events.cpp:280 and 284...
2010-10-18 03:17:15 +00:00
Anonymissimus
07d586bda6 Renamed [event][condition] to [event][filter_condition]...
...in order to keep the rule "The only tags inside events not being
executed are the filter* ones.".
2010-10-03 17:29:45 +00:00
Guillaume Melquiond
6e222f37cb Modified [removeitem] deprecation message so that it is no longer fatal. 2010-10-03 13:30:39 +00:00
Guillaume Melquiond
406383792f Added a deprecation helper. 2010-10-03 13:30:37 +00:00
Guillaume Melquiond
930cd8fe63 Added location_set:size method. 2010-10-03 13:30:34 +00:00
Guillaume Melquiond
6874f95cac Avoided costly [store_locations][or]find_in=...
...way of adding elements to location sets.
2010-10-03 06:37:26 +00:00
Guillaume Melquiond
aa7e3e47d9 Added Lua library for location sets and maps. 2010-10-03 06:37:24 +00:00
Lari Nieminen
e04a5fa48f Fixed range=attack in [store_reachable_locations] not working. 2010-10-02 15:39:51 +00:00
Guillaume Melquiond
66039820b4 Moved [delay] implementation to Lua. (Fix for bug #16755.) 2010-10-02 06:28:56 +00:00
Steven Panek
3a6eb75ee8 Renamed [removeitem] to [remove_item]; deprecated [removeitem]. 2010-10-01 23:42:21 +00:00
Anonymissimus
ece60b89e4 Reverted a part of 2010-09-29T22:25:37Z!anonymissimus@arcor.de...
...which accidentally modified [store_reachable_locations] implementation.
2010-09-30 20:55:57 +00:00
Anonymissimus
0e3b939658 Added a helper.rand function using wesnoth.set_variable(...rand=...)
...since math.rand was disabled in 2010-07-19T20:52:17Z!guillaume.melquiond@gmail.com.
2010-09-30 01:01:11 +00:00
Anonymissimus
1145ef01d8 Simplified code from previous commit a bit. 2010-09-29 22:44:13 +00:00
Anonymissimus
cccba06595 Fixed [chat] trying to "retrieve member of non-existant wml container WML.id". 2010-09-29 22:25:37 +00:00
Lari Nieminen
d639518abf Added a new [store_reachable_locations] tag
...for storing the movement or attack range of units. Not entirely
finished yet.
2010-09-26 13:41:48 +00:00
Guillaume Melquiond
1942ee5f6c Simplified code a bit. 2010-09-24 18:35:02 +00:00
Anonymissimus
78d5aa4920 Moved [terrain] to lua. Added support for SLF.
Note that the SLF's terrain= key is not valid; terrain= specifies the
new terrain instead like it used to do. Filtering for terrain can be
done with the [terrain][and]terrain= workaround.
2010-09-24 18:29:43 +00:00
Guillaume Melquiond
be761095c7 Simplified code a bit. 2010-09-24 18:17:19 +00:00
Guillaume Melquiond
839240d519 Avoided string concatenation. 2010-09-24 18:17:07 +00:00
Anonymissimus
da636556bd Allowed events to be fired conditionally via[event][condition]...
...(see FutureWML). Ment to be used when values of variables unrelated
to filtered units shall be queried, otherwise lua_function would need
to be misused for this. Allows for simplification/splitting up into
events for events with structure [event][if][variable][then][else].
2010-09-23 14:20:09 +00:00
Anonymissimus
6ac2bf0f5e Moved [capture_village] to lua and added support for SLF. 2010-09-20 19:01:10 +00:00
Guillaume Melquiond
66606bf3ee Removed event context from [lua][args].
Passed the arguments as the original userdata.
2010-09-05 18:02:05 +00:00
Guillaume Melquiond
9a3728c327 Fixed usage of unqualified tovconfig.
Removed intermediate conversion to userdata since it is now up to the
caller to enable substitution.
2010-09-05 18:02:02 +00:00
Lari Nieminen
50a42c8346 Changed the objectives dialog's turn counter text from...
..."(turn_number/turn_limit)" to "(turns_left turns left)" and "(this
turn left)" on the last turn.
2010-09-05 08:58:00 +00:00
Guillaume Melquiond
b8cbcf0ca9 Improved error handling a bit. 2010-08-28 19:39:01 +00:00
Guillaume Melquiond
bb47837b3b Fixed tag naming. 2010-08-28 18:59:21 +00:00
Guillaume Melquiond
cb92c6d196 Moved handling of toplevel [item] tags to Lua. 2010-08-28 18:56:15 +00:00
Guillaume Melquiond
05902d29eb Moved item-related tags to their own file. 2010-08-28 18:56:12 +00:00