Creative+ ➨ Guide on coding the inter-world chat 👾

Joined
May 29, 2023
Messages
41
1686216637686.png

Chat with other players without being in the same world!
only works with your own worlds

in the 1st world:

World Event Receive Data (Name = "Global Chat") > Game Action Read Data From Channel (Channel = "Global Chat", Variable = receivedData) >
Player Action Send Message %All% (Text = receivedData)

this will receive messages from the other world and send them to the players in the world
1686215406334.png
Player Event Chat Message > Game Action Write to Channel ( ID = *numeric id of the 2nd world*, Channel = "Global Chat", Values = "*world name* »", GameValue Current Name, ":" GameValue Player Message)
this will send players' messages to the other world
1686215314651.png1686215260967.png
in the 2nd world:

Copy and paste the code just change the ID to the be first world
 

mugheera1122

Member
Joined
May 21, 2023
Messages
85
View attachment 58

Chat with other players without being in the same world!
only works with your own worlds

in the 1st world:

World Event Receive Data (Name = "Global Chat") > Game Action Read Data From Channel (Channel = "Global Chat", Variable = receivedData) >
Player Action Send Message %All% (Text = receivedData)

this will receive messages from the other world and send them to the players in the world
View attachment 57
Player Event Chat Message > Game Action Write to Channel ( ID = *numeric id of the 2nd world*, Channel = "Global Chat", Values = "*world name* »", GameValue Current Name, ":" GameValue Player Message)
this will send players' messages to the other world
View attachment 56View attachment 55
in the 2nd world:

Copy and paste the code just change the ID to the be first world
woow nice
 

veddnt

Active member
Joined
Jun 2, 2023
Messages
180
View attachment 58

Chat with other players without being in the same world!
only works with your own worlds

in the 1st world:

World Event Receive Data (Name = "Global Chat") > Game Action Read Data From Channel (Channel = "Global Chat", Variable = receivedData) >
Player Action Send Message %All% (Text = receivedData)

this will receive messages from the other world and send them to the players in the world
View attachment 57
Player Event Chat Message > Game Action Write to Channel ( ID = *numeric id of the 2nd world*, Channel = "Global Chat", Values = "*world name* »", GameValue Current Name, ":" GameValue Player Message)
this will send players' messages to the other world
View attachment 56View attachment 55
in the 2nd world:

Copy and paste the code just change the ID to the be first world
Helo sir you forgot to mention that having atleast one player in the other world is necesaary to transfer data in other world
 
Top