message WML auto continue? Is this a feature request or idea?

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
Wussel
Posts: 623
Joined: July 28th, 2012, 5:58 am

message WML auto continue? Is this a feature request or idea?

Post by Wussel »

When I noticed nemaraa using delay on messages I got the idea that an automatic continue feature for messages would be nice too.

Basically I would want the message displayed only for a given amount of seconds. With milliseconds even animations would be possible. Any chance for such a feature?
User avatar
Heindal
Posts: 1071
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: message WML auto continue? Is this a feature request or idea?

Post by Heindal »

You could use [print] for that, as an alternative.

The solution would require this:

message
delay
x

While message and delay should be clear, the "x" could be a piece of code that presses a random button, for example the enter key.
It could be done with lua, but I`m not quite sure if it is possible to do that.

Maybe "print(10)" could be enough, but you should ask the lua community for help with that.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses
User avatar
Celtic_Minstrel
Developer
Posts: 1666
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: message WML auto continue? Is this a feature request or idea?

Post by Celtic_Minstrel »

The user interface system does support this, I believe, so it might not be hard to implement. I'm not sure whether it's a good idea, though. There's not many good reasons to auto-continue messages, because people read at different speeds, so if you auto-continue, there will be someone who misses the message altogether. Synchronizing with a musical score could be one of the few good reasons, I suppose, though you'd still need to be very careful to set the times so that even someone reading slowly can get through it. Synchronizing speech with animations is probably best avoided, but I guess it could depend on the animation.

I don't really recommend using [print] for this, either, as it might be hard to read sometimes (as I recall, it shows the text without an outline).
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.
Post Reply