Anonymissimus
e8f6531a86
Completely removed the old x,y=$x1,$y1 default in [remove_item],
...
since when running into this rare exception (if the SLF doesn't
matching anything) it could be hard to figure out what happens.
[remove_item] does nothing in this case now.
2011-09-01 19:06:56 +00:00
Anonymissimus
75bf37ed86
improved [store_items] to store only items on locs matching given SLF
2011-08-21 17:39:11 +00:00
Elvish_Hunter
9853a5d3f3
Added patch #2470
...
(support for harmer and xp calculation), with a few modifications.
2011-08-19 08:12:34 +00:00
Anonymissimus
fdb74894be
added new wml tag store_items
2011-08-17 18:38:07 +00:00
Elvish_Hunter
bb15de6c40
Added [primary_attack] support to [harm_unit]
2011-08-15 14:09:31 +00:00
Anonymissimus
e7688ed406
add SLF support to [event][remove_item]
2011-08-14 00:24:58 +00:00
Anonymissimus
38091cb48a
add SLF support to [event][item]
2011-08-14 00:24:42 +00:00
Anonymissimus
66e84f78ce
fixed error message
2011-08-14 00:24:26 +00:00
Anonymissimus
7ce40d876b
strip trailing whitespace
2011-08-14 00:24:08 +00:00
Elvish_Hunter
4d0e818dd5
[harm_unit] now always uses wesnoth.float_label to display the damage,
...
to avoid that an incorrect weapon filter may prevent displaying said damage
2011-08-12 10:08:26 +00:00
Dmitry Kovalenko
a293e91db3
Completed cleanup functionality(kind of hacky, might need refactoring). Also done some minor fixes
2011-07-08 09:40:08 +00:00
Dmitry Kovalenko
bab732a43e
Sticky candidate actions are constructed if sticky=yes specified
...
(Lua engine only). Also added missing unit coordinate parameters to
the config
2011-07-04 11:19:56 +00:00
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