how to give a message only for one player ?

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
michel
Posts: 15
Joined: September 5th, 2005, 8:31 am

how to give a message only for one player ?

Post by michel »

In multiplayer mode, I want to give a message just for one player, when one of his units go in a special case :
[item]
x=54
y=32
image=items/signpost.png
[/item]
[event]
name=moveto
[filter]
side=3
x=54
y=32
[/filter]
[redraw]
[/redraw]
[message]
speaker=narrator
message= _ "the village"
[/message]
[/event]

My probleme is that all the players can read the message " the village" on the screen and not only the player number 3.
How to do that ?
Thank you.
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

I know objectives can be customized per player. Maybe you can pass a message by temporarily changing the objectives for that player. You would have to check the WML reference page in the wiki.
Hope springs eternal.
Wesnoth acronym guide.
Post Reply