Commit graph

1093 commits

Author SHA1 Message Date
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
Lari Nieminen
5efa2f2dc6 Allowed a turn counter to be displayed next to an objective...
...by allowing a show_turn_counter=yes|no key in [objective], and made
the TURNS_RUN_OUT macro use that.
2010-08-15 13:40:50 +00:00
Guillaume Melquiond
79812fc751 Implemented [move_unit]. (Patch #1836 by Anonymissimus.) 2010-08-14 21:03:10 +00:00
Guillaume Melquiond
522898d80a Implemented [modify_unit] tag. (Patch #1808 by Anonymissimus.)
No changes to its semantic, but some simplifications and a few fixes
to [object] and [trait]: inner tags are no longer special, and more
than 10 units can use the outer tags.
2010-08-13 13:14:18 +00:00
Lari Nieminen
e3ec2ed503 Added a reminder note to also change the hardcoded default...
...multiplayer objectives if the [objectives] text formatting gets changed.
2010-08-08 09:16:33 +00:00
Lari Nieminen
0a76931dd6 Improvements to the objectives dialog:
...made each objective and other note be prefixed with a bullet, added
support for an optional caption= key to [objective], added a few new
helper macros for adding footnotes to objectives and converted all
current alternative and bonus objective texts accordingly.
2010-08-07 16:31:29 +00:00
Guillaume Melquiond
e8c2fcfab6 Fixed handling of numerical values in [case] statements. (Fix for bug #16370.) 2010-08-06 13:23:34 +00:00
Lari Nieminen
00255298d5 Added support for a [note] key in [objectives]...
...to make it easier to supply several notes.
2010-08-05 12:37:25 +00:00
Guillaume Melquiond
d82d68e1f1 Moved [hide_unit] and [unhide_unit] implementations to Lua.
Added support for standard unit filters along the way. (Partial fix
for bug #16358.)
2010-08-04 19:37:24 +00:00
Guillaume Melquiond
897a78b8e8 Fixed index in append mode. 2010-08-03 17:05:49 +00:00
Guillaume Melquiond
904ab069ca Moved [store_locations] implementation to Lua. 2010-08-03 17:05:42 +00:00
Nils Kneuper
9accef8411 add a texdomain marker...
...(currently not required, basically just a safeguard)
2010-07-27 09:07:07 +00:00
Lari Nieminen
efaa1acfaa Added support for a [gold_carryover] tag inside [objectives]...
...so that note= doesn't need to be abused for the carryover notes.
2010-07-27 08:29:58 +00:00
Guillaume Melquiond
992b045afc Moved implementation of [sound] to Lua. 2010-07-26 21:21:20 +00:00
Guillaume Melquiond
e2c80eee3d Moved implementation of [store_unit] to Lua. 2010-07-25 15:34:13 +00:00
Guillaume Melquiond
e5562a1b52 Added a ~lua: prefix for flagging non-WML errors. 2010-07-25 15:34:04 +00:00
Guillaume Melquiond
1487d54166 Moved implementation of [store_turns] to Lua. 2010-07-22 20:06:16 +00:00
Guillaume Melquiond
53ebcaa5fb Moved implementation of [unit_overlay]...
...and [remove_unit_overlay] to Lua.

Added support for standard unit filter along the way.
2010-07-22 14:04:34 +00:00
Guillaume Melquiond
c253313def Moved [scroll_to] and [scroll_to_unit] implementations to Lua. 2010-07-19 13:58:18 +00:00
Guillaume Melquiond
1ea42fde77 Removed [filter*] tags when handling sequence of commands. 2010-07-19 13:19:31 +00:00
Guillaume Melquiond
4857a03e02 Moved [switch] implementation to Lua. 2010-07-19 13:19:25 +00:00
Guillaume Melquiond
9b82345628 Added error message on missing tag. 2010-07-19 12:42:19 +00:00
Guillaume Melquiond
642ae51262 Moved [if] and [while] implementations to Lua. 2010-07-19 12:42:15 +00:00
Guillaume Melquiond
093c9996ee Moved [command] implementation to Lua. 2010-07-19 12:42:10 +00:00
Guillaume Melquiond
2000467e12 Moved [music] implementation to Lua and added test. 2010-07-19 12:42:06 +00:00
Guillaume Melquiond
02d939a5d7 Simplified code a bit. 2010-07-19 12:41:53 +00:00
Guillaume Melquiond
5e1a6e5c47 Updated LoW to new Lua idioms. 2010-07-19 12:41:35 +00:00
Guillaume Melquiond
b0d9e98fa4 Added __shallow_literal and __shallow_parsed...
...partial converters for optimizing code.  Added corresponding
helpers.
2010-07-19 06:59:46 +00:00
Guillaume Melquiond
0f6d59a86a Made WML actions more robust to Lua tables. 2010-07-18 21:39:10 +00:00
Guillaume Melquiond
ad61eba863 Added two helper functions parsed and literal...
...for handling uniformly WML tables and vconfig objects.
2010-07-18 21:39:06 +00:00