wesnoth/data/core/macros/weapon_specials.cfg
doofus-01 fafa0e7b13
1.19 - Coastal Raider (new ship) (#9616)
* add new ship 'coastal raider', sprite and standing/moving animations mostly by Vilaliy Bakal

* fix raider portrait

* add WEAPON_SPECIAL_NAVAL_RAM

* Iron Raider variant

* better halo glow for fireship

* change race=transport to race=ship
2024-12-25 17:53:26 -08:00

251 lines
9.3 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#textdomain wesnoth-help
# Weapon special macros to be included in the SingleWML description of a unit.
#define WEAPON_SPECIAL_UNWIELDY
[disable]
id=unwieldy
name=_"unwieldy"
description=_"This attack can only be used offensively."
active_on=defense
special_note=_ "This unit has an unwieldy weapon, which cannot be used defensively."
[/disable]
#enddef
#define WEAPON_SPECIAL_BERSERK
# Canned definition of the Berserk ability to be included in a
# [specials] clause.
[berserk]
id=berserk
name= _ "berserk"
description= _ "Whether used offensively or defensively, this attack presses the engagement until one of the combatants is slain, or 30 rounds of attacks have occurred."
special_note={INTERNAL:SPECIAL_NOTES_BERSERK}
value=30
[/berserk]
#enddef
#define WEAPON_SPECIAL_BACKSTAB
# Canned definition of the Backstab ability to be included in a
# [specials] clause.
[damage]
id=backstab
name= _ "backstab"
description= _ "When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
special_note={INTERNAL:SPECIAL_NOTES_BACKSTAB}
multiply=2
active_on=offense
[filter_opponent]
formula="
enemy_of(self, flanker) and not flanker.petrified
where
flanker = unit_at(direction_from(loc, other.facing))
"
[/filter_opponent]
[/damage]
#enddef
#define WEAPON_SPECIAL_PLAGUE_TYPE TYPE
# Canned definition of the Plague ability to be included in a
# [specials] clause (with type specifier).
[plague]
id=plague({TYPE})
name= _ "plague"
description= _ "When a unit is killed by a Plague attack, that unit is replaced with a unit on the same side as the unit with the Plague attack. This doesnt work on Undead or units in villages."
type={TYPE}
[/plague]
#enddef
#define WEAPON_SPECIAL_PLAGUE
# Canned definition of the Plague ability to be included in a
# [specials] clause.
[plague]
id=plague
name= _ "plague"
description= _ "When a unit is killed by a Plague attack, that unit is replaced with a Walking Corpse on the same side as the unit with the Plague attack. This doesnt work on Undead or units in villages."
special_note={INTERNAL:SPECIAL_NOTES_PLAGUE}
type=Walking Corpse
[/plague]
#enddef
#define WEAPON_SPECIAL_SLOW
# Canned definition of the Slow ability to be included in a
# [specials] clause.
[slow]
id=slow
name= _ "slows"
description= _ "This attack slows the target until it ends a turn. Slow halves the damage caused by attacks and the movement cost for a slowed unit is doubled. A unit that is slowed will feature a snail icon in its sidebar information when it is selected."
special_note={INTERNAL:SPECIAL_NOTES_SLOW}
[/slow]
#enddef
#define WEAPON_SPECIAL_PETRIFY
# Canned definition of the Petrify ability to be included in a
# [specials] clause.
[petrifies]
id=petrifies
name= _ "petrifies"
description= _ "This attack petrifies the target, turning it to stone. Units that have been petrified may not move or attack."
special_note={INTERNAL:SPECIAL_NOTES_PETRIFY}
[/petrifies]
#enddef
#define WEAPON_SPECIAL_MARKSMAN
# Canned definition of the Marksman ability to be included in a
# [specials] clause.
[chance_to_hit]
id=marksman
name= _ "marksman"
description= _ "When used offensively, this attack always has at least a 60% chance to hit."
special_note={INTERNAL:SPECIAL_NOTES_MARKSMAN}
value=60
cumulative=yes
active_on=offense
[/chance_to_hit]
#enddef
#define WEAPON_SPECIAL_MAGICAL
# Canned definition of the Magical (targeting) ability to be included in a
# [specials] clause.
[chance_to_hit]
id=magical
name= _ "magical"
description= _ "This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
special_note={INTERNAL:SPECIAL_NOTES_MAGICAL}
value=70
cumulative=no
[/chance_to_hit]
#enddef
#define WEAPON_SPECIAL_NAVAL_RAM
# Canned definition of the Naval Ram ability to be included in a
# [specials] clause.
[disable]
id=naval_ram
name=_"naval ram"
description=_"This attack can only be used against units in water terrain."
[filter_opponent]
[filter_location]
[not]
terrain="W*,S*"
[/not]
[/filter_location]
[/filter_opponent]
special_note=_ "This unit has an attack that can only be used against units in watery terrain."
[/disable]
[damage]
id=charge
name= _ "charge"
description= _ "When used offensively, this attack deals double damage to the target. It also causes this unit to take double damage from the targets counterattack."
special_note={INTERNAL:SPECIAL_NOTES_CHARGE}
multiply=2
apply_to=both
active_on=offense
[/damage]
#enddef
#define WEAPON_SPECIAL_HONED
# Canned definition of the Honed ability to be included in a
# [specials] clause.
[chance_to_hit]
id=honed
name= _ "honed"
description= _ "This attack is 10% more accurate than other attacks."
special_note= _ "This units “honed” attack is slightly more accurate than other attacks."
add=10
cumulative=yes
[/chance_to_hit]
#enddef
#define WEAPON_SPECIAL_SWARM
# Canned definition of the Swarm ability to be included in a
# [specials] clause.
[swarm]
id=swarm
name= _ "swarm"
description= _ "The number of strikes of this attack decreases when the unit is wounded. The number of strikes is proportional to the percentage of its of maximum HP the unit has. For example a unit with 3/4 of its maximum HP will get 3/4 of the number of strikes."
special_note={INTERNAL:SPECIAL_NOTES_SWARM}
[/swarm]
#enddef
#define WEAPON_SPECIAL_CHARGE
# Canned definition of the Charge ability to be included in a
# [specials] clause.
[damage]
id=charge
name= _ "charge"
description= _ "When used offensively, this attack deals double damage to the target. It also causes this unit to take double damage from the targets counterattack."
special_note={INTERNAL:SPECIAL_NOTES_CHARGE}
multiply=2
apply_to=both
active_on=offense
[/damage]
#enddef
#define WEAPON_SPECIAL_GUARD
# Canned definition of the Guard ability to be included in a
# [specials] clause.
[damage]
id=guard
name= _ "guard"
description= _ "This attack blocks half of the damage from its targets strikes."
special_note= _ "This units guarding attack can halve incoming damage, but only when used in combat."
multiply=0.5
apply_to=opponent
[/damage]
#enddef
#define WEAPON_SPECIAL_DRAIN
# Canned definition of the Drain ability to be included in a
# [specials] clause.
[drains]
id=drains
name= _ "drains"
description= _ "This unit drains health from living units, healing itself for half the amount of damage it deals (rounded down)."
special_note={INTERNAL:SPECIAL_NOTES_DRAIN}
[/drains]
#enddef
#define WEAPON_SPECIAL_FIRSTSTRIKE
# Canned definition of the First-strike ability to be included in a
# [specials] clause.
[firststrike]
id=firststrike
name= _ "first strike"
description= _ "This unit always strikes first with this attack, even if they are defending."
special_note={INTERNAL:SPECIAL_NOTES_FIRSTSTRIKE}
[/firststrike]
#enddef
#define WEAPON_SPECIAL_POISON
# Canned definition of the Poison ability to be included in a
# [specials] clause.
[poison]
id=poison
name= _ "poison"
description= _ "This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison cannot, of itself, kill a unit."
special_note={INTERNAL:SPECIAL_NOTES_POISON}
[/poison]
#enddef
#define WEAPON_SPECIAL_STUN
# Canned definition of the Stun ability to be included in a
# [specials] clause.
[stun]
id=stun
name= _ "stun"
description= _ "This attack hits so hard that the opponent is dazed and can no longer enforce a zone of control. The effect wears off on the opponents next turn."
special_note=_ "This unit is able to stun its enemies, disrupting their zones of control."
[/stun]
#enddef
#define WEAPON_SPECIAL_ARCANE
# Canned definition of the Arcane ability to be included in a
# [specials] clause.
[damage_type]
id=arcane_damage
name= _ "arcane"
description= _ "This attack combines the arcane type with the type of weapon used so that resistance to the arcane type does not penalize the user."
special_note=_ "This unit can use the arcane type when the opponent is particularly sensitive to it in relation to the weapon on which it is applied."
alternative_type=arcane
[/damage_type]
#enddef