Fear ability - what's wrong ?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Fear ability - what's wrong ?
I tried to implement this (a more complete code is here : http://bluebloup.free.fr/wesnoth/fear.cfg)
Btw, it looks that it doesn't have any effect
Does anyone see what is wrong (if it is not a bug in wesnoth) ?
Code: Select all
#define ABILITY_FEAR_LEVEL_2
[leadership]
id=fear
value=-50
cumulative=no
name= _ "fear"
description= _ "Fear:
This unit can frighten enemy units that are next to it, making them fight worse.
Adjacent enemy units of lower level will do less damage in battle. When a unit adjacent to, of a lower level than, and is an enemy of the unit with Fear engages in combat, its attacks do 25% less damage times the difference in their levels."
affect_self=no
affect_allies=no
affect_enemies=yes
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=0
[/filter]
[/affect_adjacent]
[/leadership]
[leadership]
id=fear
value=-25
cumulative=no
affect_self=no
affect_allies=no
affect_enemies=yes
[affect_adjacent]
adjacent=n,ne,se,s,sw,nw
[filter]
level=1
[/filter]
[/affect_adjacent]
[/leadership]
#enddef
Does anyone see what is wrong (if it is not a bug in wesnoth) ?
- Elvish_Pillager
- Posts: 8137
- Joined: May 28th, 2004, 10:21 am
- Location: Everywhere you think, nowhere you can possibly imagine.
- Contact:
I'll take the opportunity to join Jetryl in applause. I don't think I've properly thanked you(pl) yet for these wonderful new toys for WMLers like me.
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.