Commit graph

717 commits

Author SHA1 Message Date
Fabian Müller
01cbc5fe1a Wrapped a wml lua tag arround "message" to allows a [show_if] condition.
example:

[message]
    id=Kalenz
    message= _ "Landar is here as well"
    [show_if]
         [have_unit]
              id=Landar
         [/have_unit]
    [/show_if]
[/message]
2009-08-16 23:28:54 +00:00
Guillaume Melquiond
a6dde5e695 Added some error messages. 2009-08-15 08:00:35 +00:00
Guillaume Melquiond
893234212a Updated Lua implementation. 2009-08-03 06:26:02 +00:00
Alexander van Gessel
4514180fe6 Move [unit_worth] implementation to C++...
...and switch to formula proposed by Sapient.
2009-06-17 01:31:45 +01:00
Guillaume Melquiond
ef667d4084 Allowed the [gold] tag without a side attribute. 2009-06-14 19:48:36 +00:00
Guillaume Melquiond
50ca004918 Simplified [unit_worth] code. 2009-06-13 12:34:06 +00:00
Alexander van Gessel
ee53d4b1c7 Throw errors when the queried unit does not exist. 2009-06-08 23:47:30 +01:00
Alexander van Gessel
b5844760ce Move [unit_worth] tag to data/lua/wml-tags.lua,
...make its formula more configurable, store the calculated values.
2009-06-08 03:47:11 +01:00
Guillaume Melquiond
5c5ec7d531 Added note and removed trailing newline from objective dialog. 2009-06-01 19:00:05 +00:00
Guillaume Melquiond
2ee50c09dc Converted objective dialog box to Pango markup. 2009-05-31 17:20:24 +00:00
Guillaume Melquiond
e50c9cedd5 Removed some newlines, as Pango markup can't cope with them.
It still looks bad, but not so bad.
2009-05-31 16:35:37 +00:00
Guillaume Melquiond
c9cf3e7c18 Fixed dwarf leaders starting with 1hp in MP games. 2009-05-29 20:59:27 +00:00
Fabian Müller
a13632b177 New EML tag wml_action that can define new action wml tags. 2009-04-22 17:57:13 +00:00
Guillaume Melquiond
436d87058f Implemented support for dynamic objectives.
The [show_if] tag can now be used in [objective] tags. (bug #13042)
2009-04-19 10:08:05 +00:00
Guillaume Melquiond
4b40922d28 Converted [show_objectives], [gold], [store_gold], [clear_variable] to Lua. 2009-04-18 21:53:53 +00:00
Guillaume Melquiond
8eed1425e7 Replaced C++ implementation of the [objectives] tag by a Lua function. 2009-04-18 18:38:34 +00:00
Guillaume Melquiond
8a20afcc2f Added Lua helper file. 2009-03-22 19:00:01 +00:00