Display the GUI interface to let the user select the target to send the chat.
Displaying the chat target gui
managing user choices
This aspect can be cumbersome in PlayMaker unfortunately because it lacks mechanism to define a list of selection ( like enum in scripts). We simply have to build it by hand:
for each possible user choice, we have an event ( SEND TO ALL, SEND TO MASTER, SEND TO OTHERS, etc etc) and for each of these choices, we display a gui button and bind the appropriate event that transit via these events. This is the "chat target gui" state. For each possible choices, we move to a specific state and store this choice in a string ( for example the "set target to All" state stores the string "all" in the variable "Photons targets")
Once the user made a choice and we recorded that choice, we move the "send RPC chat" state, in there we get the message to send and set the target the user just selected and send it that way.