A pretty simple question: how do you send a text message to a specific player? I'm using the action UI - Text Message but this only has a few options such as "active players", "all players", "allies/enemies of player" etc but nothing for just one player, should i be using a different action?
Ahh nice thank you. If you set the player to an integer variable however, then the text displays to every player when my event fires for each player, is there any way so that when player i does an event then the message displays only to player i ?
I think so. If for example a player enter a chat message, and you want the message to display for another specified player then it would look like this:
Event
Game - Player Any Player types a chat message containing "", matching Partially
Condition
(Triggering player) == X
Actions
UI - Display (Text((Entered chat string))) for (Player group(Y)) to Subtitle area
With X = integer value of sending player, and Y = the player that recives the message. The event will trigger for any chat message.
Edit, acctually. In this case the condition is something that could have been specified in the event..
They refer to the triggering player and the receiving player. If they are the same, the players are identical.
The condition is somewhat unneeded, though. If you want to show a message to the triggering player, use the code down below; if the players are different, there is usually some algorithm applicable to circumvent a check like this, or you can use an array.
Quote:
what would be the sample code to send a text message to only triggering player?
Actions UI - Display (Text((Entered chat string))) for (Player group(Triggering Player)) to Subtitle area
A pretty simple question: how do you send a text message to a specific player? I'm using the action UI - Text Message but this only has a few options such as "active players", "all players", "allies/enemies of player" etc but nothing for just one player, should i be using a different action?
Acctually, it also has a function called "Convert Player to Player Group". That allows you to specify one player to display the message to.
Ahh nice thank you. If you set the player to an integer variable however, then the text displays to every player when my event fires for each player, is there any way so that when player i does an event then the message displays only to player i ?
I think so. If for example a player enter a chat message, and you want the message to display for another specified player then it would look like this:
Event Game - Player Any Player types a chat message containing "", matching Partially
Condition (Triggering player) == X
Actions UI - Display (Text((Entered chat string))) for (Player group(Y)) to Subtitle area
With X = integer value of sending player, and Y = the player that recives the message. The event will trigger for any chat message.
@ItsPawl: Go
I have the same problem, but I do not understsand you explanation.
What is x and Y exacly. ARe they the same?
what would be the sample code to send a text message to only triggering player?
They refer to the triggering player and the receiving player. If they are the same, the players are identical.
The condition is somewhat unneeded, though. If you want to show a message to the triggering player, use the code down below; if the players are different, there is usually some algorithm applicable to circumvent a check like this, or you can use an array.
Actions UI - Display (Text((Entered chat string))) for (Player group(Triggering Player)) to Subtitle area