Select event selectivity
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.
Select event selectivity
Is there ANY way to make a label/printed text/lua message fired from inside a select event visible to all players in multiplayer? I've tried firing another custom event from within the select event, doesn't work.
Re: Select event selectivity
Entire purpose of select event is to do unsynced changes. So if you want something synced happen, you have no reason to use select in the first place.
Re: Select event selectivity
Hmm. Well, it so happens that I do. I want to display a message to all players in the game if a player accesses an info menu while it's their turn. The menu is accessed by clicking a unit. What about wesnoth.show_dialog? I've already had problems with that showing up for everyone if a player selected a right-click menu custom option.
Re: Select event selectivity
Menu option should need delay or redraw call.
Re: Select event selectivity
I'm not sure I understand... You mean that about the second problem?
Re: Select event selectivity
Ok. And the lua wesnoth.show_dialog function would fail to show the dialog to all players as well if fired from a select event?
Re: Select event selectivity
Yes, select is unsynced.
Re: Select event selectivity
Okay, thank you!