Difference between revisions of "AbilitiesWML"

From The Battle for Wesnoth Wiki
(Abilities and their effects: add tags list)
(Normal abilities (for BFW 1.0): tabularise)
Line 7: Line 7:
  
 
== Normal abilities (for BFW 1.0) ==
 
== Normal abilities (for BFW 1.0) ==
* 'heals' unit will heal ''healer_heals_per_turn'' (see [[GameConfigWML]]) hp to all neighbours, up to a total of ''heal_amount''. If a neighbour is poisoned, it will prevent the poison's effect instead of healing.
+
{| class="gallery" style="text-align:left"
* 'cures' unit will heal ''curer_heals_per_turn'' (see [[GameConfigWML]]) hp to all neighbours, up to a total of ''cure_amount''. If a neighbour is poisoned, it will cure the poison instead of healing.
+
|-
* 'regenerates' the unit will heal itself 8 hp per turn. If it is poisoned, it will remove the poison instead of healing.
+
! ambush
* 'leadership' the unit will increase the damage of all neighbouring units by +25% per level difference. (If the neighbouring unit is of a higher level, this effect is negated.)
+
| the unit becomes invisible on forest.  Invisible units cannot be seen by enemies and do not possess zone of control, although if an enemy moves next to one, it becomes visible again.
* 'illuminates' all neighbouring hex will be "illuminated", in other words have a different time of day (See [[TimeWML]]). Typically, this will be one step brighter.
+
|-
* 'teleport' the unit can move between any two allied villages for one move point
+
! cures
* 'skirmisher' the unit ignores zone of control when moving, but still cannot move directly through an enemy unit
+
| unit will heal ''curer_heals_per_turn'' (see [[GameConfigWML]]) hp to all neighbours, up to a total of ''cure_amount''. If a neighbour is poisoned, it will cure the poison instead of healing.
* 'steadfast' the unit takes half normal damage when it did not initiate the attack.
+
|-
* 'ambush' the unit becomes invisible on forest.  Invisible units cannot be seen by enemies and do not possess zone of control, although if an enemy moves next to one, it becomes visible again.
+
! heals
* 'nightstalk' the unit becomes invisible during night.
+
| unit will heal ''healer_heals_per_turn'' (see [[GameConfigWML]]) hp to all neighbours, up to a total of ''heal_amount''. If a neighbour is poisoned, it will prevent the poison's effect instead of healing.
 +
|-
 +
! illuminates
 +
| all neighbouring hex will be "illuminated", in other words have a different time of day (See [[TimeWML]]). Typically, this will be one step brighter.
 +
|-
 +
! leadership
 +
| the unit will increase the damage of all neighbouring units by +25% per level difference. (If the neighbouring unit is of a higher level, this effect is negated.)
 +
|-
 +
! nightstalk
 +
| the unit becomes invisible during night.
 +
|-
 +
! regenerates
 +
| the unit will heal itself 8 hp per turn. If it is poisoned, it will remove the poison instead of healing.
 +
|-
 +
! skirmisher
 +
| the unit ignores zone of control when moving, but still cannot move directly through an enemy unit
 +
|-
 +
! steadfast
 +
| the unit takes half normal damage when it did not initiate the attack.
 +
|-
 +
! teleport
 +
| the unit can move between any two allied villages for one move point
 +
|}
  
 
== Normal abilities {{DevFeature}} ==
 
== Normal abilities {{DevFeature}} ==

Revision as of 01:19, 22 March 2006

[edit]WML Tags

A:

abilities, about, add_ai_behavior, advance, advanced_preference, advancefrom, advancement, advances, affect_adjacent, ai, allied_with, allow_end_turn, allow_extra_recruit, allow_recruit, allow_undo, and, animate, animate_unit, animation, aspect, attack, attack_anim, attacks, avoid;

B:

base_unit, berserk, binary_path, break, brush;

C:

campaign, cancel_action, candidate_action, capture_village, case, chance_to_hit, change_theme, chat, choose, clear_global_variable, clear_menu_item, clear_variable, color_adjust, color_range, command (action, replay), continue, criteria;

D:

damage, death, deaths, default, defend, defends, defense, delay, deprecated_message, destination, difficulty, disable, disallow_end_turn, disallow_extra_recruit, disallow_recruit, do, do_command, drains, draw_weapon_anim;

E:

editor_group, editor_music, editor_times, effect, else (action, animation), elseif, endlevel, end_turn (action, replay), enemy_of, engine, entry, era, event, extra_anim;

F:

