URL:
<http://gna.org/bugs/?11388>
Summary: Add a [defense] ability tag
Project: Battle for Wesnoth
Submitted by: zookeeper
Submitted on: Friday 28/03/08 at 12:22
Category: Feature Request
Severity: 1 - Wish
Priority: 3 - Low
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: all
_______________________________________________________
Details:
There already exists the [resistance] ability tag for abilities modifying the
resistance of units, but no way to lower/raise the actual defense a unit has
on their current terrain.
So I'd propose adding a [defense] tag which could do that. A simple example
of use would look like this:
[defense]
id=defense_help
description="gives all adjacent friendlies +10% defense, up to a max of
70%"
affect_allies=yes
affect_self=no
value=10
max_value=70
cumulative=yes
# using cumulative=no would set the
# unit's defense to 10% instead
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[/affect_adjacent]
[/defense]
The value filtered for in the [filter_base_value] tag (if used) would be the
defense value the unit normally has on the terrain it's standing on.
Note that this should only affect the base terrain defense and thus not
affect how magical or marksman work against units that receive a defense
bonus using this tag.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11388>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs