Template:Lua Functions

From The Battle for Wesnoth Wiki
Revision as of 18:39, 18 April 2024 by Laela (talk | contribs)

wesnoth.dofile
wesnoth.require
wesnoth.textdomain
wesnoth.log
wesnoth.as_text
wesnoth.simulate_combat
wesnoth.name_generator
wesnoth.compile_formula
wesnoth.eval_formula
wesnoth.version
wesnoth.current_version
wesnoth.ms_since_init
wesnoth.deprecated_message
wesnoth.deprecate_api
wesnoth.type
wesnoth.named_tuple
wesnoth.get_language
wesnoth.print_attributes
wesnoth.persistent_tags
wesnoth.wml_actions
wesnoth.wml_conditionals
wesnoth.effects
wesnoth.micro_ais
wesnoth.custom_synced_commands
wesnoth.colors
wesnoth.current
wesnoth.game_config
wesnoth.races
wesnoth.scenario
wesnoth.terrain_types
wesnoth.unit_types
wesnoth.audio
wesnoth.achievements
wesnoth.game_events
wesnoth.map
wesnoth.interface
wesnoth.paths
wesnoth.schedule
wesnoth.sides
wesnoth.sync
wesnoth.units
wesnoth.units.advance
wesnoth.units.clone
wesnoth.units.erase
wesnoth.units.extract
wesnoth.units.matches
wesnoth.units.find_attack
wesnoth.units.to_map
wesnoth.units.to_recall
wesnoth.units.transform
wesnoth.units.select
wesnoth.units.scroll_to
wesnoth.units.ability
wesnoth.units.chance_to_be_hit
wesnoth.units.defense_on
wesnoth.unit.resistance_against
wesnoth.units.jamming_on
wesnoth.units.movement_on
wesnoth.units.vision_on
wesnoth.units.add_modification
wesnoth.units.remove_modifications
wesnoth.units.create_animator
wesnoth.units.create
wesnoth.units.find_on_map
wesnoth.units.find_on_recall
wesnoth.units.find
wesnoth.units.get
wesnoth.units.get_hovered
wesnoth.schedule.get_time_of_day
wesnoth.schedule.get_illumination
wesnoth.schedule.replace
wesnoth.sides.is_enemy
wesnoth.sides.matches
wesnoth.sides.set_id
wesnoth.sides.place_fog
wesnoth.sides.remove_fog
wesnoth.sides.is_fogged
wesnoth.sides.place_shroud
wesnoth.sides.override_shroud
wesnoth.sides.remove_shroud
wesnoth.sides.is_shrouded
wesnoth.sides.switch_ai
wesnoth.sides.append_ai
wesnoth.sides.add_ai_component
wesnoth.sides.change_ai_component
wesnoth.sides.delete_ai_component
wesnoth.sides.get
wesnoth.sides.find
wesnoth.sides.iter
wesnoth.sides.create
wesnoth.sides.debug_ai
wesnoth.sync.evaluate_single
wesnoth.sync.evaluate_multiple
wesnoth.sync.run_unsynced
wesnoth.sync.invoke_command
wesnoth.map.find
wesnoth.map.get
wesnoth.map.matches
wesnoth.map.on_board
wesnoth.map.on_border
wesnoth.map.iter
wesnoth.map.read_location
wesnoth.map.split_terrain_code
wesnoth.map.make_bitmap
wesnoth.map.parse_bitmap
wesnoth.map.terrain_mask
wesnoth.map.add_label
wesnoth.map.remove_label
wesnoth.map.get_label
wesnoth.map.place_area
wesnoth.map.remove_area
wesnoth.map.get_area
wesnoth.map.set_owner
wesnoth.map.get_owner
wesnoth.map.create
wesnoth.map.generate
wesnoth.map.generate_height_map
wesnoth.map.get_direction
wesnoth.map.get_relative_dir
wesnoth.map.rotate_right_around_center
wesnoth.map.get_adjacent_hexes
wesnoth.map.get_hexes_in_radius
wesnoth.map.are_hexes_adjacent
wesnoth.map.distance_between
wesnoth.audio.play
wesnoth.audio.volume
wesnoth.audio.sources
wesnoth.audio.music_list
wesnoth.audio.music_list.current
wesnoth.audio.music_list.previous
wesnoth.audio.music_list.volume
wesnoth.audio.music_list.all
wesnoth.audio.music_list.add
wesnoth.audio.music_list.remove
wesnoth.audio.music_list.clear
wesnoth.audio.music_list.next
wesnoth.audio.music_list.play
wesnoth.paths.find_path
wesnoth.paths.find_vacant_hex
wesnoth.paths.find_reach
wesnoth.paths.find_vision_range
wesnoth.paths.find_cost_map
wesnoth.game_events.add
wesnoth.game_events.add_repeating
wesnoth.game_events.add_menu
wesnoth.game_events.add_wml
wesnoth.game_events.remove
wesnoth.game_events.fire
wesnoth.game_events.fire_by_id
wesnoth.game_events.on_event
wesnoth.game_events.on_load
wesnoth.game_events.on_save
wesnoth.game_events.on_mouse_action
wesnoth.game_events.on_mouse_button
wesnoth.game_events.on_mouse_move
wesnoth.achievements.set
wesnoth.achievements.set_sub_achievement
wesnoth.achievements.has
wesnoth.achievements.has_sub_achievement
wesnoth.achievements.get
wesnoth.achievements.progress
gui.show_menu
gui.show_narration
gui.get_user_choice
gui.show_popup
gui.show_prompt
gui.show_story
gui.show_dialog
gui.add_widget_definition
gui.widget
gui.show_help
gui.show_inspector
gui.show_lua_console
wml.attribute_count
wml.child_array
wml.child_count
wml.child_range
wml.find_child
wml.get_child
wml.get_nth_child
wml.remove_child
wml.remove_children
wml.tag
wml.clone
wml.equal
wml.valid
wml.matches_filter
wml.load
wml.parse
wml.merge
wml.diff
wml.patch
wml.interpolate
wml.tostring
wml.tovconfig
wml.literal
wml.parsed
wml.shallow_literal
wml.shallow_parsed
wml.all_variables
wml.variables
wml.variables_proxy
wml.array_access.get
wml.array_access.get_proxy
wml.array_access.set
wml.array_variables
wml.eval_conditional
wml.fire
wml.error
location_set.create
location_set.of_raw
location_set.of_pairs
location_set.of_triples
location_set.of_map
location_set.of_wml_var
location_set.of_shroud_data
location_set.to_pairs
location_set.to_stable_pairs
location_set.to_triples
location_set.to_map
location_set.to_wml_var
location_set.to_shroud_data
location_set.clone
location_set.get
location_set.insert
location_set.remove
location_set.clear
location_set.size
location_set.empty
location_set.iter
location_set.stable_iter
location_set.filter
location_set.union
location_set.union_merge
location_set.inter
location_set.inter_merge
location_set.diff
location_set.symm
location_set.invert
location_set.random
functional.filter
functional.filter_map
functional.find
functional.find_map
functional.choose
functional.choose_map
functional.map
functional.map_array
functional.reduce
functional.take_while
functional.zip
stringx.split
stringx.escaped_split
stringx.quoted_split
stringx.anim_split
stringx.parenthetical_split
stringx.map_split
stringx.join
stringx.join_map
stringx.vformat
stringx.format_conjunct_list
stringx.format_disjunct_list
stringx.trim
stringx.parse_range
stringx.iter_range
stringx.iter_ranges
mathx.clamp
mathx.lerp
mathx.random
mathx.random_choice
mathx.round
mathx.shuffle
filesystem.read_file
filesystem.have_file
filesystem.canonical_path
filesystem.image_size
filesystem.have_asset
filesystem.resolve_asset
ai.read_only
ai.side
ai.aspects
ai.get_attacks
ai.get_targets
ai.suitable_keep
ai.attack
ai.check_attack
ai.move
ai.move_full
ai.check_move
ai.recall
ai.check_recall
ai.recruit
ai.check_recruit
ai.stopunit_attacks
ai.stopunit_moves
ai.stopunit_all
ai.check_stopunit
ai.fallback_human
utils.check_key
utils.vwriter
utils.get_sides
utils.optional_side_filter
utils.handle_event_commands
utils.set_exiting
utils.scoped_var
unit_test.fail
unit_test.succeed
unit_test.finish
unit_test.log
unit_test.tostring
unit_test.fire_wml_menu_item
unit_test.assert
unit_test.assert_equal
unit_test.assert_not_equal
unit_test.assert_approx_equal
unit_test.assert_greater
unit_test.assert_greater_equal
unit_test.assert_less
unit_test.assert_less_equal
unit_test.assert_in_range
unit_test.assert_contains
unit_test.assert_nothrow
unit_test.assert_throws
unit_test.assert_throws_with
wesnoth.interface.delay
wesnoth.interface.deselect_hex
wesnoth.interface.highlight_hex
wesnoth.interface.select_unit
wesnoth.interface.float_label
wesnoth.interface.get_displayed_unit
wesnoth.interface.get_hovered_hex
wesnoth.interface.get_selected_hex
wesnoth.interface.get_viewing_side
wesnoth.interface.lock
wesnoth.interface.is_locked
wesnoth.interface.scroll_to_hex
wesnoth.interface.scroll
wesnoth.interface.zoom
wesnoth.interface.skip_messages
wesnoth.interface.is_skipping_messages
wesnoth.interface.add_chat_message
wesnoth.interface.clear_chat_messages
wesnoth.interface.add_item_image
wesnoth.interface.add_item_halo
wesnoth.interface.remove_item
wesnoth.interface.get_items
wesnoth.interface.add_hex_overlay
wesnoth.interface.remove_hex_overlay
wesnoth.interface.end_turn
wesnoth.interface.allow_end_turn
wesnoth.interface.color_adjust
wesnoth.interface.add_overlay_text
wesnoth.interface.handle_user_interact