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
Guillaume Melquiond
3ef35edebe
Removed wesnoth.fire and register_wml_action functions from the engine.
...
Delegated handling of WML actions to Lua.
Made WML action handler proxies into an associative table.
Added backward-compatible functions for accessing them.
2010-07-18 21:38:57 +00:00
Guillaume Melquiond
1c04edcc83
Removed wesnoth.get_unit_type* functions from engine.
...
Implemented unit_type proxies in an associative table.
Added backward-compatible functions.
2010-07-18 17:38:35 +00:00
Guillaume Melquiond
72f9514746
Removed wesnoth.get_side* functions from the engine.
...
Made side proxies into a simple array.
Added backward-compatible functions for accessing them.
2010-07-18 16:12:35 +00:00
Guillaume Melquiond
cddfc4cdfe
Added compatibility hack to avoid executing the file twice.
2010-07-18 15:21:56 +00:00
Alexander van Gessel
4c9389454d
Fix a nil dereference in the [unit_worth] tag...
...
...(due to looking up 'null' as a unit type)
2010-05-24 03:24:49 +01:00
Guillaume Melquiond
d473b4e7b1
Moved [unit_worth] to Lua.
2010-04-05 06:00:28 +00:00
Guillaume Melquiond
a0c0fde236
Moved [store_map_dimensions] to Lua.
2010-04-05 06:00:25 +00:00
Guillaume Melquiond
2857312da0
Moved [disallow_recruit] and [set_recruit] to Lua.
2010-04-05 06:00:12 +00:00
Guillaume Melquiond
b72831642a
Moved [fire_event] to Lua.
2010-04-05 06:00:07 +00:00
Iurii Chernyi
fd25b0f537
improved error message for [store_gold] lua tag...
...
...when non-integer side attribute is given. Related to bug #15659
2010-03-20 23:26:52 +00:00
Nils Kneuper
0723abe7e3
add some (hackish!) attempt to make the po update routines scan .lua files...
...
...for strings, too
this is done by a) scanning for all .lua files additionally to all
.cfg files in FINDCFG and b) by adding the equivalent of a "commented
out" #textdomain DOMAIN declaration
next step: testing if it really does work as expected this should also
fix bug #15629 since the objectives are now *only* declared via some
lua magic
2010-03-15 20:22:28 +00:00
Guillaume Melquiond
6f9986d190
Beautified error message when passing an invalid side attribute to [gold].
...
(Subsumes patch #1477.)
2010-02-27 09:55:49 +00:00
Guillaume Melquiond
e7bd6d3440
Added helper for tile distance.
2010-02-20 11:17:28 +00:00
Guillaume Melquiond
0ae86b9018
Improved helpers a bit.
2010-01-31 19:08:18 +00:00
Guillaume Melquiond
b8cad207f8
Improved error message for a [gold] amount= failure,
...
...as it seems to happen quite frequently (three reports yet). (Fix
for bug #15010.)
2009-12-30 07:42:13 +00:00
Guillaume Melquiond
a41e13ddfd
Added a few more Lua helpers.
2009-12-24 13:59:18 +00:00
Guillaume Melquiond
82b4efaa59
Fixed signature.
2009-09-29 20:19:34 +00:00
Guillaume Melquiond
29d9afb566
Removed package emulation.
2009-09-27 11:44:28 +00:00
Guillaume Melquiond
748c9dc883
Made some helper functions part of the interface.
2009-09-27 11:44:16 +00:00
Guillaume Melquiond
298a0a32b1
Simplified handling of superseded WML action handlers.
2009-09-10 06:47:39 +00:00
Guillaume Melquiond
639e458812
Adapted code to cope with vconfig objects.
2009-09-09 22:21:32 +00:00
Guillaume Melquiond
3291c9b87b
Added error message to [clear_variable].
2009-09-09 22:11:52 +00:00
Guillaume Melquiond
c2ac5485a1
Updated Lua code for [objectives] to vconfig interface.
2009-09-09 21:42:09 +00:00
Guillaume Melquiond
7a61f8fdfd
Simplified code by using wesnoth.eval_conditional.
2009-08-18 05:40:56 +00:00
Guillaume Melquiond
013a364f9a
Reenabled 2009-08-16T23:28:54Z!fabianmueller5@gmx.de now that entities are preserved. Cleaned the code a bit.
2009-08-17 16:30:25 +00:00
Guillaume Melquiond
460a48fffb
Temporarily reverted 2009-08-16T23:28:54Z!fabianmueller5@gmx.de,
...
...as [message] requires location data, which are currently lost in
the process. While uncommon, it may cause some event messages to not
be displayed.
2009-08-17 15:48:16 +00:00