Triggered Silver Mage Teleportation - Animation?

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
User avatar
BlackOpsElf
Posts: 95
Joined: June 22nd, 2006, 8:25 pm

Triggered Silver Mage Teleportation - Animation?

Post by BlackOpsElf »

In my sixth scenario for "Where Angels Fear to Tread," as part of the start event, I want my Silver Mage to say something, move to a village, teleport to another village on the other side of the map, and then say something again. I know how to do everything except for the teleportation animation of the Silver Mage. Is it possible to trigger this animation (as far as I know, teleporting a unit across the map does not use the Silver Mage's teleport animation)?
Creator and Maintainer of "Where Angels Fear To Tread"
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Re: Triggered Silver Mage Teleportation - Animation?

Post by scott »

BlackOpsElf wrote:In my sixth scenario for "Where Angels Fear to Tread," as part of the start event, I want my Silver Mage to say something, move to a village, teleport to another village on the other side of the map, and then say something again. I know how to do everything except for the teleportation animation of the Silver Mage. Is it possible to trigger this animation (as far as I know, teleporting a unit across the map does not use the Silver Mage's teleport animation)?
There is a mechanism to trigger an animation in WML, but I haven't used it. It may require modification of the silver mage config file. Look for [animate_unit] and [extra_anim] http://www.wesnoth.org/wiki/AnimationWML
Hope springs eternal.
Wesnoth acronym guide.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Post by zookeeper »

Yes, you might need to duplicate the mainline silver mage .cfg, add some things to your version of it and then obviously use that in your campaign (or at least in that particular teleportation spot).

Basically, duplicate the teleportation animation of the silver mage into two [extra_anim] blocks - one for the disappearing part and one for the appearing in the destination. Then just trigger the disappearing animation, move the unit via [teleport] for example and then immediately trigger the second part of the animation. Should work and look correct.
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

zookeeper wrote:Yes, you might need to duplicate the mainline silver mage .cfg, add some things to your version of it and then obviously use that in your campaign (or at least in that particular teleportation spot).

Basically, duplicate the teleportation animation of the silver mage into two [extra_anim] blocks - one for the disappearing part and one for the appearing in the destination. Then just trigger the disappearing animation, move the unit via [teleport] for example and then immediately trigger the second part of the animation. Should work and look correct.
If it works properly, it might be nice to add it to the main image. That's the kind of animation you would expect to be used. Same thing with a gryphon rearing back.
Hope springs eternal.
Wesnoth acronym guide.
Boucman
Inactive Developer
Posts: 2119
Joined: March 31st, 2004, 1:04 pm

Post by Boucman »

post 1.2 I plan to add special calls to the animate_unit action to be able to launch the default actions like attack, move, teleport etc....
Fight key loggers: write some perl using vim
Post Reply