coding special attacks
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.
-
- Posts: 6
- Joined: July 26th, 2015, 5:36 am
coding special attacks
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.
Imagine an attack that excludes a race such as elves . . . orcs.
Re: coding special attacks
Moved to WML Workshop.
See http://wiki.wesnoth.org/AbilitiesWML [filter_opponent] and http://wiki.wesnoth.org/StandardUnitFilter race=
See http://wiki.wesnoth.org/AbilitiesWML [filter_opponent] and http://wiki.wesnoth.org/StandardUnitFilter race=
Re: coding special attacks
Specifically, the [disable] special is what you want.