Difference between revisions of "Template:Lua Functions"

From The Battle for Wesnoth Wiki
(Created page with "{|class="reference-sidebar" |- | wesnoth.dofile<br> wesnoth.require<br> LuaAPI/wesnoth#wesnoth.textdomai...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|class="reference-sidebar"
+
{| class="reference-sidebar"
 +
|
 +
<span class="editlink">&#91;[{{SERVER}}{{localurl:Template:Lua Functions|action=edit}} edit]&#93;</span>'''Lua Functions'''
 
|-
 
|-
|
+
|''wesnoth''
[[LuaAPI/wesnoth#wesnoth.dofile|wesnoth.dofile]]<br>
 
[[LuaAPI/wesnoth#wesnoth.require|wesnoth.require]]<br>
 
[[LuaAPI/wesnoth#wesnoth.textdomain|wesnoth.textdomain]]<br>
 
[[LuaAPI/wesnoth#wesnoth.log|wesnoth.log]]<br>
 
 
[[LuaAPI/wesnoth#wesnoth.as_text|wesnoth.as_text]]<br>
 
[[LuaAPI/wesnoth#wesnoth.as_text|wesnoth.as_text]]<br>
[[LuaAPI/wesnoth#wesnoth.simulate_combat|wesnoth.simulate_combat]]<br>
+
[[LuaAPI/wesnoth#wesnoth.colors|wesnoth.colors]]<br>
[[LuaAPI/wesnoth#wesnoth.name_generator|wesnoth.name_generator]]<br>
 
 
[[LuaAPI/wesnoth#wesnoth.compile_formula|wesnoth.compile_formula]]<br>
 
[[LuaAPI/wesnoth#wesnoth.compile_formula|wesnoth.compile_formula]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.current|wesnoth.current]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.current_version|wesnoth.current_version]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.custom_synced_commands|wesnoth.custom_synced_commands]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.deprecate_api|wesnoth.deprecate_api]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.deprecated_message|wesnoth.deprecated_message]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.dofile|wesnoth.dofile]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.effects|wesnoth.effects]]<br>
 
[[LuaAPI/wesnoth#wesnoth.eval_formula|wesnoth.eval_formula]]<br>
 
[[LuaAPI/wesnoth#wesnoth.eval_formula|wesnoth.eval_formula]]<br>
[[LuaAPI/wesnoth#wesnoth.version|wesnoth.version]]<br>
+
[[LuaAPI/wesnoth#wesnoth.game_config|wesnoth.game_config]]<br>
[[LuaAPI/wesnoth#wesnoth.current_version|wesnoth.current_version]]<br>
+
[[LuaAPI/wesnoth#wesnoth.get_language|wesnoth.get_language]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.log|wesnoth.log]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.micro_ais|wesnoth.micro_ais]]<br>
 
[[LuaAPI/wesnoth#wesnoth.ms_since_init|wesnoth.ms_since_init]]<br>
 
[[LuaAPI/wesnoth#wesnoth.ms_since_init|wesnoth.ms_since_init]]<br>
[[LuaAPI/wesnoth#wesnoth.deprecated_message|wesnoth.deprecated_message]]<br>
+
[[LuaAPI/wesnoth#wesnoth.name_generator|wesnoth.name_generator]]<br>
[[LuaAPI/wesnoth#wesnoth.deprecate_api|wesnoth.deprecate_api]]<br>
 
[[LuaAPI/wesnoth#wesnoth.type|wesnoth.type]]<br>
 
 
[[LuaAPI/wesnoth#wesnoth.named_tuple|wesnoth.named_tuple]]<br>
 
[[LuaAPI/wesnoth#wesnoth.named_tuple|wesnoth.named_tuple]]<br>
[[LuaAPI/wesnoth#wesnoth.get_language|wesnoth.get_language]]<br>
+
[[LuaAPI/wesnoth#wesnoth.persistent_tags|wesnoth.persistent_tags]]<br>
 
[[LuaAPI/wesnoth#wesnoth.print_attributes|wesnoth.print_attributes]]<br>
 
[[LuaAPI/wesnoth#wesnoth.print_attributes|wesnoth.print_attributes]]<br>
[[LuaAPI/wesnoth#wesnoth.persistent_tags|wesnoth.persistent_tags]]<br>
 
[[LuaAPI/wesnoth#wesnoth.wml_actions|wesnoth.wml_actions]]<br>
 
[[LuaAPI/wesnoth#wesnoth.wml_conditionals|wesnoth.wml_conditionals]]<br>
 
[[LuaAPI/wesnoth#wesnoth.effects|wesnoth.effects]]<br>
 
[[LuaAPI/wesnoth#wesnoth.micro_ais|wesnoth.micro_ais]]<br>
 
[[LuaAPI/wesnoth#wesnoth.custom_synced_commands|wesnoth.custom_synced_commands]]<br>
 
[[LuaAPI/wesnoth#wesnoth.colors|wesnoth.colors]]<br>
 
[[LuaAPI/wesnoth#wesnoth.current|wesnoth.current]]<br>
 
[[LuaAPI/wesnoth#wesnoth.game_config|wesnoth.game_config]]<br>
 
 
[[LuaAPI/wesnoth#wesnoth.races|wesnoth.races]]<br>
 
[[LuaAPI/wesnoth#wesnoth.races|wesnoth.races]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.require|wesnoth.require]]<br>
 
[[LuaAPI/wesnoth#wesnoth.scenario|wesnoth.scenario]]<br>
 
[[LuaAPI/wesnoth#wesnoth.scenario|wesnoth.scenario]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.simulate_combat|wesnoth.simulate_combat]]<br>
 
[[LuaAPI/wesnoth#wesnoth.terrain_types|wesnoth.terrain_types]]<br>
 
[[LuaAPI/wesnoth#wesnoth.terrain_types|wesnoth.terrain_types]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.textdomain|wesnoth.textdomain]]<br>
 +
[[LuaAPI/wesnoth#wesnoth.type|wesnoth.type]]<br>
 
[[LuaAPI/wesnoth#wesnoth.unit_types|wesnoth.unit_types]]<br>
 
[[LuaAPI/wesnoth#wesnoth.unit_types|wesnoth.unit_types]]<br>
[[LuaAPI/wesnoth#wesnoth.audio|wesnoth.audio]]<br>
+
[[LuaAPI/wesnoth#wesnoth.version|wesnoth.version]]<br>
[[LuaAPI/wesnoth#wesnoth.achievements|wesnoth.achievements]]<br>
+
[[LuaAPI/wesnoth#wesnoth.wml_actions|wesnoth.wml_actions]]<br>
[[LuaAPI/wesnoth#wesnoth.game_events|wesnoth.game_events]]<br>
+
[[LuaAPI/wesnoth#wesnoth.wml_conditionals|wesnoth.wml_conditionals]]<br>
[[LuaAPI/wesnoth#wesnoth.map|wesnoth.map]]<br>
+
|-
[[LuaAPI/wesnoth#wesnoth.interface|wesnoth.interface]]<br>
+
|''wesnoth.achievements''
[[LuaAPI/wesnoth#wesnoth.paths|wesnoth.paths]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.get|wesnoth.achievements.get]]<br>
[[LuaAPI/wesnoth#wesnoth.schedule|wesnoth.schedule]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.has|wesnoth.achievements.has]]<br>
[[LuaAPI/wesnoth#wesnoth.sides|wesnoth.sides]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.has_sub_achievement|wesnoth.achievements.has_sub_achievement]]<br>
[[LuaAPI/wesnoth#wesnoth.sync|wesnoth.sync]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.progress|wesnoth.achievements.progress]]<br>
[[LuaAPI/wesnoth#wesnoth.units|wesnoth.units]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.set|wesnoth.achievements.set]]<br>
[[LuaAPI/wesnoth/units#wesnoth.units.advance|wesnoth.units.advance]]<br>
+
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.set_sub_achievement|wesnoth.achievements.set_sub_achievement]]<br>
[[LuaAPI/wesnoth/units#wesnoth.units.clone|wesnoth.units.clone]]<br>
+
|-
[[LuaAPI/wesnoth/units#wesnoth.units.erase|wesnoth.units.erase]]<br>
+
|''wesnoth.audio''
[[LuaAPI/wesnoth/units#wesnoth.units.extract|wesnoth.units.extract]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.matches|wesnoth.units.matches]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.find_attack|wesnoth.units.find_attack]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.to_map|wesnoth.units.to_map]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.to_recall|wesnoth.units.to_recall]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.transform|wesnoth.units.transform]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.select|wesnoth.units.select]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.scroll_to|wesnoth.units.scroll_to]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.ability|wesnoth.units.ability]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.chance_to_be_hit|wesnoth.units.chance_to_be_hit]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.defense_on|wesnoth.units.defense_on]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.unit.resistance_against|wesnoth.unit.resistance_against]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.jamming_on|wesnoth.units.jamming_on]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.movement_on|wesnoth.units.movement_on]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.vision_on|wesnoth.units.vision_on]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.add_modification|wesnoth.units.add_modification]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.remove_modifications|wesnoth.units.remove_modifications]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.create_animator|wesnoth.units.create_animator]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.create|wesnoth.units.create]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.find_on_map|wesnoth.units.find_on_map]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.find_on_recall|wesnoth.units.find_on_recall]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.find|wesnoth.units.find]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.get|wesnoth.units.get]]<br>
 
[[LuaAPI/wesnoth/units#wesnoth.units.get_hovered|wesnoth.units.get_hovered]]<br>
 
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.get_time_of_day|wesnoth.schedule.get_time_of_day]]<br>
 
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.get_illumination|wesnoth.schedule.get_illumination]]<br>
 
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.replace|wesnoth.schedule.replace]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_enemy|wesnoth.sides.is_enemy]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.matches|wesnoth.sides.matches]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.set_id|wesnoth.sides.set_id]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.place_fog|wesnoth.sides.place_fog]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.remove_fog|wesnoth.sides.remove_fog]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_fogged|wesnoth.sides.is_fogged]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.place_shroud|wesnoth.sides.place_shroud]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.override_shroud|wesnoth.sides.override_shroud]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.remove_shroud|wesnoth.sides.remove_shroud]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_shrouded|wesnoth.sides.is_shrouded]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.switch_ai|wesnoth.sides.switch_ai]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.append_ai|wesnoth.sides.append_ai]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.add_ai_component|wesnoth.sides.add_ai_component]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.change_ai_component|wesnoth.sides.change_ai_component]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.delete_ai_component|wesnoth.sides.delete_ai_component]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.get|wesnoth.sides.get]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.find|wesnoth.sides.find]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.iter|wesnoth.sides.iter]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.create|wesnoth.sides.create]]<br>
 
[[LuaAPI/wesnoth/sides#wesnoth.sides.debug_ai|wesnoth.sides.debug_ai]]<br>
 
[[LuaAPI/wesnoth/sync#wesnoth.sync.evaluate_single|wesnoth.sync.evaluate_single]]<br>
 
[[LuaAPI/wesnoth/sync#wesnoth.sync.evaluate_multiple|wesnoth.sync.evaluate_multiple]]<br>
 
[[LuaAPI/wesnoth/sync#wesnoth.sync.run_unsynced|wesnoth.sync.run_unsynced]]<br>
 
[[LuaAPI/wesnoth/sync#wesnoth.sync.invoke_command|wesnoth.sync.invoke_command]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.find|wesnoth.map.find]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get|wesnoth.map.get]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.matches|wesnoth.map.matches]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.on_board|wesnoth.map.on_board]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.on_border|wesnoth.map.on_border]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.iter|wesnoth.map.iter]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.read_location|wesnoth.map.read_location]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.split_terrain_code|wesnoth.map.split_terrain_code]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.make_bitmap|wesnoth.map.make_bitmap]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.parse_bitmap|wesnoth.map.parse_bitmap]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.terrain_mask|wesnoth.map.terrain_mask]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.add_label|wesnoth.map.add_label]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.remove_label|wesnoth.map.remove_label]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_label|wesnoth.map.get_label]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.place_area|wesnoth.map.place_area]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.remove_area|wesnoth.map.remove_area]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_area|wesnoth.map.get_area]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.set_owner|wesnoth.map.set_owner]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_owner|wesnoth.map.get_owner]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.create|wesnoth.map.create]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.generate|wesnoth.map.generate]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.generate_height_map|wesnoth.map.generate_height_map]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_direction|wesnoth.map.get_direction]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_relative_dir|wesnoth.map.get_relative_dir]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.rotate_right_around_center|wesnoth.map.rotate_right_around_center]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_adjacent_hexes|wesnoth.map.get_adjacent_hexes]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.get_hexes_in_radius|wesnoth.map.get_hexes_in_radius]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.are_hexes_adjacent|wesnoth.map.are_hexes_adjacent]]<br>
 
[[LuaAPI/wesnoth/map#wesnoth.map.distance_between|wesnoth.map.distance_between]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.play|wesnoth.audio.play]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.volume|wesnoth.audio.volume]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.sources|wesnoth.audio.sources]]<br>
 
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list|wesnoth.audio.music_list]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list|wesnoth.audio.music_list]]<br>
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.current|wesnoth.audio.music_list.current]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.add|wesnoth.audio.music_list.add]]<br>
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.previous|wesnoth.audio.music_list.previous]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.volume|wesnoth.audio.music_list.volume]]<br>
 
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.all|wesnoth.audio.music_list.all]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.all|wesnoth.audio.music_list.all]]<br>
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.add|wesnoth.audio.music_list.add]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.remove|wesnoth.audio.music_list.remove]]<br>
 
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.clear|wesnoth.audio.music_list.clear]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.clear|wesnoth.audio.music_list.clear]]<br>
 +
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.current|wesnoth.audio.music_list.current]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.next|wesnoth.audio.music_list.next]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.next|wesnoth.audio.music_list.next]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.play|wesnoth.audio.music_list.play]]<br>
 
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.play|wesnoth.audio.music_list.play]]<br>
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_path|wesnoth.paths.find_path]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.previous|wesnoth.audio.music_list.previous]]<br>
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_vacant_hex|wesnoth.paths.find_vacant_hex]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.remove|wesnoth.audio.music_list.remove]]<br>
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_reach|wesnoth.paths.find_reach]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.music_list.volume|wesnoth.audio.music_list.volume]]<br>
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_vision_range|wesnoth.paths.find_vision_range]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.play|wesnoth.audio.play]]<br>
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_cost_map|wesnoth.paths.find_cost_map]]<br>
+
[[LuaAPI/wesnoth/audio#wesnoth.audio.sources|wesnoth.audio.sources]]<br>
 +
[[LuaAPI/wesnoth/audio#wesnoth.audio.volume|wesnoth.audio.volume]]<br>
 +
|-
 +
|''wesnoth.game_events''
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add|wesnoth.game_events.add]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add|wesnoth.game_events.add]]<br>
 +
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_menu|wesnoth.game_events.add_menu]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_repeating|wesnoth.game_events.add_repeating]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_repeating|wesnoth.game_events.add_repeating]]<br>
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_menu|wesnoth.game_events.add_menu]]<br>
 
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_wml|wesnoth.game_events.add_wml]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.add_wml|wesnoth.game_events.add_wml]]<br>
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.remove|wesnoth.game_events.remove]]<br>
 
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.fire|wesnoth.game_events.fire]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.fire|wesnoth.game_events.fire]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.fire_by_id|wesnoth.game_events.fire_by_id]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.fire_by_id|wesnoth.game_events.fire_by_id]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_event|wesnoth.game_events.on_event]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_event|wesnoth.game_events.on_event]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_load|wesnoth.game_events.on_load]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_load|wesnoth.game_events.on_load]]<br>
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_save|wesnoth.game_events.on_save]]<br>
 
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_action|wesnoth.game_events.on_mouse_action]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_action|wesnoth.game_events.on_mouse_action]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_button|wesnoth.game_events.on_mouse_button]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_button|wesnoth.game_events.on_mouse_button]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_move|wesnoth.game_events.on_mouse_move]]<br>
 
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_mouse_move|wesnoth.game_events.on_mouse_move]]<br>
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.set|wesnoth.achievements.set]]<br>
+
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.on_save|wesnoth.game_events.on_save]]<br>
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.set_sub_achievement|wesnoth.achievements.set_sub_achievement]]<br>
+
[[LuaAPI/wesnoth/game_events#wesnoth.game_events.remove|wesnoth.game_events.remove]]<br>
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.has|wesnoth.achievements.has]]<br>
+
|-
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.has_sub_achievement|wesnoth.achievements.has_sub_achievement]]<br>
+
|''wesnoth.interface''
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.get|wesnoth.achievements.get]]<br>
+
[[LuaAPI/wesnoth/interface#wesnoth.interface.add_chat_message|wesnoth.interface.add_chat_message]]<br>
[[LuaAPI/wesnoth/achievements#wesnoth.achievements.progress|wesnoth.achievements.progress]]<br>
+
[[LuaAPI/wesnoth/interface#wesnoth.interface.add_hex_overlay|wesnoth.interface.add_hex_overlay]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.add_item_halo|wesnoth.interface.add_item_halo]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.add_item_image|wesnoth.interface.add_item_image]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.add_overlay_text|wesnoth.interface.add_overlay_text]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.allow_end_turn|wesnoth.interface.allow_end_turn]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.clear_chat_messages|wesnoth.interface.clear_chat_messages]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.color_adjust|wesnoth.interface.color_adjust]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.delay|wesnoth.interface.delay]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.deselect_hex|wesnoth.interface.deselect_hex]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.end_turn|wesnoth.interface.end_turn]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.float_label|wesnoth.interface.float_label]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.get_displayed_unit|wesnoth.interface.get_displayed_unit]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.get_hovered_hex|wesnoth.interface.get_hovered_hex]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.get_items|wesnoth.interface.get_items]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.get_selected_hex|wesnoth.interface.get_selected_hex]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.get_viewing_side|wesnoth.interface.get_viewing_side]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.handle_user_interact|wesnoth.interface.handle_user_interact]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.highlight_hex|wesnoth.interface.highlight_hex]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.is_locked|wesnoth.interface.is_locked]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.is_skipping_messages|wesnoth.interface.is_skipping_messages]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.lock|wesnoth.interface.lock]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.remove_hex_overlay|wesnoth.interface.remove_hex_overlay]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.remove_item|wesnoth.interface.remove_item]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.scroll|wesnoth.interface.scroll]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.scroll_to_hex|wesnoth.interface.scroll_to_hex]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.select_unit|wesnoth.interface.select_unit]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.skip_messages|wesnoth.interface.skip_messages]]<br>
 +
[[LuaAPI/wesnoth/interface#wesnoth.interface.zoom|wesnoth.interface.zoom]]<br>
 +
|-
 +
|''wesnoth.map''
 +
[[LuaAPI/wesnoth/map#wesnoth.map.add_label|wesnoth.map.add_label]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.are_hexes_adjacent|wesnoth.map.are_hexes_adjacent]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.create|wesnoth.map.create]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.distance_between|wesnoth.map.distance_between]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.find|wesnoth.map.find]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.generate|wesnoth.map.generate]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.generate_height_map|wesnoth.map.generate_height_map]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get|wesnoth.map.get]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_adjacent_hexes|wesnoth.map.get_adjacent_hexes]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_area|wesnoth.map.get_area]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_direction|wesnoth.map.get_direction]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_hexes_in_radius|wesnoth.map.get_hexes_in_radius]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_label|wesnoth.map.get_label]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_owner|wesnoth.map.get_owner]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.get_relative_dir|wesnoth.map.get_relative_dir]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.iter|wesnoth.map.iter]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.make_bitmap|wesnoth.map.make_bitmap]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.matches|wesnoth.map.matches]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.on_board|wesnoth.map.on_board]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.on_border|wesnoth.map.on_border]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.parse_bitmap|wesnoth.map.parse_bitmap]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.place_area|wesnoth.map.place_area]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.read_location|wesnoth.map.read_location]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.remove_area|wesnoth.map.remove_area]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.remove_label|wesnoth.map.remove_label]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.rotate_right_around_center|wesnoth.map.rotate_right_around_center]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.set_owner|wesnoth.map.set_owner]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.split_terrain_code|wesnoth.map.split_terrain_code]]<br>
 +
[[LuaAPI/wesnoth/map#wesnoth.map.terrain_mask|wesnoth.map.terrain_mask]]<br>
 +
|-
 +
|''wesnoth.paths''
 +
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_cost_map|wesnoth.paths.find_cost_map]]<br>
 +
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_path|wesnoth.paths.find_path]]<br>
 +
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_reach|wesnoth.paths.find_reach]]<br>
 +
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_vacant_hex|wesnoth.paths.find_vacant_hex]]<br>
 +
[[LuaAPI/wesnoth/paths#wesnoth.paths.find_vision_range|wesnoth.paths.find_vision_range]]<br>
 +
|-
 +
|''wesnoth.schedule''
 +
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.get_illumination|wesnoth.schedule.get_illumination]]<br>
 +
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.get_time_of_day|wesnoth.schedule.get_time_of_day]]<br>
 +
[[LuaAPI/wesnoth/schedule#wesnoth.schedule.replace|wesnoth.schedule.replace]]<br>
 +
|-
 +
|''wesnoth.sides''
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.add_ai_component|wesnoth.sides.add_ai_component]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.append_ai|wesnoth.sides.append_ai]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.change_ai_component|wesnoth.sides.change_ai_component]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.create|wesnoth.sides.create]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.debug_ai|wesnoth.sides.debug_ai]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.delete_ai_component|wesnoth.sides.delete_ai_component]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.find|wesnoth.sides.find]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.get|wesnoth.sides.get]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_enemy|wesnoth.sides.is_enemy]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_fogged|wesnoth.sides.is_fogged]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.is_shrouded|wesnoth.sides.is_shrouded]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.iter|wesnoth.sides.iter]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.matches|wesnoth.sides.matches]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.override_shroud|wesnoth.sides.override_shroud]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.place_fog|wesnoth.sides.place_fog]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.place_shroud|wesnoth.sides.place_shroud]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.remove_fog|wesnoth.sides.remove_fog]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.remove_shroud|wesnoth.sides.remove_shroud]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.set_id|wesnoth.sides.set_id]]<br>
 +
[[LuaAPI/wesnoth/sides#wesnoth.sides.switch_ai|wesnoth.sides.switch_ai]]<br>
 +
|-
 +
|''wesnoth.sync''
 +
[[LuaAPI/wesnoth/sync#wesnoth.sync.evaluate_multiple|wesnoth.sync.evaluate_multiple]]<br>
 +
[[LuaAPI/wesnoth/sync#wesnoth.sync.evaluate_single|wesnoth.sync.evaluate_single]]<br>
 +
[[LuaAPI/wesnoth/sync#wesnoth.sync.invoke_command|wesnoth.sync.invoke_command]]<br>
 +
[[LuaAPI/wesnoth/sync#wesnoth.sync.run_unsynced|wesnoth.sync.run_unsynced]]<br>
 +
|-
 +
|''wesnoth.units''
 +
[[LuaAPI/wesnoth/units#wesnoth.unit.resistance_against|wesnoth.unit.resistance_against]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.ability|wesnoth.units.ability]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.add_modification|wesnoth.units.add_modification]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.advance|wesnoth.units.advance]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.chance_to_be_hit|wesnoth.units.chance_to_be_hit]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.clone|wesnoth.units.clone]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.create|wesnoth.units.create]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.create_animator|wesnoth.units.create_animator]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.defense_on|wesnoth.units.defense_on]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.erase|wesnoth.units.erase]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.extract|wesnoth.units.extract]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.find|wesnoth.units.find]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.find_attack|wesnoth.units.find_attack]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.find_on_map|wesnoth.units.find_on_map]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.find_on_recall|wesnoth.units.find_on_recall]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.get|wesnoth.units.get]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.get_hovered|wesnoth.units.get_hovered]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.jamming_on|wesnoth.units.jamming_on]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.matches|wesnoth.units.matches]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.movement_on|wesnoth.units.movement_on]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.remove_modifications|wesnoth.units.remove_modifications]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.scroll_to|wesnoth.units.scroll_to]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.select|wesnoth.units.select]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.to_map|wesnoth.units.to_map]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.to_recall|wesnoth.units.to_recall]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.transform|wesnoth.units.transform]]<br>
 +
[[LuaAPI/wesnoth/units#wesnoth.units.vision_on|wesnoth.units.vision_on]]<br>
 +
|-
 +
|''ai''
 +
[[LuaAPI/ai#ai.aspects|ai.aspects]]<br>
 +
[[LuaAPI/ai#ai.attack|ai.attack]]<br>
 +
[[LuaAPI/ai#ai.check_attack|ai.check_attack]]<br>
 +
[[LuaAPI/ai#ai.check_move|ai.check_move]]<br>
 +
[[LuaAPI/ai#ai.check_recall|ai.check_recall]]<br>
 +
[[LuaAPI/ai#ai.check_recruit|ai.check_recruit]]<br>
 +
[[LuaAPI/ai#ai.check_stopunit|ai.check_stopunit]]<br>
 +
[[LuaAPI/ai#ai.fallback_human|ai.fallback_human]]<br>
 +
[[LuaAPI/ai#ai.get_attacks|ai.get_attacks]]<br>
 +
[[LuaAPI/ai#ai.get_targets|ai.get_targets]]<br>
 +
[[LuaAPI/ai#ai.move|ai.move]]<br>
 +
[[LuaAPI/ai#ai.move_full|ai.move_full]]<br>
 +
[[LuaAPI/ai#ai.read_only|ai.read_only]]<br>
 +
[[LuaAPI/ai#ai.recall|ai.recall]]<br>
 +
[[LuaAPI/ai#ai.recruit|ai.recruit]]<br>
 +
[[LuaAPI/ai#ai.side|ai.side]]<br>
 +
[[LuaAPI/ai#ai.stopunit_all|ai.stopunit_all]]<br>
 +
[[LuaAPI/ai#ai.stopunit_attacks|ai.stopunit_attacks]]<br>
 +
[[LuaAPI/ai#ai.stopunit_moves|ai.stopunit_moves]]<br>
 +
[[LuaAPI/ai#ai.suitable_keep|ai.suitable_keep]]<br>
 +
|-
 +
|''filesystem''
 +
[[LuaAPI/filesystem#filesystem.canonical_path|filesystem.canonical_path]]<br>
 +
[[LuaAPI/filesystem#filesystem.have_asset|filesystem.have_asset]]<br>
 +
[[LuaAPI/filesystem#filesystem.have_file|filesystem.have_file]]<br>
 +
[[LuaAPI/filesystem#filesystem.image_size|filesystem.image_size]]<br>
 +
[[LuaAPI/filesystem#filesystem.read_file|filesystem.read_file]]<br>
 +
[[LuaAPI/filesystem#filesystem.resolve_asset|filesystem.resolve_asset]]<br>
 +
|-
 +
|''functional''
 +
[[LuaAPI/functional#functional.choose|functional.choose]]<br>
 +
[[LuaAPI/functional#functional.choose_map|functional.choose_map]]<br>
 +
[[LuaAPI/functional#functional.filter|functional.filter]]<br>
 +
[[LuaAPI/functional#functional.filter_map|functional.filter_map]]<br>
 +
[[LuaAPI/functional#functional.find|functional.find]]<br>
 +
[[LuaAPI/functional#functional.find_map|functional.find_map]]<br>
 +
[[LuaAPI/functional#functional.map|functional.map]]<br>
 +
[[LuaAPI/functional#functional.map_array|functional.map_array]]<br>
 +
[[LuaAPI/functional#functional.reduce|functional.reduce]]<br>
 +
[[LuaAPI/functional#functional.take_while|functional.take_while]]<br>
 +
[[LuaAPI/functional#functional.zip|functional.zip]]<br>
 +
|-
 +
|''gui''
 +
[[LuaAPI/gui#gui.add_widget_definition|gui.add_widget_definition]]<br>
 +
[[LuaAPI/gui#gui.get_user_choice|gui.get_user_choice]]<br>
 +
[[LuaAPI/gui#gui.show_dialog|gui.show_dialog]]<br>
 +
[[LuaAPI/gui#gui.show_help|gui.show_help]]<br>
 +
[[LuaAPI/gui#gui.show_inspector|gui.show_inspector]]<br>
 +
[[LuaAPI/gui#gui.show_lua_console|gui.show_lua_console]]<br>
 
[[LuaAPI/gui#gui.show_menu|gui.show_menu]]<br>
 
[[LuaAPI/gui#gui.show_menu|gui.show_menu]]<br>
 
[[LuaAPI/gui#gui.show_narration|gui.show_narration]]<br>
 
[[LuaAPI/gui#gui.show_narration|gui.show_narration]]<br>
[[LuaAPI/gui#gui.get_user_choice|gui.get_user_choice]]<br>
 
 
[[LuaAPI/gui#gui.show_popup|gui.show_popup]]<br>
 
[[LuaAPI/gui#gui.show_popup|gui.show_popup]]<br>
 
[[LuaAPI/gui#gui.show_prompt|gui.show_prompt]]<br>
 
[[LuaAPI/gui#gui.show_prompt|gui.show_prompt]]<br>
 
[[LuaAPI/gui#gui.show_story|gui.show_story]]<br>
 
[[LuaAPI/gui#gui.show_story|gui.show_story]]<br>
[[LuaAPI/gui#gui.show_dialog|gui.show_dialog]]<br>
 
[[LuaAPI/gui#gui.add_widget_definition|gui.add_widget_definition]]<br>
 
 
[[LuaAPI/gui#gui.widget|gui.widget]]<br>
 
[[LuaAPI/gui#gui.widget|gui.widget]]<br>
[[LuaAPI/gui#gui.show_help|gui.show_help]]<br>
+
|-
[[LuaAPI/gui#gui.show_inspector|gui.show_inspector]]<br>
+
|''location_set''
[[LuaAPI/gui#gui.show_lua_console|gui.show_lua_console]]<br>
+
[[LuaAPI/location_set#location_set.clear|location_set.clear]]<br>
[[LuaAPI/wml#wml.attribute_count|wml.attribute_count]]<br>
+
[[LuaAPI/location_set#location_set.clone|location_set.clone]]<br>
[[LuaAPI/wml#wml.child_array|wml.child_array]]<br>
 
[[LuaAPI/wml#wml.child_count|wml.child_count]]<br>
 
[[LuaAPI/wml#wml.child_range|wml.child_range]]<br>
 
[[LuaAPI/wml#wml.find_child|wml.find_child]]<br>
 
[[LuaAPI/wml#wml.get_child|wml.get_child]]<br>
 
[[LuaAPI/wml#wml.get_nth_child|wml.get_nth_child]]<br>
 
[[LuaAPI/wml#wml.remove_child|wml.remove_child]]<br>
 
[[LuaAPI/wml#wml.remove_children|wml.remove_children]]<br>
 
[[LuaAPI/wml#wml.tag|wml.tag]]<br>
 
[[LuaAPI/wml#wml.clone|wml.clone]]<br>
 
[[LuaAPI/wml#wml.equal|wml.equal]]<br>
 
[[LuaAPI/wml#wml.valid|wml.valid]]<br>
 
[[LuaAPI/wml#wml.matches_filter|wml.matches_filter]]<br>
 
[[LuaAPI/wml#wml.load|wml.load]]<br>
 
[[LuaAPI/wml#wml.parse|wml.parse]]<br>
 
[[LuaAPI/wml#wml.merge|wml.merge]]<br>
 
[[LuaAPI/wml#wml.diff|wml.diff]]<br>
 
[[LuaAPI/wml#wml.patch|wml.patch]]<br>
 
[[LuaAPI/wml#wml.interpolate|wml.interpolate]]<br>
 
[[LuaAPI/wml#wml.tostring|wml.tostring]]<br>
 
[[LuaAPI/wml#wml.tovconfig|wml.tovconfig]]<br>
 
[[LuaAPI/wml#wml.literal|wml.literal]]<br>
 
[[LuaAPI/wml#wml.parsed|wml.parsed]]<br>
 
[[LuaAPI/wml#wml.shallow_literal|wml.shallow_literal]]<br>
 
[[LuaAPI/wml#wml.shallow_parsed|wml.shallow_parsed]]<br>
 
[[LuaAPI/wml#wml.all_variables|wml.all_variables]]<br>
 
[[LuaAPI/wml#wml.variables|wml.variables]]<br>
 
[[LuaAPI/wml#wml.variables_proxy|wml.variables_proxy]]<br>
 
[[LuaAPI/wml#wml.array_access.get|wml.array_access.get]]<br>
 
[[LuaAPI/wml#wml.array_access.get_proxy|wml.array_access.get_proxy]]<br>
 
[[LuaAPI/wml#wml.array_access.set|wml.array_access.set]]<br>
 
[[LuaAPI/wml#wml.array_variables|wml.array_variables]]<br>
 
[[LuaAPI/wml#wml.eval_conditional|wml.eval_conditional]]<br>
 
[[LuaAPI/wml#wml.fire|wml.fire]]<br>
 
[[LuaAPI/wml#wml.error|wml.error]]<br>
 
 
[[LuaAPI/location_set#location_set.create|location_set.create]]<br>
 
[[LuaAPI/location_set#location_set.create|location_set.create]]<br>
 +
[[LuaAPI/location_set#location_set.diff|location_set.diff]]<br>
 +
[[LuaAPI/location_set#location_set.empty|location_set.empty]]<br>
 +
[[LuaAPI/location_set#location_set.filter|location_set.filter]]<br>
 +
[[LuaAPI/location_set#location_set.get|location_set.get]]<br>
 +
[[LuaAPI/location_set#location_set.insert|location_set.insert]]<br>
 +
[[LuaAPI/location_set#location_set.inter|location_set.inter]]<br>
 +
[[LuaAPI/location_set#location_set.inter_merge|location_set.inter_merge]]<br>
 +
[[LuaAPI/location_set#location_set.invert|location_set.invert]]<br>
 +
[[LuaAPI/location_set#location_set.iter|location_set.iter]]<br>
 +
[[LuaAPI/location_set#location_set.of_map|location_set.of_map]]<br>
 +
[[LuaAPI/location_set#location_set.of_pairs|location_set.of_pairs]]<br>
 
[[LuaAPI/location_set#location_set.of_raw|location_set.of_raw]]<br>
 
[[LuaAPI/location_set#location_set.of_raw|location_set.of_raw]]<br>
[[LuaAPI/location_set#location_set.of_pairs|location_set.of_pairs]]<br>
+
[[LuaAPI/location_set#location_set.of_shroud_data|location_set.of_shroud_data]]<br>
 
[[LuaAPI/location_set#location_set.of_triples|location_set.of_triples]]<br>
 
[[LuaAPI/location_set#location_set.of_triples|location_set.of_triples]]<br>
[[LuaAPI/location_set#location_set.of_map|location_set.of_map]]<br>
 
 
[[LuaAPI/location_set#location_set.of_wml_var|location_set.of_wml_var]]<br>
 
[[LuaAPI/location_set#location_set.of_wml_var|location_set.of_wml_var]]<br>
[[LuaAPI/location_set#location_set.of_shroud_data|location_set.of_shroud_data]]<br>
+
[[LuaAPI/location_set#location_set.random|location_set.random]]<br>
 +
[[LuaAPI/location_set#location_set.remove|location_set.remove]]<br>
 +
[[LuaAPI/location_set#location_set.size|location_set.size]]<br>
 +
[[LuaAPI/location_set#location_set.stable_iter|location_set.stable_iter]]<br>
 +
[[LuaAPI/location_set#location_set.symm|location_set.symm]]<br>
 +
[[LuaAPI/location_set#location_set.to_map|location_set.to_map]]<br>
 
[[LuaAPI/location_set#location_set.to_pairs|location_set.to_pairs]]<br>
 
[[LuaAPI/location_set#location_set.to_pairs|location_set.to_pairs]]<br>
 +
[[LuaAPI/location_set#location_set.to_shroud_data|location_set.to_shroud_data]]<br>
 
[[LuaAPI/location_set#location_set.to_stable_pairs|location_set.to_stable_pairs]]<br>
 
[[LuaAPI/location_set#location_set.to_stable_pairs|location_set.to_stable_pairs]]<br>
 
[[LuaAPI/location_set#location_set.to_triples|location_set.to_triples]]<br>
 
[[LuaAPI/location_set#location_set.to_triples|location_set.to_triples]]<br>
[[LuaAPI/location_set#location_set.to_map|location_set.to_map]]<br>
 
 
[[LuaAPI/location_set#location_set.to_wml_var|location_set.to_wml_var]]<br>
 
[[LuaAPI/location_set#location_set.to_wml_var|location_set.to_wml_var]]<br>
[[LuaAPI/location_set#location_set.to_shroud_data|location_set.to_shroud_data]]<br>
 
[[LuaAPI/location_set#location_set.clone|location_set.clone]]<br>
 
[[LuaAPI/location_set#location_set.get|location_set.get]]<br>
 
[[LuaAPI/location_set#location_set.insert|location_set.insert]]<br>
 
[[LuaAPI/location_set#location_set.remove|location_set.remove]]<br>
 
[[LuaAPI/location_set#location_set.clear|location_set.clear]]<br>
 
[[LuaAPI/location_set#location_set.size|location_set.size]]<br>
 
[[LuaAPI/location_set#location_set.empty|location_set.empty]]<br>
 
[[LuaAPI/location_set#location_set.iter|location_set.iter]]<br>
 
[[LuaAPI/location_set#location_set.stable_iter|location_set.stable_iter]]<br>
 
[[LuaAPI/location_set#location_set.filter|location_set.filter]]<br>
 
 
[[LuaAPI/location_set#location_set.union|location_set.union]]<br>
 
[[LuaAPI/location_set#location_set.union|location_set.union]]<br>
 
[[LuaAPI/location_set#location_set.union_merge|location_set.union_merge]]<br>
 
[[LuaAPI/location_set#location_set.union_merge|location_set.union_merge]]<br>
[[LuaAPI/location_set#location_set.inter|location_set.inter]]<br>
+
|-
[[LuaAPI/location_set#location_set.inter_merge|location_set.inter_merge]]<br>
+
|''mathx''
[[LuaAPI/location_set#location_set.diff|location_set.diff]]<br>
 
[[LuaAPI/location_set#location_set.symm|location_set.symm]]<br>
 
[[LuaAPI/location_set#location_set.invert|location_set.invert]]<br>
 
[[LuaAPI/location_set#location_set.random|location_set.random]]<br>
 
[[LuaAPI/functional#functional.filter|functional.filter]]<br>
 
[[LuaAPI/functional#functional.filter_map|functional.filter_map]]<br>
 
[[LuaAPI/functional#functional.find|functional.find]]<br>
 
[[LuaAPI/functional#functional.find_map|functional.find_map]]<br>
 
[[LuaAPI/functional#functional.choose|functional.choose]]<br>
 
[[LuaAPI/functional#functional.choose_map|functional.choose_map]]<br>
 
[[LuaAPI/functional#functional.map|functional.map]]<br>
 
[[LuaAPI/functional#functional.map_array|functional.map_array]]<br>
 
[[LuaAPI/functional#functional.reduce|functional.reduce]]<br>
 
[[LuaAPI/functional#functional.take_while|functional.take_while]]<br>
 
[[LuaAPI/functional#functional.zip|functional.zip]]<br>
 
[[LuaAPI/stringx#stringx.split|stringx.split]]<br>
 
[[LuaAPI/stringx#stringx.escaped_split|stringx.escaped_split]]<br>
 
[[LuaAPI/stringx#stringx.quoted_split|stringx.quoted_split]]<br>
 
[[LuaAPI/stringx#stringx.anim_split|stringx.anim_split]]<br>
 
[[LuaAPI/stringx#stringx.parenthetical_split|stringx.parenthetical_split]]<br>
 
[[LuaAPI/stringx#stringx.map_split|stringx.map_split]]<br>
 
[[LuaAPI/stringx#stringx.join|stringx.join]]<br>
 
[[LuaAPI/stringx#stringx.join_map|stringx.join_map]]<br>
 
[[LuaAPI/stringx#stringx.vformat|stringx.vformat]]<br>
 
[[LuaAPI/stringx#stringx.format_conjunct_list|stringx.format_conjunct_list]]<br>
 
[[LuaAPI/stringx#stringx.format_disjunct_list|stringx.format_disjunct_list]]<br>
 
[[LuaAPI/stringx#stringx.trim|stringx.trim]]<br>
 
[[LuaAPI/stringx#stringx.parse_range|stringx.parse_range]]<br>
 
[[LuaAPI/stringx#stringx.iter_range|stringx.iter_range]]<br>
 
[[LuaAPI/stringx#stringx.iter_ranges|stringx.iter_ranges]]<br>
 
 
[[LuaAPI/mathx#mathx.clamp|mathx.clamp]]<br>
 
[[LuaAPI/mathx#mathx.clamp|mathx.clamp]]<br>
 
[[LuaAPI/mathx#mathx.lerp|mathx.lerp]]<br>
 
[[LuaAPI/mathx#mathx.lerp|mathx.lerp]]<br>
Line 274: Line 302:
 
[[LuaAPI/mathx#mathx.round|mathx.round]]<br>
 
[[LuaAPI/mathx#mathx.round|mathx.round]]<br>
 
[[LuaAPI/mathx#mathx.shuffle|mathx.shuffle]]<br>
 
[[LuaAPI/mathx#mathx.shuffle|mathx.shuffle]]<br>
[[LuaAPI/filesystem#filesystem.read_file|filesystem.read_file]]<br>
+
|-
[[LuaAPI/filesystem#filesystem.have_file|filesystem.have_file]]<br>
+
|''stringx''
[[LuaAPI/filesystem#filesystem.canonical_path|filesystem.canonical_path]]<br>
+
[[LuaAPI/stringx#stringx.anim_split|stringx.anim_split]]<br>
[[LuaAPI/filesystem#filesystem.image_size|filesystem.image_size]]<br>
+
[[LuaAPI/stringx#stringx.escaped_split|stringx.escaped_split]]<br>
[[LuaAPI/filesystem#filesystem.have_asset|filesystem.have_asset]]<br>
+
[[LuaAPI/stringx#stringx.format_conjunct_list|stringx.format_conjunct_list]]<br>
[[LuaAPI/filesystem#filesystem.resolve_asset|filesystem.resolve_asset]]<br>
+
[[LuaAPI/stringx#stringx.format_disjunct_list|stringx.format_disjunct_list]]<br>
[[LuaAPI/ai#ai.read_only|ai.read_only]]<br>
+
[[LuaAPI/stringx#stringx.iter_range|stringx.iter_range]]<br>
[[LuaAPI/ai#ai.side|ai.side]]<br>
+
[[LuaAPI/stringx#stringx.iter_ranges|stringx.iter_ranges]]<br>
[[LuaAPI/ai#ai.aspects|ai.aspects]]<br>
+
[[LuaAPI/stringx#stringx.join|stringx.join]]<br>
[[LuaAPI/ai#ai.get_attacks|ai.get_attacks]]<br>
+
[[LuaAPI/stringx#stringx.join_map|stringx.join_map]]<br>
[[LuaAPI/ai#ai.get_targets|ai.get_targets]]<br>
+
[[LuaAPI/stringx#stringx.map_split|stringx.map_split]]<br>
[[LuaAPI/ai#ai.suitable_keep|ai.suitable_keep]]<br>
+
[[LuaAPI/stringx#stringx.parenthetical_split|stringx.parenthetical_split]]<br>
[[LuaAPI/ai#ai.attack|ai.attack]]<br>
+
[[LuaAPI/stringx#stringx.parse_range|stringx.parse_range]]<br>
[[LuaAPI/ai#ai.check_attack|ai.check_attack]]<br>
+
[[LuaAPI/stringx#stringx.quoted_split|stringx.quoted_split]]<br>
[[LuaAPI/ai#ai.move|ai.move]]<br>
+
[[LuaAPI/stringx#stringx.split|stringx.split]]<br>
[[LuaAPI/ai#ai.move_full|ai.move_full]]<br>
+
[[LuaAPI/stringx#stringx.trim|stringx.trim]]<br>
[[LuaAPI/ai#ai.check_move|ai.check_move]]<br>
+
[[LuaAPI/stringx#stringx.vformat|stringx.vformat]]<br>
[[LuaAPI/ai#ai.recall|ai.recall]]<br>
+
|-
[[LuaAPI/ai#ai.check_recall|ai.check_recall]]<br>
+
|''unit_test''
[[LuaAPI/ai#ai.recruit|ai.recruit]]<br>
 
[[LuaAPI/ai#ai.check_recruit|ai.check_recruit]]<br>
 
[[LuaAPI/ai#ai.stopunit_attacks|ai.stopunit_attacks]]<br>
 
[[LuaAPI/ai#ai.stopunit_moves|ai.stopunit_moves]]<br>
 
[[LuaAPI/ai#ai.stopunit_all|ai.stopunit_all]]<br>
 
[[LuaAPI/ai#ai.check_stopunit|ai.check_stopunit]]<br>
 
[[LuaAPI/ai#ai.fallback_human|ai.fallback_human]]<br>
 
[[LuaAPI/wml-utils#utils.check_key|utils.check_key]]<br>
 
[[LuaAPI/wml-utils#utils.vwriter|utils.vwriter]]<br>
 
[[LuaAPI/wml-utils#utils.get_sides|utils.get_sides]]<br>
 
[[LuaAPI/wml-utils#utils.optional_side_filter|utils.optional_side_filter]]<br>
 
[[LuaAPI/wml-utils#utils.handle_event_commands|utils.handle_event_commands]]<br>
 
[[LuaAPI/wml-utils#utils.set_exiting|utils.set_exiting]]<br>
 
[[LuaAPI/wml-utils#utils.scoped_var|utils.scoped_var]]<br>
 
[[LuaAPI/unit_test#unit_test.fail|unit_test.fail]]<br>
 
[[LuaAPI/unit_test#unit_test.succeed|unit_test.succeed]]<br>
 
[[LuaAPI/unit_test#unit_test.finish|unit_test.finish]]<br>
 
[[LuaAPI/unit_test#unit_test.log|unit_test.log]]<br>
 
[[LuaAPI/unit_test#unit_test.tostring|unit_test.tostring]]<br>
 
[[LuaAPI/unit_test#unit_test.fire_wml_menu_item|unit_test.fire_wml_menu_item]]<br>
 
 
[[LuaAPI/unit_test#unit_test.assert|unit_test.assert]]<br>
 
[[LuaAPI/unit_test#unit_test.assert|unit_test.assert]]<br>
 +
[[LuaAPI/unit_test#unit_test.assert_approx_equal|unit_test.assert_approx_equal]]<br>
 +
[[LuaAPI/unit_test#unit_test.assert_contains|unit_test.assert_contains]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_equal|unit_test.assert_equal]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_equal|unit_test.assert_equal]]<br>
[[LuaAPI/unit_test#unit_test.assert_not_equal|unit_test.assert_not_equal]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_approx_equal|unit_test.assert_approx_equal]]<br>
 
 
[[LuaAPI/unit_test#unit_test.assert_greater|unit_test.assert_greater]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_greater|unit_test.assert_greater]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_greater_equal|unit_test.assert_greater_equal]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_greater_equal|unit_test.assert_greater_equal]]<br>
 +
[[LuaAPI/unit_test#unit_test.assert_in_range|unit_test.assert_in_range]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_less|unit_test.assert_less]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_less|unit_test.assert_less]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_less_equal|unit_test.assert_less_equal]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_less_equal|unit_test.assert_less_equal]]<br>
[[LuaAPI/unit_test#unit_test.assert_in_range|unit_test.assert_in_range]]<br>
+
[[LuaAPI/unit_test#unit_test.assert_not_equal|unit_test.assert_not_equal]]<br>
[[LuaAPI/unit_test#unit_test.assert_contains|unit_test.assert_contains]]<br>
 
 
[[LuaAPI/unit_test#unit_test.assert_nothrow|unit_test.assert_nothrow]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_nothrow|unit_test.assert_nothrow]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_throws|unit_test.assert_throws]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_throws|unit_test.assert_throws]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_throws_with|unit_test.assert_throws_with]]<br>
 
[[LuaAPI/unit_test#unit_test.assert_throws_with|unit_test.assert_throws_with]]<br>
 
+
[[LuaAPI/unit_test#unit_test.fail|unit_test.fail]]<br>
|}
+
[[LuaAPI/unit_test#unit_test.finish|unit_test.finish]]<br>
 +
[[LuaAPI/unit_test#unit_test.fire_wml_menu_item|unit_test.fire_wml_menu_item]]<br>
 +
[[LuaAPI/unit_test#unit_test.log|unit_test.log]]<br>
 +
[[LuaAPI/unit_test#unit_test.succeed|unit_test.succeed]]<br>
 +
[[LuaAPI/unit_test#unit_test.tostring|unit_test.tostring]]<br>
 +
|-
 +
|''wml''
 +
[[LuaAPI/wml#wml.all_variables|wml.all_variables]]<br>
 +
[[LuaAPI/wml#wml.array_access.get|wml.array_access.get]]<br>
 +
[[LuaAPI/wml#wml.array_access.get_proxy|wml.array_access.get_proxy]]<br>
 +
[[LuaAPI/wml#wml.array_access.set|wml.array_access.set]]<br>
 +
[[LuaAPI/wml#wml.array_variables|wml.array_variables]]<br>
 +
[[LuaAPI/wml#wml.attribute_count|wml.attribute_count]]<br>
 +
[[LuaAPI/wml#wml.child_array|wml.child_array]]<br>
 +
[[LuaAPI/wml#wml.child_count|wml.child_count]]<br>
 +
[[LuaAPI/wml#wml.child_range|wml.child_range]]<br>
 +
[[LuaAPI/wml#wml.clone|wml.clone]]<br>
 +
[[LuaAPI/wml#wml.diff|wml.diff]]<br>
 +
[[LuaAPI/wml#wml.equal|wml.equal]]<br>
 +
[[LuaAPI/wml#wml.error|wml.error]]<br>
 +
[[LuaAPI/wml#wml.eval_conditional|wml.eval_conditional]]<br>
 +
[[LuaAPI/wml#wml.find_child|wml.find_child]]<br>
 +
[[LuaAPI/wml#wml.fire|wml.fire]]<br>
 +
[[LuaAPI/wml#wml.get_child|wml.get_child]]<br>
 +
[[LuaAPI/wml#wml.get_nth_child|wml.get_nth_child]]<br>
 +
[[LuaAPI/wml#wml.interpolate|wml.interpolate]]<br>
 +
[[LuaAPI/wml#wml.literal|wml.literal]]<br>
 +
[[LuaAPI/wml#wml.load|wml.load]]<br>
 +
[[LuaAPI/wml#wml.matches_filter|wml.matches_filter]]<br>
 +
[[LuaAPI/wml#wml.merge|wml.merge]]<br>
 +
[[LuaAPI/wml#wml.parse|wml.parse]]<br>
 +
[[LuaAPI/wml#wml.parsed|wml.parsed]]<br>
 +
[[LuaAPI/wml#wml.patch|wml.patch]]<br>
 +
[[LuaAPI/wml#wml.remove_child|wml.remove_child]]<br>
 +
[[LuaAPI/wml#wml.remove_children|wml.remove_children]]<br>
 +
[[LuaAPI/wml#wml.shallow_literal|wml.shallow_literal]]<br>
 +
[[LuaAPI/wml#wml.shallow_parsed|wml.shallow_parsed]]<br>
 +
[[LuaAPI/wml#wml.tag|wml.tag]]<br>
 +
[[LuaAPI/wml#wml.tostring|wml.tostring]]<br>
 +
[[LuaAPI/wml#wml.tovconfig|wml.tovconfig]]<br>
 +
[[LuaAPI/wml#wml.valid|wml.valid]]<br>
 +
[[LuaAPI/wml#wml.variables|wml.variables]]<br>
 +
[[LuaAPI/wml#wml.variables_proxy|wml.variables_proxy]]<br>
 +
|-
 +
|''wml-utils''
 +
[[LuaAPI/wml-utils#utils.check_key|utils.check_key]]<br>
 +
[[LuaAPI/wml-utils#utils.get_sides|utils.get_sides]]<br>
 +
[[LuaAPI/wml-utils#utils.handle_event_commands|utils.handle_event_commands]]<br>
 +
[[LuaAPI/wml-utils#utils.optional_side_filter|utils.optional_side_filter]]<br>
 +
[[LuaAPI/wml-utils#utils.scoped_var|utils.scoped_var]]<br>
 +
[[LuaAPI/wml-utils#utils.set_exiting|utils.set_exiting]]<br>
 +
[[LuaAPI/wml-utils#utils.vwriter|utils.vwriter]]<br>
 +
|}<includeonly>[[Category:Lua Reference]]</includeonly><noinclude>A box with all the Lua functions, each one linking to the page and section they are described in. It was generated using [[/Updating|this method]]. This box should be included in [[LuaAPI|Lua reference]] page.</noinclude>

Latest revision as of 20:45, 26 April 2024

[edit]Lua Functions

wesnoth

wesnoth.as_text
wesnoth.colors
wesnoth.compile_formula
wesnoth.current
wesnoth.current_version
wesnoth.custom_synced_commands
wesnoth.deprecate_api
wesnoth.deprecated_message
wesnoth.dofile
wesnoth.effects
wesnoth.eval_formula
wesnoth.game_config
wesnoth.get_language
wesnoth.log
wesnoth.micro_ais
wesnoth.ms_since_init
wesnoth.name_generator
wesnoth.named_tuple
wesnoth.persistent_tags
wesnoth.print_attributes
wesnoth.races
wesnoth.require
wesnoth.scenario
wesnoth.simulate_combat
wesnoth.terrain_types
wesnoth.textdomain
wesnoth.type
wesnoth.unit_types
wesnoth.version
wesnoth.wml_actions
wesnoth.wml_conditionals

wesnoth.achievements

wesnoth.achievements.get
wesnoth.achievements.has
wesnoth.achievements.has_sub_achievement
wesnoth.achievements.progress
wesnoth.achievements.set
wesnoth.achievements.set_sub_achievement

wesnoth.audio

wesnoth.audio.music_list
wesnoth.audio.music_list.add
wesnoth.audio.music_list.all
wesnoth.audio.music_list.clear
wesnoth.audio.music_list.current
wesnoth.audio.music_list.next
wesnoth.audio.music_list.play
wesnoth.audio.music_list.previous
wesnoth.audio.music_list.remove
wesnoth.audio.music_list.volume
wesnoth.audio.play
wesnoth.audio.sources
wesnoth.audio.volume

wesnoth.game_events

wesnoth.game_events.add
wesnoth.game_events.add_menu
wesnoth.game_events.add_repeating
wesnoth.game_events.add_wml
wesnoth.game_events.fire
wesnoth.game_events.fire_by_id
wesnoth.game_events.on_event
wesnoth.game_events.on_load
wesnoth.game_events.on_mouse_action
wesnoth.game_events.on_mouse_button
wesnoth.game_events.on_mouse_move
wesnoth.game_events.on_save
wesnoth.game_events.remove

wesnoth.interface

wesnoth.interface.add_chat_message
wesnoth.interface.add_hex_overlay
wesnoth.interface.add_item_halo
wesnoth.interface.add_item_image
wesnoth.interface.add_overlay_text
wesnoth.interface.allow_end_turn
wesnoth.interface.clear_chat_messages
wesnoth.interface.color_adjust
wesnoth.interface.delay
wesnoth.interface.deselect_hex
wesnoth.interface.end_turn
wesnoth.interface.float_label
wesnoth.interface.get_displayed_unit
wesnoth.interface.get_hovered_hex
wesnoth.interface.get_items
wesnoth.interface.get_selected_hex
wesnoth.interface.get_viewing_side
wesnoth.interface.handle_user_interact
wesnoth.interface.highlight_hex
wesnoth.interface.is_locked
wesnoth.interface.is_skipping_messages
wesnoth.interface.lock
wesnoth.interface.remove_hex_overlay
wesnoth.interface.remove_item
wesnoth.interface.scroll
wesnoth.interface.scroll_to_hex
wesnoth.interface.select_unit
wesnoth.interface.skip_messages
wesnoth.interface.zoom

wesnoth.map

wesnoth.map.add_label
wesnoth.map.are_hexes_adjacent
wesnoth.map.create
wesnoth.map.distance_between
wesnoth.map.find
wesnoth.map.generate
wesnoth.map.generate_height_map
wesnoth.map.get
wesnoth.map.get_adjacent_hexes
wesnoth.map.get_area
wesnoth.map.get_direction
wesnoth.map.get_hexes_in_radius
wesnoth.map.get_label
wesnoth.map.get_owner
wesnoth.map.get_relative_dir
wesnoth.map.iter
wesnoth.map.make_bitmap
wesnoth.map.matches
wesnoth.map.on_board
wesnoth.map.on_border
wesnoth.map.parse_bitmap
wesnoth.map.place_area
wesnoth.map.read_location
wesnoth.map.remove_area
wesnoth.map.remove_label
wesnoth.map.rotate_right_around_center
wesnoth.map.set_owner
wesnoth.map.split_terrain_code
wesnoth.map.terrain_mask

wesnoth.paths

wesnoth.paths.find_cost_map
wesnoth.paths.find_path
wesnoth.paths.find_reach
wesnoth.paths.find_vacant_hex
wesnoth.paths.find_vision_range

wesnoth.schedule

wesnoth.schedule.get_illumination
wesnoth.schedule.get_time_of_day
wesnoth.schedule.replace

wesnoth.sides

wesnoth.sides.add_ai_component
wesnoth.sides.append_ai
wesnoth.sides.change_ai_component
wesnoth.sides.create
wesnoth.sides.debug_ai
wesnoth.sides.delete_ai_component
wesnoth.sides.find
wesnoth.sides.get
wesnoth.sides.is_enemy
wesnoth.sides.is_fogged
wesnoth.sides.is_shrouded
wesnoth.sides.iter
wesnoth.sides.matches
wesnoth.sides.override_shroud
wesnoth.sides.place_fog
wesnoth.sides.place_shroud
wesnoth.sides.remove_fog
wesnoth.sides.remove_shroud
wesnoth.sides.set_id
wesnoth.sides.switch_ai

wesnoth.sync

wesnoth.sync.evaluate_multiple
wesnoth.sync.evaluate_single
wesnoth.sync.invoke_command
wesnoth.sync.run_unsynced

wesnoth.units

wesnoth.unit.resistance_against
wesnoth.units.ability
wesnoth.units.add_modification
wesnoth.units.advance
wesnoth.units.chance_to_be_hit
wesnoth.units.clone
wesnoth.units.create
wesnoth.units.create_animator
wesnoth.units.defense_on
wesnoth.units.erase
wesnoth.units.extract
wesnoth.units.find
wesnoth.units.find_attack
wesnoth.units.find_on_map
wesnoth.units.find_on_recall
wesnoth.units.get
wesnoth.units.get_hovered
wesnoth.units.jamming_on
wesnoth.units.matches
wesnoth.units.movement_on
wesnoth.units.remove_modifications
wesnoth.units.scroll_to
wesnoth.units.select
wesnoth.units.to_map
wesnoth.units.to_recall
wesnoth.units.transform
wesnoth.units.vision_on

ai

ai.aspects
ai.attack
ai.check_attack
ai.check_move
ai.check_recall
ai.check_recruit
ai.check_stopunit
ai.fallback_human
ai.get_attacks
ai.get_targets
ai.move
ai.move_full
ai.read_only
ai.recall
ai.recruit
ai.side
ai.stopunit_all
ai.stopunit_attacks
ai.stopunit_moves
ai.suitable_keep

filesystem

filesystem.canonical_path
filesystem.have_asset
filesystem.have_file
filesystem.image_size
filesystem.read_file
filesystem.resolve_asset

functional

functional.choose
functional.choose_map
functional.filter
functional.filter_map
functional.find
functional.find_map
functional.map
functional.map_array
functional.reduce
functional.take_while
functional.zip

gui

gui.add_widget_definition
gui.get_user_choice
gui.show_dialog
gui.show_help
gui.show_inspector
gui.show_lua_console
gui.show_menu
gui.show_narration
gui.show_popup
gui.show_prompt
gui.show_story
gui.widget

location_set

location_set.clear
location_set.clone
location_set.create
location_set.diff
location_set.empty
location_set.filter
location_set.get
location_set.insert
location_set.inter
location_set.inter_merge
location_set.invert
location_set.iter
location_set.of_map
location_set.of_pairs
location_set.of_raw
location_set.of_shroud_data
location_set.of_triples
location_set.of_wml_var
location_set.random
location_set.remove
location_set.size
location_set.stable_iter
location_set.symm
location_set.to_map
location_set.to_pairs
location_set.to_shroud_data
location_set.to_stable_pairs
location_set.to_triples
location_set.to_wml_var
location_set.union
location_set.union_merge

mathx

mathx.clamp
mathx.lerp
mathx.random
mathx.random_choice
mathx.round
mathx.shuffle

stringx

stringx.anim_split
stringx.escaped_split
stringx.format_conjunct_list
stringx.format_disjunct_list
stringx.iter_range
stringx.iter_ranges
stringx.join
stringx.join_map
stringx.map_split
stringx.parenthetical_split
stringx.parse_range
stringx.quoted_split
stringx.split
stringx.trim
stringx.vformat

unit_test

unit_test.assert
unit_test.assert_approx_equal
unit_test.assert_contains
unit_test.assert_equal
unit_test.assert_greater
unit_test.assert_greater_equal
unit_test.assert_in_range
unit_test.assert_less
unit_test.assert_less_equal
unit_test.assert_not_equal
unit_test.assert_nothrow
unit_test.assert_throws
unit_test.assert_throws_with
unit_test.fail
unit_test.finish
unit_test.fire_wml_menu_item
unit_test.log
unit_test.succeed
unit_test.tostring

wml

wml.all_variables
wml.array_access.get
wml.array_access.get_proxy
wml.array_access.set
wml.array_variables
wml.attribute_count
wml.child_array
wml.child_count
wml.child_range
wml.clone
wml.diff
wml.equal
wml.error
wml.eval_conditional
wml.find_child
wml.fire
wml.get_child
wml.get_nth_child
wml.interpolate
wml.literal
wml.load
wml.matches_filter
wml.merge
wml.parse
wml.parsed
wml.patch
wml.remove_child
wml.remove_children
wml.shallow_literal
wml.shallow_parsed
wml.tag
wml.tostring
wml.tovconfig
wml.valid
wml.variables
wml.variables_proxy

wml-utils

utils.check_key
utils.get_sides
utils.handle_event_commands
utils.optional_side_filter
utils.scoped_var
utils.set_exiting
utils.vwriter

A box with all the Lua functions, each one linking to the page and section they are described in. It was generated using this method. This box should be included in Lua reference page.

This page was last edited on 26 April 2024, at 20:45.