Dmitry Kovalenko
8d65c3b7f7
Added functionality to the [add_ai_behavior] tag.
...
Not fully working at the moment, but is usable. The usage syntax will
most probably remain, but the internals will be modified.
2011-06-30 14:14:46 +00:00
Anonymissimus
0832173ddb
made scenario objectives work even if [objective]description= is empty
2011-06-13 15:58:48 +00:00
Anonymissimus
955ebd0eea
removed unused parameter i from get_side_count
2011-05-18 23:05:51 +00:00
Anonymissimus
242ecb7848
fixed [select_unit] ingoring highlight=false parameter
2011-05-18 19:39:44 +00:00
Anonymissimus
495325d5af
added attribute "side" in array created by store_side
2011-05-17 15:56:07 +00:00
Anonymissimus
12093d8784
moved [store_side] to lua; added SSF support
...
an array is created is several sides match
no backwardscompat-hack or deprecation needed since $var. ... is the
same as $var[0]. ... ,
clearing a container variable is the same as if it was an array and
side=1 automatically matches first for an empty filter :)
2011-05-17 13:27:13 +00:00
Anonymissimus
c1d8858c90
modified iterator function helper.get_sides...
...
...to return wesnoth.sides[side_number], side_number
TBH, I dont't fully understand the syntax, especially the one before
this, and it seems silene did experiment with it too...but this works
now at least.
2011-05-17 13:26:58 +00:00
Anonymissimus
4d03cdb875
made it so that the new tags allow-, disallow- and...
...
...set_extra_recruit take a extra_recruit= key holding the types and
an inline SUF
2011-05-15 16:42:44 +00:00
Anonymissimus
097090646d
reverted [set_recruit]recruit= -> [set_recruit]type= change
...
2011-05-13T21:29:58Z!anonymissimus@arcor.de
2011-05-13T21:30:14Z!anonymissimus@arcor.de
2011-05-13T22:28:06Z!anonymissimus@arcor.de
2011-05-14 00:06:04 +00:00
Anonymissimus
2c83b81274
corrected tag names in error messages
2011-05-13 21:30:31 +00:00
Anonymissimus
8f020a7f3c
same for set_extra_recruit
2011-05-13 21:30:14 +00:00
Anonymissimus
f8f4c547d4
deprecated [set_recruit]recruit= in favor of type=
...
(how annoying this is to write type= as in allow_* and disallow_*, to
read the wiki and then see it's recruit=...)
2011-05-13 21:29:58 +00:00
Anonymissimus
cba9b17a45
renamed side_number in some recently modified tags...
...
...since it is not neccessarily the same as the side_number
2011-05-13 21:29:42 +00:00
Anonymissimus
da3ae555d6
removed unused local function get_team
...
All of the side-taking lua tags have now a SSF, except for
capture_village for which I yet don't have a good idea how to deal
with.
2011-05-13 16:58:36 +00:00
Anonymissimus
f6e09f4f72
added SSF to [store_gold]
2011-05-13 16:58:18 +00:00
Fabian Müller
a48e0dfda1
Corrected Indentation.
2011-05-13 16:16:37 +00:00
Fabian Müller
cf47db9470
Ported the [allow_recruit] tag to lua and removed the c++ implementation.
...
Create an accessor for the help systems known units list for the lua
coder. (used by allow_recruit)
Added an accessor for the new unit attribute "extra_recruit" for the lua coder.
Implemented [allow_extra_recruit], [dissallow_extra_recruit] and
[set_extra_recruit] by lua defined wml tags.
AI awareness is still to be done, the code locations are marked TODO
in unit.cpp.
2011-05-13 11:23:22 +00:00
Anonymissimus
923ae89cce
Converted [chat] to use new side filter syntax.
...
For this one it's easy since the default was already "all sides".
Adds support for inline SSF.
2011-05-13 00:54:54 +00:00
Anonymissimus
5207f3cb8a
deprecated side= empty in disallow_recruit,
...
...allow_recruit and set_recruit this way
The [filter_side] tag should never have been added to allow_recruit
and I included disallow- and set_recruit only since allow_recruit was
already changed. These tags will be much nicer with an inline ssf. I'm
pretending now that [filter_side] was never added and hope nobody uses
it until the next release...the whole thing isn't yet in the changelog
and not fully in the wiki anyway...
2011-05-11 20:45:59 +00:00
Anonymissimus
703ec0ff99
introduced parameter in get_sides_set...
...
...to deprecate side-taking wml action tags with message "empty side=
is deprecated" with the goal of an inline ssf, which can only be added
support for once the deprecation period is over
2011-05-11 20:45:08 +00:00
Iurii Chernyi
aa85637df5
commit second part of patch #2637 by anonymissimus
...
unified style of side= and [filter_side] for lua wml tags]
2011-05-08 11:44:30 +00:00
Iurii Chernyi
7c10a0d8bd
partial revert of 2011-03-07T23:51:15Z!Majora700@gmail.com: if side= is empty in [gold],
...
...treat it as side=1
2011-03-27 10:57:59 +00:00
Anonymissimus
f4ba15b923
[mofify_unit]: Disallow type= to be set only at the toplevel
...
the key could appear in [variables] and is valid there.
2011-03-16 18:04:38 +00:00
Anonymissimus
a37e11c976
Optimization of previous commit.
2011-03-16 00:56:36 +00:00
Anonymissimus
eef4235f55
Made modify_unit substitute variables as late as possible...
...
...and provide reference to the unit being currently modified via
$this_unit.
2011-03-16 00:41:29 +00:00
Steven Panek
0e9a0cf325
Applied patch #1883 with slight modifications.
2011-03-08 00:22:02 +00:00
Anonymissimus
461c44efbc
Renamed ignore_passability=...
...
...in [teleport], [move_unit] and [unstore_unit] to check_passability=
to get rid of the confusing negation as long as they're not used
yet. Adjusted default values accordingly. Breaks backwards
compatibility in case of [teleport], there are however no usages of
the key in mainline wml.
2011-02-27 17:56:05 +00:00
Anonymissimus
e07a429ec0
Introduced [move_unit]ignore_passability=
...
(default no, previously it was always no/non-existant) key to allow
disabling the check for suitable terrain.
2011-02-27 15:29:11 +00:00
Anonymissimus
6ce2f4a06a
Introduced a minimum search radius for pathfind::find_vacant_tile...
...
...with a pass_check. (fix for bug #17769 )
2011-02-26 21:48:59 +00:00
Anonymissimus
e9c6e9b2fa
add [transform_unit] tag from wlp to core
...
first version
2011-02-25 18:58:39 +00:00
Derek Hoagland
24594e5765
Made [chat] no longer look up variables that match speaker.
...
It's trivial to make speaker=$unit.name instead of speaker=unit. The
previous implemention prevented users from using the string "unit" as
a speaker name.
2010-12-31 22:57:56 +00:00
Guillaume Melquiond
58354874a4
Improved [command] tag so that it can cope with WML...
...
...from [insert_tag] containing code that is either self-modified or
modified by its siblings.
2010-12-28 15:09:39 +00:00
Anonymissimus
53d3f7f49f
better code logic for previous commit
2010-12-28 02:01:24 +00:00
Anonymissimus
9301736078
made modify_unit handle the case type=""...
...
...(old behavior of ADVANCE_UNIT macro - advancing to the units'
advances_to= when no target type given)
http://forums.wesnoth.org/viewtopic.php?f=21&t=32555&p=471573#p471573
2010-12-28 01:37:50 +00:00
Guillaume Melquiond
bec8a218da
Preserved item orders at load and save time. (Fix for bug #16771.)
2010-12-24 10:00:20 +00:00
Anonymissimus
24a8edb7bd
replaced a wesnoth.get_side -> wesnoth.sides
2010-12-19 20:34:47 +00:00
Anonymissimus
d44d619532
fixed an optimization condition in [store_unit]
2010-12-17 22:19:52 +00:00
Anonymissimus
7a73632541
Fixed [store_unit]mode=replace clearing the variable...
...
...even if no units are found. Array entries are cleared as far as
neccessary now (if the array was longer those entries remain).
2010-12-17 22:12:01 +00:00
Anonymissimus
e1828a43f0
allow comma-separated list for side= in [disallow_recruit]...
...
...and [set_recruit] (FR bug #17266 ) (the three should behave
analogically...)
2010-12-17 19:42:07 +00:00
Anonymissimus
89ca6db076
new action tag [harm_unit] (patch #2230 by Elvish_Hunter)
2010-12-14 23:50:56 +00:00
Anonymissimus
28768c71ef
better error handling in [move_unit]...
...
...if invalid coordinates are passed (bug #17087 )
2010-11-15 16:57:55 +00:00
Anonymissimus
1838992e5d
extended [petrify] and [unpetrify] to also work on recall list units
2010-11-14 12:44:24 +00:00
Anonymissimus
8c3884cbca
Created tag [petrify] (bug #17077 ).
...
Moved [unpetrify] to lua. Syntax changed from [unpetrify][filter]<SUF>
to [unpetrify]<SUF>. No references in mainline data/ that need to be
updated. Actually, most or all have been using the tag incorrectly,
but worked since [unpetrify] without filter tag was the same as with
an empty filter tag.
2010-11-14 11:52:24 +00:00
Lari Nieminen
02e804a6db
Added a [floating_text] tag so text can be floated without unstoring a unit.
2010-11-14 09:55:42 +00:00
Lari Nieminen
a97209abc3
Applied patch #2201 : show_turn_counter for win conditions.
2010-11-13 21:43:43 +00:00
Guillaume Melquiond
bd24521d56
Modified get_sides so that it returns the actual side number. Renamed it.
2010-11-07 08:22:53 +00:00
Iurii Chernyi
c30997182e
standard side filter
2010-11-06 23:43:53 +00:00
Anonymissimus
3b4ac4ef07
generous error handling in [scroll_to]
2010-11-03 17:57:01 +00:00
Anonymissimus
d1c87949ed
Improved error handling in [sound] a bit.
2010-11-01 22:29:06 +00:00
Guillaume Melquiond
33db0a937e
Added a public interface for functions handling WML tile overlays.
2010-11-01 18:32:50 +00:00