Search results

  • ...ys and tags or might contain some deprecated syntax. If you find that this reference doesn't give you the answer to how to implement some feature in WML, the mo *** [[LuaWML]] how to code actions with the Lua language (BfW 1.14 and earlier)
    7 KB (1,053 words) - 02:47, 30 July 2024
  • ...[[#location_set.of_wml_var]]. They are provided by the ''lua/location_set.lua'' file. All the other functions are methods from the class and they are ava local location_set = wesnoth.require "lua/location_set.lua"
    7 KB (1,100 words) - 13:34, 12 February 2021
  • ...accessed by using the usual variable syntax: <syntaxhighlight inline lang='lua'>unit.variables["a.b.c[6].d"]</syntaxhighlight> ...owever, can be modified by the user, the engine, WML, independently of the Lua code. In particular, if a unit is killed, any further use of the proxy unit
    26 KB (3,965 words) - 20:53, 5 June 2021
  • ** '''Note''': unlike most other Wesnoth Lua functions, ignore_units defaults to true. [[Category: Lua Reference]]
    9 KB (1,522 words) - 13:32, 12 February 2021
  • [[Category: Lua Reference]]
    3 KB (395 words) - 21:05, 17 June 2021
  • ...e your knowledge outside Wesnoth. You've probably heard about c++, python, lua or any other programming language. Just like them, WML has some common feat *[https://www.wesnoth.org/macro-reference.html Macro reference]
    12 KB (1,589 words) - 08:10, 24 August 2021
  • Usually the number of sides in a scenario is fixed. However, the Lua function [[LuaAPI/wesnoth/sides#wesnoth.sides.create|wesnoth.sides.create]] ...lways the player name (mp server nick) it impossible to change it with wml/lua. {{DevFeature1.13|5}} You can use ''side_name'' instead to specify the name
    13 KB (2,188 words) - 23:08, 26 May 2024
  • <syntaxhighlight lang='lua'> ...g by resting. It does ''not'' prevent the unit from being healed by WML or Lua code.
    23 KB (3,684 words) - 16:04, 25 July 2024
  • <syntaxhighlight lang=lua> <syntaxhighlight lang=lua>
    6 KB (947 words) - 18:05, 18 April 2024
  • ...irely to achieve the same effect (on previous versions this will crash the Lua engine). ...aigns that you can make use of. You can find [http://www.wesnoth.org/macro-reference.xhtml#file:items.cfg a list of them] if you look into the items.cfg file in
    46 KB (7,231 words) - 13:40, 10 July 2024
  • ...tions for [[LuaAI#Dynamic_Lua_Aspects|setting up aspects dynamically using Lua]]. ...on of the more complex (and arguably more useful) application of a dynamic Lua ''advancements'' aspect, as described [[LuaAI#The_advancements_Aspect|here]
    35 KB (5,668 words) - 06:38, 21 October 2024
  • ..._id''': This key sets a string as a way to mark the hex or hexes for later reference. It is very similar to the leader starting position, and can also be set t ...to a time_area. Optional, unless you want to remove the time_area later or reference it from a location filter elsewhere. Can be a comma-separated list when rem
    61 KB (9,913 words) - 18:47, 4 September 2024
  • ...erators, '''default''', '''cave''' (cave is removed in wesnoth 1.13.6), '''lua''' {{DevFeature1.13|0}} ===The lua generator===
    17 KB (2,666 words) - 18:04, 26 July 2022
  • ...ortcut for simple variable creation and the [https://www.wesnoth.org/macro-reference.html#VARIABLE_OP VARIABLE_OP] macro is a quick syntactic shortcut for perfo ...one container at an array index. The macro [https://www.wesnoth.org/macro-reference.html#CLEAR_VARIABLE CLEAR_VARIABLE] is a shortcut for this tag.
    37 KB (5,928 words) - 17:55, 29 October 2024
  • ..."my_filter_functions.goto" will correctly use the function which in actual Lua code would need to be referenced as <code>my_filter_functions["goto"]</code [[Category: WML Reference]]
    13 KB (2,016 words) - 17:10, 21 September 2024
  • ...used either as a set or a map). It can be loaded via <syntaxhighlight lang=lua inline>local location_set = wesnoth.require "location_set"</syntaxhighlight Converts a table of pairs (as <syntaxhighlight lang=lua inline>{ {1,2}, {7,8} }</syntaxhighlight>) into a location set. The first f
    11 KB (1,650 words) - 17:56, 18 April 2024
  • ...lored unit sprites without needing to launch the game with specific WML or Lua edits. [[Category: WML Reference]]
    13 KB (1,973 words) - 08:08, 19 April 2024
  • ...|WML events]] or from [[LuaAPI/wesnoth/units#wesnoth.units.create_animator|Lua]], allowing custom animations. ...''value_second='', and ''hits='' values are all set from the WML event or Lua animation call.
    41 KB (6,114 words) - 16:53, 11 July 2024
  • ** '''code''' the lua code that is executed. ...mmand]'''}}: {{DevFeature1.13|12}} Executes a custom command registered by Lua code
    4 KB (700 words) - 05:41, 27 February 2024
  • * Get a nice reference in my CV. * Lua (used in combination with WML to create scenarios) ''yes''
    14 KB (2,376 words) - 12:53, 6 July 2014

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)