Search results

  • {{WML Tags}} ...ndled by a preprocessor. Implementation-wise, WML files are handled mainly by the ''config'' class (and ''simple_wml'' in [[wesnothd]]).
    7 KB (1,041 words) - 14:19, 27 April 2024
  • {{WML Tags}} you don't reduce the signal-to-noise ratio on the WML pages
    7 KB (1,069 words) - 01:47, 25 February 2024
  • ...f the hex is occupied by another unit. In general, note that moving a unit by changing the proxy unit's coordinates does not work if the goal hex is occu ...med fields are proxied. {{DevFeature1.13|2}} subcontainers can be accessed by using the usual variable syntax: <syntaxhighlight inline lang='lua'>unit.va
    26 KB (3,965 words) - 20:53, 5 June 2021
  • {{WML Tags}} The multi-hex tiling system adds a new top-level element to WML, '''[terrain_graphics]'''.
    9 KB (1,402 words) - 13:38, 10 May 2024
  • {{WML Tags}} ...ed in this context. Note, however, that messages produced by the first two tags will not appear in the game interface until the actual game map appears.
    5 KB (852 words) - 04:37, 6 March 2024
  • {{WML Tags}} ...yer]''', '''[test]''', and '''[scenario]''' are [[AddonsWML|addon module]] tags that are all formatted the same way.
    13 KB (2,097 words) - 21:34, 10 December 2023
  • {{WML Tags}} ...fers to a single player in the Wesnoth turn order, which can be controlled by either a human or an AI. Every [[ScenarioWML|scenario]] must have at least
    13 KB (2,170 words) - 05:23, 27 February 2024
  • {{WML Tags}} This contains keys and tags which describe the unit's [[#Unit Data|persistent data]], as well as certai
    22 KB (3,654 words) - 13:39, 10 May 2024
  • ...Action WML tags. All examples on this page will assume it has been loaded by: local utils = wesnoth.require "wml-utils"
    6 KB (947 words) - 18:05, 18 April 2024
  • {{WML Tags}} ...ML]]. In addition to the animation tags described there, the following key/tags are recognized:
    23 KB (3,689 words) - 01:07, 25 February 2024
  • {{WML Tags}} ...emeSystem|[resolution]]]''', but each theme can have multiple [resolution] tags.
    9 KB (1,463 words) - 23:21, 11 April 2023
  • {{WML Tags}} instead, they show something to the player. The main interface tags
    46 KB (7,208 words) - 23:30, 16 April 2024
  • {{WML Tags}} == Customizing the Default AI Using WML ==
    35 KB (5,668 words) - 01:32, 25 February 2024
  • {{WML Tags}} ...so it is referred to as "self" in the ability. A leadership ability works by temporarily granting a weapon special to either the attacker or the defende
    24 KB (3,749 words) - 16:38, 25 April 2024
  • {{WML Tags}} The following tags are actions:
    61 KB (9,881 words) - 03:40, 22 February 2024
  • {{WML Tags}} ...ct] is used to describe one modification to a unit. Any number of [effect] tags can be used to describe a complete modification.
    23 KB (3,461 words) - 00:56, 1 May 2024
  • {{WML Tags}} ...oth, including scenarios, units, savefiles, and the user interface layout. WML files are simple, human-readable text files, usually with the .cfg extensio
    10 KB (1,669 words) - 03:36, 23 February 2024
  • ...restart event as much as it likes, using randomness, but the Map Generator WML has the following advantages: ...d with options, and these are much better developed than any existing pure WML options.
    17 KB (2,666 words) - 18:04, 26 July 2022
  • [[Category:SoC_Ideas_SpriteSheets2014]] ===WML===
    15 KB (2,499 words) - 01:27, 23 May 2014
  • {{WML Tags}} == WML Format ==
    4 KB (663 words) - 00:01, 25 July 2023
  • {{WML Tags}} ...ocessor''' allows the inclusion of more files. Whenever a WML file is read by Wesnoth, it is passed through the preprocessor.
    22 KB (3,254 words) - 03:31, 16 January 2024
  • {{WML Tags}} Part of [[ActionWML]], Internal actions are actions that WML uses internally that do not directly affect game play (or, at least, are no
    37 KB (5,920 words) - 05:49, 27 February 2024
  • {{WML Tags}} == Filtering in WML ==
    9 KB (1,508 words) - 10:39, 11 November 2023
  • {{WML Tags}} ...ill] and [have_unit]. See [[Special:WhatLinksHere/StandardUnitFilter]] for tags which can contain a StandardUnitFilter.
    13 KB (1,965 words) - 15:41, 26 April 2024
  • {{WML Tags}} ...ew recolored unit sprites without needing to launch the game with specific WML or Lua edits.
    13 KB (1,973 words) - 08:08, 19 April 2024
  • This page deals with how to write the [[AnimationWML|animation WML]] when you got the frames drawn and ready as well as general guidelines for ...you can with little trouble make that attack smoother, by having the attack frame kick in only at about halfway into the attack and a
    7 KB (1,093 words) - 06:40, 18 October 2014
  • {{WML Tags}} This tag is a top level WML tag which can only be used once because
    6 KB (989 words) - 06:15, 31 January 2023
  • Inside the campaign folder, each campaign must contain a WML file (usually named _main.cfg) which contains a [campaign] tag. In order fo The first line of the campaign file is the [textdomain] WML tag, which specifies where the game should look for translations to the str
    9 KB (1,307 words) - 20:00, 25 December 2018
  • This page describes the WML commands exchanged between the add-ons server (<b>[[campaignd]]</b>) and cl For historical reasons, both the server software's name and the WML tags which are part of its communication protocol make exclusive reference to "c
    12 KB (1,849 words) - 15:14, 7 April 2023
  • {{WML Tags}} The '''[terrain_type]''' tag describes a terrain in WML.
    5 KB (837 words) - 13:37, 10 May 2024
  • {{WML Tags}} ...from one or two terrain codes of 2 to 4 characters (bytes) each, separated by ^.
    6 KB (920 words) - 05:30, 29 April 2024
  • In this tutorial we will dig somewhat deeper into the secrets of WML and scenario building: events, explaining the use of some special attribute by adding the attribute '''first_time_only=no''' in the event.
    6 KB (924 words) - 22:05, 10 October 2018
  • See [[InternalActionsWML]] for a complete list of all tags and values. In what follows, the basics of variable creation and manipulati Most variables provided by the engine are associated with a certain tag and can thus only be used insi
    7 KB (1,140 words) - 08:24, 23 April 2021
  • The purpose of this page is to list conventions of WML -- that is, things that make WML more readable and flexible.
    4 KB (735 words) - 08:16, 24 August 2021
  • {{WML Tags}} The '''[units]''' tag is a [[ReferenceWML#WML_toplevel_tags|top-level WML tag]] which defines the unit types that will be available in the game.
    15 KB (2,333 words) - 13:43, 10 May 2024
  • {{WML Tags}} * Defining animations with WML
    41 KB (6,114 words) - 01:16, 19 April 2024
  • {{WML Tags}} ...opics should not be sorted and will be followed by generated topics sorted by the generator. The default is '''generated'''.
    7 KB (1,043 words) - 05:57, 27 February 2024
  • {{WML Tags}} The following tags are recognized for dependent=no(default):
    4 KB (700 words) - 05:41, 27 February 2024
  • {{WML Tags}} The time of day influences damage done by lawful and chaotic units; this makes timing of your attack important.
    4 KB (564 words) - 04:01, 24 November 2023
  • {{WML Tags}} ...://r.wesnoth.org/t27671 Colosseum] has a shop that's intended to be usable by other add-ons. Basic usage is given in the ''readme'' file in the add-on.
    12 KB (872 words) - 22:05, 30 June 2019
  • "Debugging" means to fix by removing errors. Here are some ideas to help you when you are building a ca ...e. By this way you save time on rebooting game each time you change map or WML code.
    2 KB (352 words) - 03:30, 23 March 2023
  • {{WML Tags}} ...]] needs to be included in a [filter_location] tag. There are however many tags which accept the [[StandardLocationFilter]] directly as an argument such as
    13 KB (2,092 words) - 14:57, 26 February 2024
  • {{WML Tags}} In the multiplayer game creation screen, an era is chosen by the host by the 'Era' option button.
    4 KB (671 words) - 14:20, 1 July 2023
  • {{WML Tags}} Tags describe the music track:
    3 KB (569 words) - 12:19, 18 April 2019
  • {{WML Tags}} Not all tags of this section are explained here.
    6 KB (928 words) - 09:13, 27 February 2024
  • {{WML Tags}} * '''damage_inflicted''': total damage inflicted by units on team
    3 KB (428 words) - 15:09, 9 November 2018
  • {{WML Tags}} ...e] tag associate strings with certain keywords used by the engine and some WML, such as attack types and ranges.
    3 KB (405 words) - 22:23, 15 October 2021
  • {{WML Tags}} ...e the actual file on disk, the game goes through all defined [binary_path] tags in reverse order of definition. For each binary path, it checks in the foll
    3 KB (584 words) - 14:35, 23 July 2023
  • == WML Reference == the following child tags:
    10 KB (1,505 words) - 20:52, 29 December 2023
  • ...+ or Lua). The C++ or Lua code is also reponsible for actually loading the WML and showing the widget on the screen. '''Note:''' It may be slightly confusing, but a "window definition", defined by the '''[window_definition]''' tag, is also a type of "widget definition", a
    8 KB (1,233 words) - 13:38, 3 May 2024
  • ...not here to double the feature request database, and should only be filled by people that know the code well enough to judge the difficulty of a given ta ...would be helpful for someone who maintains a map pool containing maps made by others, also for someone who wants to browse a repository and examine balan
    10 KB (1,642 words) - 17:23, 29 April 2024
  • ...tended to help authors maintain campaigns, faction & unit packs, and other WML resources. These ...ity-checking WML syntax and porting your old WML to the current version of WML.
    29 KB (4,777 words) - 09:01, 30 December 2023
  • This page describes the [[WML]] used to communicate with the multiplayer server for Wesnoth, [[wesnothd]] ...find information about what data the (unzipped) packages contain. Unpacked WML uses utf-8 charset.
    10 KB (1,604 words) - 17:53, 1 March 2024
  • This page describes tags and syntax used for enabling translation in your user made campaign. ...US-ASCII 0x5E, in any text string which is translatable — i.e. processed by the functions of src/tstring.cpp — causes the circumflex and any text pre
    3 KB (399 words) - 03:03, 29 December 2017
  • ...by the CAs of the RCA AI. They can also be called and taken into account by custom CAs, but that is not necessarily always the case. For example, some ...f the aspect functions can be defined and/or customized using both [[AiWML|WML]] or [[LuaAI#Dynamic_Lua_Aspects|Lua]].
    39 KB (6,494 words) - 23:25, 9 April 2024
  • For translation, all C++, WML and Lua files should be in UTF-8. As noted in the [[Typography_Style_Guide] ...tains any placeholders, '''don't''' use <code>snprintf</code>. Instead use WML style variables, put their values in a <syntaxhighlight lang=c++ inline>uti
    19 KB (2,953 words) - 13:45, 29 April 2024
  • You can contact me by mail or GTalk using lao.geek(at)gmail.com . ...update the code to improve inter-operability with external tools (such as WML tools and WesCamp) and add some social content.
    10 KB (1,659 words) - 03:12, 7 May 2023
  • [[Category:Summer of Code]] ...ere's a lot about handling WML macros in the editor, which 1.15.4 answered by allowing a separate .cfg file for the hand-edited parts to load the editor-
    21 KB (3,707 words) - 10:13, 13 December 2022
  • ...inaldistance.berkeley.edu) - a program for generating a student's schedule by iterating through all possible placements of time blocks and selecting the ...nical details of implementing the campaign/scenario editor (language, GUI, WML-ness of frontend)
    13 KB (2,332 words) - 10:31, 13 December 2022
  • {{WML Tags}} This tag is a subtag of the [scenario], [unit_type] and [era] tags which is used to describe a set of [[ActionWML|actions]] which trigger at a
    44 KB (6,986 words) - 17:13, 24 March 2024
  • (WML) is used to code almost everything in Wesnoth, including scenarios, validation and much more when editing WML.
    14 KB (2,067 words) - 03:24, 7 May 2023
  • ...t. And you might be in a bad need to do that. This isn't a tricky of using WML, it is actually doing what the developers didn't plan to support. I have mo ...ding of variables and variable arrays in WML (not all of them are required by each of these). It is also assuming that you've read Dunno's article about
    19 KB (2,806 words) - 02:13, 14 February 2023
  • {{WML Tags}} ...oth's Map Editor allows configuration of certain aspects via the following WML. All save <b>[brush]</b> are free to be used be UMC content creators. All
    6 KB (837 words) - 15:30, 9 November 2022
  • ...done prior to "diff" the new version against the old one. This may be done by executing the following: ...id= keys in [side] and [unit] tags and extracts the value then sorts them by number of occurrences.)
    10 KB (1,685 words) - 10:01, 2 April 2021
  • ...ive the <code>id</code>'s a number). This name is also referenced in other tags and files, ''e.g.,'' inside a <code>[campaign]</code> tag using the <code>f ...ed by Wesnoth's [[PreprocessorRef|preprocesser]]. Macros are essentially [[WML]] shortcuts. They allow you to define certain pieces of code which can be r
    16 KB (2,648 words) - 22:06, 10 October 2018
  • {{WML Tags}} ...ctions]] act as gatekeepers, encapsulating other actions with [[#Condition Tags|conditions]] which must be met before an action can take place. These condi
    20 KB (3,075 words) - 03:38, 22 February 2024
  • {{WML Tags}} ...o allowed in [era], [modification], [campaign] and [resource]. These [lua] tags are then copied into the [scenario]/[multiplayer] when it is played, just l
    22 KB (3,191 words) - 02:14, 25 April 2024
  • '''Step-by-step tutorial - making a campaign using WML.''' You can access the next part by following the link at the bottom, but here's a list for convenience:
    16 KB (2,681 words) - 09:53, 18 January 2022
  • ...able of event names as individual strings (which can also possibly contain WML variables). Default is usually an empty string, but note that either a name ...l automatically remove this event. Default false. Note that this does not, by itself, mean the event will be triggered when the menu item is selected. Th
    16 KB (2,629 words) - 14:14, 20 April 2024
  • {{WML Tags}} ...e end of campaigns and by the title screen's Credits button. The top-level tags that can add a section to the credits are '''[[CampaignWML|[campaign]]]'''
    3 KB (436 words) - 14:03, 10 May 2021
  • <syntaxhighlight lang='wml'> <syntaxhighlight lang='wml'>
    17 KB (2,693 words) - 15:59, 13 July 2023
  • |category=Summer of Code 2010 Student Page&SoC Ideas Eclipse Plugin == WML ==
    4 KB (600 words) - 15:51, 30 June 2020
  • ...me of the action. Argument 2 is the WML table describing the action. Note: WML variables are substituted. This is not a function but an associative table indexed by WML action names. It contains functions performing the corresponding actions. U
    14 KB (2,207 words) - 13:26, 12 February 2021
  • The chat line header is "<Lua>" by default, but it can be changed by passing a string before the message. ...players cannot scroll the gamemap view as long as it is locked, but Lua or WML actions such as wesnoth.scroll_to_tile still can; the locked/unlocked state
    32 KB (4,945 words) - 16:24, 29 April 2024
  • [[Category:SoC Ideas Eclipse Plugin]] ...chema.cfg): it has to be converted into a .xtext format and be put in the "Wml.xtext" file, which will compile the xtext editor. So, each time when we sta
    29 KB (4,996 words) - 06:48, 19 April 2023
  • -- replace all grass terrains by roads Possible filter tags for this function are: terrain, all, any, none, notall, adjacent, find_in,
    15 KB (2,275 words) - 17:53, 18 April 2024
  • ...in the section of the point release that you intend to have it implemented by, as well as your forum username in parenthesis after the feature descriptio ...rd deadline, which ''hopefully'' is not an issue, is to have 1.18 released by February 2024. This will allow 1.18 to be in the Ubuntu 24.04 LTS release'
    6 KB (701 words) - 16:40, 24 November 2023
  • ...coding guidelines, see the [[CodingStandards]]. For WML coding, see the [[WML Style Guide]]. For a general writing style guide for Wesnoth campaigns, see and the WML at the start of the scenario file might be
    21 KB (3,291 words) - 06:04, 14 June 2023
  • Wesnoth uses a custom markup language called WML, which can be edited by hand (it's similar to xml) AI configuration can be written using WML.
    6 KB (941 words) - 16:22, 17 April 2023
  • {{WML Tags}} '''ActionWML''' is a summarizing term for all '''WML actions''' which can be used in events and some other places.
    2 KB (305 words) - 09:22, 5 December 2022
  • |category=Summer of Code 2011 Student Page&SoC Ideas Eclipse Plugin2011 ...tor component which provides a very good DSL framework to be used with the WML language.
    4 KB (562 words) - 04:11, 3 May 2023
  • ...bly notice and the (rather) [http://svn.gna.org/viewcvs/*checkout*/wesnoth/tags/1.9.3/changelog complete changelog] with (almost) all the details, which is ...bly notice and the (rather) [http://svn.gna.org/viewcvs/*checkout*/wesnoth/tags/1.9.2/changelog complete changelog] with (almost) all the details, which is
    19 KB (3,025 words) - 16:41, 26 January 2014
  • ** This can be done easily in WML by [[AiWML|setting aspects and goals]]. *'''self''': The engine data. By default, this replicates the ''self'' parameter from the old system for com
    32 KB (5,391 words) - 19:39, 15 July 2020
  • The <tt>wml</tt> module contains functions for working with WML tables. This module is available starting in 1.14.0. ...a table representing WML tags and values. For more detail on the format of WML tables, see [[LuaWML#Encoding_WML_objects_into_Lua_tables|LuaWML]].
    16 KB (2,332 words) - 17:56, 18 April 2024
  • ...sting default AI parameters (such as those described at [[AiWML]]) or with WML code. ...) via the [micro_ai] tag placed in an event, requiring only a few lines of WML code. {{DevFeature1.15|?}} Starting in 1.16 the [micro_ai] tag may also be
    115 KB (19,006 words) - 17:35, 16 August 2023
  • ...gners / add-on makers writing unsafe code. This page is about how to write WML that won't cause OOS. If you want to know what you should do if you get OOS ...r). All other information, specially [unit]s [terrain]s and toplevel [lua] tags are not transmitted to other players. Instead it is expected that the other
    14 KB (2,373 words) - 08:03, 19 April 2023
  • ...ion there (go to the 'Coders Corner' forum, we have a GCI thread there) or by sending us a personal message (PM). ...''WML''') and with the '''Lua''' programming language. If you do not know WML or Lua yet, but are familiar with coding in other languages, you can probab
    23 KB (3,948 words) - 03:24, 16 November 2022
  • {{Translations}}<div style="float:right">{{:WML for Complete Beginners}}</div> First things first; let's go over the ''syntax'' of WML.
    14 KB (2,433 words) - 19:35, 29 January 2023
  • {{Translations}}<div style="float:right">{{:WML for Complete Beginners}}</div> ...your campaign yet. But fear not, all you have to do is write some specific WML inside the "_main.cfg" file and the game will be able to find your campaign
    11 KB (1,732 words) - 19:52, 29 January 2023
  • {{Translations}}<div style="float:right">{{:WML for Complete Beginners}}</div> ==Interlude: Testing your WML==
    17 KB (2,325 words) - 20:35, 29 January 2023
  • {{Translations}}<div style="float:right">{{:WML for Complete Beginners}}</div> ...ow know how to create a simple campaign, and you know many of the features WML has to offer.
    1 KB (212 words) - 08:02, 19 April 2023
  • ...l <tt>...</tt> variable), and '''dofile''' returns all the values returned by the script. ...The module can either be a simple name or a file path similar to that used by '''wesnoth.dofile'''. In addition, the ''.lua'' extension will automaticall
    40 KB (6,092 words) - 18:12, 17 April 2024
  • ...mix of units on the map comes as close as possible to the mix represented by the scores. ...'' when ''A'' attacks (''A'' chooses weapon) plus the average damage dealt by ''A'' when ''B'' attacks (''B'' chooses weapon). ''damage_to_a'' is equival
    21 KB (3,118 words) - 05:25, 27 February 2024
  • == WML Filtering == Filters are a very important part of WML language, and a fairly complex too for various
    40 KB (6,054 words) - 14:13, 21 October 2022
  • '''Review by''' * [add your name here] '''Tags:''' * describe the add-on using a few keywords
    60 KB (10,139 words) - 10:41, 11 August 2015
  • {{WML Tags}} ...ning only a core does not need a _main.cfg, cores are loaded prior to that by looking for cores.cfg. To publish the add-on from within wesnoth a _main.cf
    3 KB (515 words) - 17:21, 4 March 2021
  • == WML Variables HowTo (or Descent into Darkness) == ...tandable by any beginner, but the last one most probably requires a good WML understanding.
    48 KB (6,497 words) - 12:57, 17 July 2019
  • [[Category:SoC_Ideas_Multiplayer_Data_Analysis]] ...feedback for content creators. Specifically, this project will add a means by which players can indicate who won, as well as parse the saved data and sto
    19 KB (3,076 words) - 16:48, 2 April 2014
  • <syntaxhighlight lang=wml> The [textdomain] WML tag specifies where the game should look for translations to the strings in
    6 KB (1,068 words) - 22:51, 8 November 2020
  • [[Category:SoC_Ideas_Unify_SP_and_MP_2014]] ...is project is to ensure that all user-made content works across game modes by
    17 KB (2,856 words) - 03:39, 4 April 2014
  • [[Category:SoC_Ideas_Your_Own_Ideas2014]] ...know about it and it is basically just a text editor adapted to work with WML. This project is to make a campaign wizard, incorporated into the game, tha
    14 KB (2,298 words) - 19:32, 14 April 2014
  • ...score. The RCA AI is highly configurable in WML. It can also be modified by removing default CAs or adding custom CAs. * [[AiWML]]: Customizing the RCA AI by setting AI parameters (aspects and goals)
    15 KB (2,475 words) - 00:47, 28 November 2022
  • ...table. Return values will be indicated by a right arrow (&rarr;) followed by a list of names in italics. The arrow will be omitted for a function that r .... When documenting userdata types, as well as some complex tables returned by API functions, the following syntax is used for member variables. The right
    12 KB (1,780 words) - 13:24, 29 April 2024
  • 首先让我们看看 WML 的''语法''。 对于不了解语言“语法”的朋友,可以把它看作是编写 WML 的规则。这个概念有些混乱,但是,无论您是否意识到,
    11 KB (1,130 words) - 03:59, 12 August 2017
  • [[Category:Validation]] {{WML Tags}}
    9 KB (1,575 words) - 06:16, 20 June 2021
  • This function returns the index of the selected item. If the user cancelled by clicking outside the menu's boundary, 0 is returned. Shows a message dialog, of the type used by the <tt>[message]</tt> ActionWML tag. Unlike the <tt>[message]</tt> tag, th
    11 KB (1,793 words) - 14:59, 27 April 2024
  • ...ter modifying the unit's experience directly. A similar function is called by Wesnoth internally after unit combat. The second argument is a boolean valu -- remove all the units from the recall list of side 1 and put them in a WML container
    16 KB (2,308 words) - 17:52, 18 April 2024
  • [[campaignd]] is the software used by Wesnoth.org to run the add-ons server since Wesnoth 1.0. Despite its name a ...page describes various aspects of the server's functionality. The server's WML protocol is described in [[CampaignServerWML]].
    10 KB (1,594 words) - 04:36, 17 March 2021
  • Auf dieser Seite wird erläutert, welche [[SyntaxWML|WML-Syntax]] innerhalb einer '''.cfg'''-Datei erforderlich ist, damit ein einze ...ein <code>[multiplayer]</code>-Tag anstelle eines <code>[scenario]</code>-Tags auf oberster Code-Ebene verwenden.
    6 KB (869 words) - 09:40, 22 February 2022
  • Some helper functions are provided by the '''lua/helper.lua''' library. They are stored inside a table that is re === WML variables ===
    16 KB (2,152 words) - 18:12, 1 July 2023
  • {{WML Tags}} The tags and macros on this page are for use in unit tests, they're defined in data/
    2 KB (306 words) - 17:35, 2 July 2023
  • The term [[StandardAbilityFilter]] means that the set of such keys and tags (see below) can appear at that point. Often a [[StandardAbilityFilter]] nee The following attributes and sub-tags are allowed:
    4 KB (661 words) - 10:41, 23 November 2023
  • this value to the caller. The return value can either be defined by the higher precedence as the one defined by the id. (Of course it's weird to
    23 KB (3,547 words) - 03:09, 7 May 2024
  • | tags | Tags for the add-on for searching in the add-ons manager.
    43 KB (6,159 words) - 17:55, 27 April 2024