Additional damage to poisoned targets

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
Andrzej127
Posts: 23
Joined: July 26th, 2019, 4:10 pm

Additional damage to poisoned targets

Post by Andrzej127 »

How to make an attack deal additional damage to poisoned targets?

User avatar
Ravana
Forum Moderator
Posts: 2442
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Additional damage to poisoned targets

Post by Ravana »

[damage] with filter that checks enemy has status with poison.

Andrzej127
Posts: 23
Joined: July 26th, 2019, 4:10 pm

Re: Additional damage to poisoned targets

Post by Andrzej127 »

I did something like this:

Code: Select all

      [filter]
        status=poisoned
        [damage]
          add=2
        [/damage]
      [/filter]
It's not working.
I also like to make additional damage to be of different type than base damage. I know there was some add-on that did that but I forgot it's name.

User avatar
Ravana
Forum Moderator
Posts: 2442
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Additional damage to poisoned targets

Post by Ravana »

Then you need to use event.

User avatar
MoonyDragon
Posts: 68
Joined: November 29th, 2017, 5:46 pm

Re: Additional damage to poisoned targets

Post by MoonyDragon »

I think Ravana meant something like the code below. It is a weapon special that goes inside the [specials] tag of your unit's attack.

Code: Select all

[damage]
    id=mercy
    name= _"mercy"
    description= _"This attack deals double damage to poisoned units."
    
    [filter_opponent]
        status=poisoned
    [/filter_opponent]
    
    multiply=2
[/damage]
The world is not black and white,
It's just us who are colorblind.

Post Reply