facet, facing, fake_unit, false, feedback, female, filter (concept, event), filter_adjacent, filter_adjacent_location, filter_attack, filter_attacker, filter_base_value, filter_condition, filter_defender, filter_enemy, filter_location, filter_opponent, filter_own, filter_owner, filter_radius, filter_recall, filter_second, filter_second_attack, filter_self, filter_side, filter_vision, filter_weapon, filter_wml, find_path, fire_event, firststrike, floating_text, for, foreach, frame, full_heal;

G:

game_config, get_global_variable, goal, gold, gold_carryover;

H:

harm_unit, has_ally, has_attack, has_unit, have_location, have_unit, heal_on_hit, heal_unit, healed_anim, healing_anim, heals, hide_help, hide_unit, hides;

I:

idle_anim, if (action, animation), illuminates, image, init_side, insert_tag, inspect, item, item_group;

J:

jamming_costs, join;

K:

kill, killed;

L:

label, language, leader, leader_goal, leadership, leading_anim, levelin_anim, levelout_anim, lift_fog, limit, literal, load_resource, locale, lock_view, lua;

M:

male, menu_item, message, micro_ai, missile_frame, modification, modifications, modify_ai, modify_side, modify_turns, modify_unit, modify_unit_type, move, move_unit, move_unit_fake, move_units_fake, movement_anim, movement costs, movetype, multiplayer, multiplayer_side, music;

N:

not, note;

O:

object, objective, objectives, on_undo, open_help, option, options, or;

P:

part, petrifies, petrify, place_shroud, plague, poison, portrait, post_movement_anim, pre_movement_anim, primary_attack, primary_unit, print, put_to_recall_list;

R:

race, random_placement, recall (action, replay), recalls, recruit, recruit_anim, recruiting_anim, recruits, redraw, regenerate, remove_event, remove_item, remove_object, remove_shroud, remove_sound_source, remove_time_area, remove_unit_overlay, repeat, replace_map, replace_schedule, replay, replay_start, reset_fog, resistance (ability, unit), resistance_defaults, resource, return, role, rule;

S:

save, scenario, scroll, scroll_to, scroll_to_unit, secondary_attack, secondary_unit, section, select_unit, sequence, set_extra_recruit, set_global_variable, set_menu_item, set_recruit, set_specials, set_variable, set_variables, sheath_weapon_anim, show_if (message, set_menu_item), show_objectives, side, skirmisher, slow, snapshot, sound, sound_source, source (replay, teleport), special_note, specials, split, stage, standing_anim, statistics, status, store_gold, store_items, store_locations, store_map_dimensions, store_reachable_locations, store_relative_direction, store_side, store_starting_location, store_time_of_day, store_turns, store_unit, store_unit_defense, store_unit_type, store_unit_type_ids, store_villages, story, swarm, switch, sync_variable;

T:

target, team, teleport (ability, action), teleport_anim, terrain, terrain_defaults, terrain_graphics, terrain_mask, terrain_type, test, test_condition, text_input, textdomain, theme, then, tile, time, time_area, topic, toplevel, trait, transform_unit, traveler, true, tunnel, tutorial;

U:

unhide_unit, unit, unit_overlay, unit_type, unit_worth, units, unlock_view, unpetrify, unstore_unit, unsynced;

V:

value, variable, variables, variant, variation, victory_anim, village, vision_costs, volume;

W:

while, wml_message, wml_schema;

Z:

zoom;

Abilities and their effects

There are two types of abilities: ones that apply to units (called abilities) and weapon-based (called specials). A unit may have multiple abilities, but each attack can only have at most one special.

Normal abilities (for BFW 1.0)

Normal abilities Template:DevFeature

  • 'submerge' the unit becomes invisible in deep water.

Attack specials

  • 'charge' when attacking, both this weapon and defender get double damage.
  • 'poison' when this weapon hits, the defender becomes poisoned (see [status], SingleUnitWML).
  • 'slow' when this weapon hits, the defender becomes slowed (see [status], SingleUnitWML).
  • 'stone' when this weapon hits, the defender turns to stone (see [status], SingleUnitWML).
  • 'magical' this weapon always has a 70% chance of hitting.
  • 'marksman' when attacking, this weapon has a minimum of 60% chance of hitting.
  • 'drain' The controller of this weapon gains health equal to half the damage done (rounded down) whenever this attack hits.
  • 'plague' The controller of this weapon is copied onto the tile that any unit this attack killed was on.
  • 'backstab' doubles damage whenever there is a unit on the opposite side (location) of the defending unit that distracts it. In 1.0.x the distracting unit must be on the same side (player) as the attacker. Template:DevFeature: the distracting unit must be an enemy of the defending unit and not incapacitated (e.g. turned to stone).
  • 'firststrike' when this weapon is used to defend, the battle proceeds as if it were the attacker (i.e. it attacks first).
  • 'berserk' forces the combat to continue until either the attacker or the defender is killed, or until 30 rounds have passed (whichever comes first.)

See Also