Gregory A Lundberg
6af699fdf3
Fix bug: 'text' is nil
2016-09-10 14:20:04 -05:00
Celtic Minstrel
742b4b0be3
Fix an issue with translatable strings that included a possible plural
2016-08-31 21:01:17 -04:00
Celtic Minstrel
b24fdbcbe1
Merge pull request #759 from GregoryLundberg/GL_modify_unit_mode
...
Add mode=replace to [modify_unit]
2016-08-30 12:31:23 -04:00
Charles Dang
ae6b8f97f2
Temporary fix for broken Objective dialog formatting ( f866039e81
)
2016-08-30 18:55:17 +11:00
Celtic Minstrel
f866039e81
Add support for gettext plurals to Lua API
2016-08-29 16:47:17 -04:00
Gregory A Lundberg
82c3b0114d
Add mode=replace to [modify_unit]
...
When specified, replace rather than merge the [unit] sub-tags. Does not effect [object], [trait], [effect] or [advancement].
For example:
[modify_unit]
[filter]
id=Deoran
[/filter]
mode=replace
[filter_recall]
[not]
id="Sir Gerrick"
[/not]
[/filter_recall]
[/modify_unit]
will replace the current contents of [filter_recall] with the given contents. Without mode=replace, the contents would be appended to the previous contents.
2016-08-24 19:35:06 -05:00
Gregory A Lundberg
9d44a45f88
Fix bug with gender-specific messages in [message]
2016-08-19 20:43:50 -05:00
Gregory A Lundberg
f0ad540001
Add result variable to [message] tag
...
If [message] includes one or more [option] choices, store the choice index in the result variable.
2016-08-14 00:19:11 -05:00
Gregory A Lundberg
5f9a711dab
Fix the fix ( #746 )
...
I have SO got to check I pressed Save before I press Commit! This time it bit me because it got merged so quickly.
2016-08-12 14:32:55 -04:00
Gregory A Lundberg
652c5b9b0d
Do not select unit in silent object
...
This causes, for example, units the player does not control to be selected at the start of HttT S08, S11 and S16.
2016-08-12 13:16:07 -05:00
Celtic Minstrel
f4ac23a3c5
Allow [endlevel] to be used in victory or defeat events
2016-08-08 04:09:32 -04:00
Charles Dang
7b22051c3c
Merge pull request #721 from GregoryLundberg/GL_lua_objectives
...
objectives.lua show_turn_counter in white
2016-08-05 21:00:56 +11:00
Celtic Minstrel
53828a01b9
New [remove_object] WML tag
2016-08-02 00:52:52 -04:00
Celtic Minstrel
6dab777f66
Accept [effect] in [modify_unit]
2016-08-02 00:01:48 -04:00
Gregory A Lundberg
ee8778a6d7
objectives.lua show_turn_counter in white
...
This matches the style used for OBJECTIVE_FOOTNOTE and makes the turn count more apparent.
2016-08-01 20:22:15 -05:00
Celtic Minstrel
36eeed413c
Comment fixup
2016-07-17 19:51:09 -04:00
Bär Halberkamp
0a83e2e6b6
Fix [message]s without an image not working
2016-07-17 19:49:29 -04:00
Celtic Minstrel
6abd7a6941
Add [message]image_pos=left|right
...
This is meant to replace ~RIGHT() and also the newer ~LEFT(),
with one exception: ~RIGHT() will still be the standard way to
make a unit's portrait go on the right by default.
2016-07-15 17:35:51 -04:00
Pentarctagon
d22b15b19b
Add color=value to [message] ( #651 )
...
Add support for the pango attributes as keys in [message]
This is equivalent to surrounding the entire string in a span with the specified attribtues.
2016-06-06 12:50:49 -04:00
gfgtdf
5de1d9b046
optimise [random_placement]
...
the cases distance=0 and distance = -1 now dont loop thougth all
possible locations anymore when removing a used location.
2016-05-20 14:42:49 +02:00
Celtic Minstrel
af58b33aca
[modify_unit] now supports dvs for modifications
...
This means [object], [advancement], and [trait] tags within [modify_unit]
can now use delayed_variable_substitution=yes.
This is currently needed for adding teleport, backstab, and leadership abilities.
2016-05-18 20:48:48 -04:00
Celtic Minstrel
5cf12798ce
Port "trivial" WML tags to Lua
...
This is more about adding Lua API for things that should have it than porting WML tags to Lua.
The following new Lua API functions have been added to the wesnoth table:
- add_fog, remove_fog
- add_sound_source, remove_sound_source, get_sound_source
- log
2016-04-05 02:24:42 -04:00
Celtic Minstrel
a275f22ebe
Fix potential "image is nil" error in [message]
2016-04-04 20:55:45 -04:00
Celtic Minstrel
d3374d3670
WML tags fixup
2016-04-04 20:10:52 -04:00
Celtic Minstrel
a791909544
Split the more complicated WML tags into separate Lua files
2016-04-04 17:03:38 -04:00
Celtic Minstrel
7c37ad57bd
Two new [message] features
...
- ~LEFT() does the opposite of ~RIGHT(), but takes higher priority;
use it to force an image to the left that's normally on the right
(eg female silver mage)
- image=~RIGHT() means "use normal portrait, but on the right"
2016-04-02 15:15:31 -04:00
Celtic Minstrel
1c27cafa74
Add highlight=yes|no to [scroll_to], [scroll_to_unit], [message]
...
Defaults to no in the first two cases, yes in the third
If yes, the target hex is outlined.
2016-03-20 02:55:12 -04:00
mattsc
bce1fae063
Fix portrait missing in [message] with empty image= key
...
This is mostly important for use of the MESSAGE macro. Use image=none
if no image/portrait is supposed to be shown.
2016-03-19 14:25:28 -07:00
Celtic Minstrel
2e6ad2bee3
Add wesnoth.select_unit(), deprecate wesnoth.select_hex()
...
wesnoth.select_unit() is also callable as u:select() where u is a unit
2016-03-16 12:51:31 -04:00
Charles Dang
b512ad2143
Make [message] use wesnoth.highlight_hex()
2016-03-14 09:42:04 +11:00
ln-zookeeper
93a7f5e599
Fixed the last character of [objectives] note= getting eaten
2016-02-14 02:12:01 +02:00
Celtic Minstrel
1873b38243
Demote [option] deprecated message even further
2016-02-13 18:42:02 -05:00
Celtic Minstrel
d28365730b
Demote [option] deprecated message to log
2016-02-13 18:23:07 -05:00
gfgtdf
5caa9dd95b
cleanup wml_actions.store_items
2016-02-03 22:58:23 +01:00
gfgtdf
08236f8953
added name= attribute to [item]
...
name= has no effect but can be used to delete the item. I also changed
[item] to automatically create an id (in case no id was given) and
return that (only usable if called from lua).
I used the id= field from overlay class for this, it was previously only
used by the editor. Not sure if it is a good idea to reuse the id field.
2016-01-31 02:25:46 +01:00
Celtic Minstrel
4d2e4e2dbc
Don't needlessly preparse [message][command]
...
Fixes bug #24288
2016-01-08 23:14:54 -05:00
Celtic Minstrel
129418e2f9
Outline the speaker's hex in [message]
...
Unfortunately, this also highlights the speaker's reach.
2016-01-02 22:20:36 -05:00
Celtic Minstrel
2e293fb61d
Apply TC to unit sprites in [message]
2016-01-02 20:36:29 -05:00
Celtic Minstrel
fa9a394987
Deselect speaker after [message]
2016-01-02 20:36:27 -05:00
gfgtdf
59233ce903
attempt to fix bug in [message]
...
previously this bug http://i.imgur.com/9B7bquA.png happend in LoW scenario3.
2015-11-27 18:13:07 +01:00
Celtic Minstrel
8a7f71578d
Add (male|female)_message to [message]
2015-10-06 15:03:55 -04:00
Celtic Minstrel
74152fc2cb
Fix [object] without a filter
2015-10-01 16:13:19 -04:00
Celtic Minstrel
114b31c90c
New syntax for [message][option]message= similar to new [campaign][difficulty]
2015-09-30 02:01:03 -04:00
CelticMinstrel
f07e463882
Merge pull request #493 from CelticMinstrel/foreach
...
Enhanced looping tags
2015-09-23 00:50:30 -04:00
Celtic Minstrel
d5eea2abbf
Fix [show_if] in [message][option]
2015-09-22 16:16:08 -04:00
gfgtdf
58512935d4
add [message] wait_description=
...
the description provided in wait_description is used when other players
wait for this [message] input.
2015-09-21 15:50:14 +02:00
gfgtdf
4c3e00b3bb
readd side_for parameter for [message] with input
...
this was lost when porting the code to lua.
2015-09-21 15:46:00 +02:00
Charles Dang
acdc67fe56
[object] don't show unit reach when highlighting unit
2015-09-21 10:47:21 +11:00
Charles Dang
00d96b3016
Fixed a variable typo pointed out by Elvish_Hunter
2015-09-20 23:49:06 +11:00
Celtic Minstrel
aec99429c4
Merge branch 'break-continue' into foreach
2015-09-20 00:48:39 -04:00