Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 2257

WML Workshop • More same [resistance]

$
0
0
Hi,
working on custom ability;
How to make this ability so more units with this ability can give another unit protection at once?

Code:

#define ABILITY_PROTECTION    [resistance] #TODO only if attacker adjacent to this unit too        id=protection        name= _ "protection"        female_name= _ "female^protection"        description=_"#TODO"        special_note= _ "#TODO"        add=20        max_value=50        affect_self=no        [affect_adjacent]            adjacent=n,ne,se,s,sw,nw            [filter]                formula="(hitpoints/max_hitpoints) < (other.hitpoints/other.max_hitpoints)"            [/filter]        [/affect_adjacent]        [filter_base_value]            less_than=50        [/filter_base_value]        cumulative=yes    [/resistance]#enddef

Statistics: Posted by ZombieKnight — Yesterday, 6:17 pm



Viewing all articles
Browse latest Browse all 2257

Trending Articles