Commit graph

1122 commits

Author SHA1 Message Date
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
Guillaume Melquiond
27ebcd04cc Added default handlers for load/save events. 2010-08-28 18:56:09 +00:00
Guillaume Melquiond
920727691d Simplified code a bit. 2010-08-28 18:56:07 +00:00
Guillaume Melquiond
500177683e Moved objectives-related tags to their own file. 2010-08-28 18:56:04 +00:00
Guillaume Melquiond
74da6020da Moved [remove_item] implementation to Lua. 2010-08-28 18:56:02 +00:00
Guillaume Melquiond
d700d5505b Moved [item] implementation to Lua. 2010-08-28 18:56:00 +00:00
Derek Hoagland
a016980e00 Minor update to [chat]. 2010-08-27 13:55:52 +00:00
Derek Hoagland
ea6a578ad3 Fixes a bug I introduced in 2010-08-27T00:19:59Z!thecricket@embarqmail.com. 2010-08-27 00:31:48 +00:00
Derek Hoagland
1c35816740 Fixes many bugs that anonymissimus found...
...with my initial code for the [chat] tag.
2010-08-27 00:19:59 +00:00
Derek Hoagland
c5611e5bbb Adds [chat] WML tag 2010-08-26 01:04:11 +00:00
Lari Nieminen
cb32ca30c5 Fixed a bug causing turn counter to duplicate...
...when the objectives are viewed several times, and added a separate
string for zero gold carryover.
2010-08-25 21:15:51 +00:00
Guillaume Melquiond
8e8a4f9637 Removed objectives from WML variables and put them inside toplevel tags. 2010-08-22 21:16:23 +00:00
Guillaume Melquiond
90b9c39a69 Added vconfig conversion to wesnoth.fire.
(Compatibility fix for bug #16475.)
2010-08-18 05:12:23 +00:00