Next problem: new ability is working.... too well

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
Kapoue_II
Posts: 203
Joined: October 11th, 2010, 9:41 am

Next problem: new ability is working.... too well

Post by Kapoue_II »

I have rewritten my elvish red mage unit to take away its leadership, and replace it with "fear". Fear looks like this:

Code: Select all

[abilities]
        [leadership]
          value=-25
          id=fear
          affect_allies=no
          affect_enemies=yes
          affect_self=no
          cumulative=yes
          name= _ "Fear"
          description= _ "All enemies are scared of this unit, and fight worse"
         [affect_adjacent]
          adjacent=n,ne,se,s,sw,nw
         [/affect_adjacent]
        [/leadership]
    [/abilities]
However , when i call up the statistics in the game........ it says that the unit (the enemy) is losing -100025% on its attack. So..... every single thing is working EXCEPT for the amount the enemy is penalised. How do i fix it?

SkeleRanger
Posts: 151
Joined: August 12th, 2008, 11:10 pm
Location: The Isle of Alduin

Re: Next problem: new ability is working.... too well

Post by SkeleRanger »

Try setting cumulative to false.
'We've strayed into a zone with a high magical index... Don't ask me how. Once upon a time a really powerful magic field must have been generated here, and we're feeling the after-effects.'
'Precisely,' said a passing bush.
--Terry Pratchett
Tale of a Mage(finished)
Art for Tale of a Mage

Elmor
Posts: 152
Joined: May 5th, 2010, 8:19 am

Re: Next problem: new ability is working.... too well

Post by Elmor »

its says, but how it actually works?

User avatar
Kapoue_II
Posts: 203
Joined: October 11th, 2010, 9:41 am

Re: Next problem: new ability is working.... too well

Post by Kapoue_II »

Thank you, the cumalative thing fixed it.

As for how does it work........ Leadership gives bonus to your team right? But intead of 25% I put -25%-so it makes them fight weaker. Then i changed "affect allies" to "no" and affect enemies to "yes". Now its the enemy who is losing 25% attack.

Post Reply