May 22nd 2025: A large number of spam user accounts have been removed from the wiki. If your account was accidentally deleted during this process, please get in contact to have it restored!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guide:communication [2025/11/05 16:29] – [OnCommunicate] Additional information for Misaka communication, update Aosora communication as this feature has been newly released ulde3guide:communication [2025/11/05 16:45] (current) – [Sending and receiving external SHIORI Events] Fix broken syntax ulde3
Line 58: Line 58:
  
 === Target === === Target ===
-raiseother and notifyother tags can either send their events to specific targets, or they may use ''__SYSTEM_ALL_GHOST__'' to target every open ghost at once. Which is ideal for your event depends on what you are making.+raiseother and notifyother tags can either send their events to specific targets, or they may use ''<nowiki>__SYSTEM_ALL_GHOST__</nowiki>'' to target every open ghost at once. Which is ideal for your event depends on what you are making.
  
-For example, if your ghost has a music player function and you want other ghosts to be able to tell what song is playing, it's probably best to send that information to every open ghost at once with ''__SYSTEM_ALL_GHOST__''. That way any ghost can simply receive the info and handle it as they see fit with no additional steps.+For example, if your ghost has a music player function and you want other ghosts to be able to tell what song is playing, it's probably best to send that information to every open ghost at once with ''<nowiki>__SYSTEM_ALL_GHOST__</nowiki>''. That way any ghost can simply receive the info and handle it as they see fit with no additional steps.
  
 On the other hand, for a function like [[ghost:Needle]]'s ghost poking, where Needle sends the event OnNeedlePoke after overlapping with a ghost, it makes sense to only send the event to the ghost that was specifically poked. On the other hand, for a function like [[ghost:Needle]]'s ghost poking, where Needle sends the event OnNeedlePoke after overlapping with a ghost, it makes sense to only send the event to the ghost that was specifically poked.
Line 179: Line 179:
 How OnCommunicate is initiated depends on the SHIORI. How OnCommunicate is initiated depends on the SHIORI.
  
-  * In AYA and YAYA, communication can sent by specifying the sakura name of the target ghost in the variable ''res_reference0''. Example: ''res_reference0 = "Someone"'' +=== AYA / YAYA === 
-  * In Satori, communication can be sent by specifying the sakura name of the target ghost with Value0. Example: ''$Value0【タブ】Someone'' +In AYA and YAYA, communication can sent by specifying the sakura name of the target ghost in the variable ''res_reference0''.
-  * More information about how to initiate communication in Kawari can be found [[https://okuajub-netspace.neocities.org/Kawari/tips#communicate|here]]. <wrap important>Someone please change this listing once we learn more!</wrap> +
-  * In Aosora, communication can be sent by specifying the sakura name of the target ghost in Shiori.ResponseReference. Example: ''Shiori.ResponseReference.Add("Someone");'' +
-  * In Misaka, communication can be sent by specifying the sakura name of the target ghost in the variable ''to''. Example: ''{$to=Someone}'' +
-    * Note that Misaka has special setup for ghost communication. Communication from other ghosts is received with the event ''$_OnGhostCommunicateReceive''. The system variable ''{$sender}'' contains the name of the ghost that sent the communication, and the system function ''{$inlastsentence}'' contains the script that the other ghost played.+
  
 +  res_reference0 = "Someone"
 +
 +=== Satori ===  
 +In Satori, communication can be sent by specifying the sakura name of the target ghost with Value0.
 +
 +  $Value0【タブ】Someone
 +
 +=== Kawari ===
 +More information about how to initiate communication in Kawari can be found [[https://okuajub-netspace.neocities.org/Kawari/tips#communicate|here]]. <wrap important>Someone please change this listing once we learn more!</wrap>
 +
 +=== Aosora ===
 +In Aosora, communication can be sent by specifying the sakura name of the target ghost in Shiori.ResponseReference.
 +
 +  Shiori.ResponseReference.Add("Someone");
 +
 +=== Misaka ===
 +In Misaka, communication can be sent by specifying the sakura name of the target ghost in the variable ''to''.
 +
 +  {$to=Someone}
 +
 +Note that Misaka has special setup for ghost communication. Communication from other ghosts is received with the event ''$_OnGhostCommunicateReceive''. The system variable ''{$sender}'' contains the name of the ghost that sent the communication, and the system function ''{$inlastsentence}'' contains the script that the other ghost played.
 +
 +=== Usage example ===
 A back and forth conversation between two ghosts using the OnCommunicate method could look like this. This example assumes both ghosts are written in YAYA: A back and forth conversation between two ghosts using the OnCommunicate method could look like this. This example assumes both ghosts are written in YAYA: