H2 make ability animation similar to leadership

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
Tet
Posts: 391
Joined: February 18th, 2009, 5:11 am

H2 make ability animation similar to leadership

Post by Tet »

I want to make a animation for the ability Distract. How can I code that in WML?
Examples are Leadership or Healing, but where are they coded?
My Temple Project: http://forums.wesnoth.org/viewtopic.php?f=23&t=29800
This is "must-play" campaign! Don´t read the thread, unless you need help. http://forums.wesnoth.org/viewtopic.php?f=8&t=31895
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: H2 make ability animation similar to leadership

Post by Max »

http://wiki.wesnoth.org/AnimationWML

giving the unit a second standing animation could work - but i can't see how you could filter for adjacent units (i guess you only want to display it when enemy units are standing next to your unit)...
Tet
Posts: 391
Joined: February 18th, 2009, 5:11 am

Re: H2 make ability animation similar to leadership

Post by Tet »

To be precise. I want the animation to be displayed when the ability is used.
Similar to leadership or Healing. In my case it is the ability Distract. But could be anything.

Giving it a thought I could proberbly make a Leadership clone with the Distract Ability in wml. Thus should let me use the leadership animation.

However are there other options?
My Temple Project: http://forums.wesnoth.org/viewtopic.php?f=23&t=29800
This is "must-play" campaign! Don´t read the thread, unless you need help. http://forums.wesnoth.org/viewtopic.php?f=8&t=31895
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: H2 make ability animation similar to leadership

Post by zookeeper »

Tet wrote:To be precise. I want the animation to be displayed when the ability is used.
When is the ability used? Be precise.
User avatar
pauxlo
Posts: 1047
Joined: September 19th, 2006, 8:54 pm

Re: H2 make ability animation similar to leadership

Post by pauxlo »

As I understand, the distract ability gives adjacent friendly units a skirmisher-like power.
So, the animation would be played while the friendly units move around the enemies, where they could not move otherwise because of ZOC.
Tet
Posts: 391
Joined: February 18th, 2009, 5:11 am

Re: H2 make ability animation similar to leadership

Post by Tet »

Exactly. I think it would be cool if the distract using unit does some crazy moves, while other units pass by.
I was not awere that this is a major challenge to implement. I expected an easy solution. I still think it is worthwhile to have other ability animations. Please support this topic.
My Temple Project: http://forums.wesnoth.org/viewtopic.php?f=23&t=29800
This is "must-play" campaign! Don´t read the thread, unless you need help. http://forums.wesnoth.org/viewtopic.php?f=8&t=31895
Post Reply