coding special attacks

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
matthew619
Posts: 6
Joined: July 26th, 2015, 5:36 am

coding special attacks

Post by matthew619 »

I want to allow an attack against anyone not of a specific race, how would I code that?

Imagine an attack that excludes a race such as elves . . . orcs.

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

Re: coding special attacks

Post by Ravana »

Moved to WML Workshop.

See http://wiki.wesnoth.org/AbilitiesWML [filter_opponent] and http://wiki.wesnoth.org/StandardUnitFilter race=

User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: coding special attacks

Post by zookeeper »

Specifically, the [disable] special is what you want.

Post Reply