Fear ability - what's wrong ?

The place to post your WML questions and answers.

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.
Post Reply
User avatar
Noyga
Inactive Developer
Posts: 1790
Joined: September 26th, 2005, 5:56 pm
Location: France

Fear ability - what's wrong ?

Post by Noyga »

I tried to implement this (a more complete code is here : http://bluebloup.free.fr/wesnoth/fear.cfg)

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
Btw, it looks that it doesn't have any effect :(
Does anyone see what is wrong (if it is not a bug in wesnoth) ?
Xan
Inactive Developer
Posts: 258
Joined: August 28th, 2005, 3:05 pm
Contact:

Post by Xan »

It's a bug; rather easy to fix, though, so I'll do it as soon as I have time.
"It is time people learned about their failures and my successes."
User avatar
Jetrel
Posts: 7242
Joined: February 23rd, 2004, 3:36 am
Location: Midwest US

Post by Jetrel »

:) By the way, gentlemen - I just wanted to applaud your work towards generalizing abilities and such. I'd hoped for this way back in the day, and now it's coming to fruition. Thanks.
User avatar
Elvish_Pillager
Posts: 8137
Joined: May 28th, 2004, 10:21 am
Location: Everywhere you think, nowhere you can possibly imagine.
Contact:

Post by Elvish_Pillager »

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. :P
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.
fmunoz
Founding Artist
Posts: 1469
Joined: August 17th, 2003, 10:04 am
Location: Spain
Contact:

Post by fmunoz »

The -100 to damage if a level 0 attacks a 3rd level seems a bit too much...a -50% should be the maximun damage reduction.

Defensive powers should be never as powerfull as offensive ones otherwise no point in combat (remember those old pesky guardian dwarves).
User avatar
Noyga
Inactive Developer
Posts: 1790
Joined: September 26th, 2005, 5:56 pm
Location: France

Post by Noyga »

You're right it's way too strong at high levels.
Btw it was currenlty more a test to see if it works than something balanced...
Post Reply