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

WML Workshop • Need Help with hides ability

$
0
0
Hi,
I tried to create a hides ability.
The ability shows up ingame, but it's set to inactive.
Maybe it's a problem with my code, but I couldn't find the problem.

Other abilities (but which are copied from the base game and not changed, like Heal or Leadership) work fine

Code:

Code:

#define ABILITY_SWAMPWALK    # Canned definition of the Swanpwalk ability to be included in an    # [abilities] clause.    [hides]        id=failed swampwalk        name= _ "swampwalk"        female_name= _ "female^swampwalk"        description= _ "This unit can hide in swamps, and remain undetected by its enemies.Enemy units cannot see this unit while it is in swamp, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."        affect_self=yes        [filter]            [filter_location]                terrain=*^Ss*, *^Sm*            [/filter_location]        [/filter]    [/hides]#enddef

Statistics: Posted by FailedGod — Yesterday, 7:20 pm



Viewing all articles
Browse latest Browse all 1164

Trending Articles