UKADOC Project

This page summarizes the events notified by the baseware to plugins.

For information about the PLUGIN/2.0 communication specification itself, see the PLUGIN/2.0 page.

Events marked [NOTIFY] are always notified with the NOTIFY command.
Any script returned in response to an event notified with the NOTIFY command is ignored completely.

Events without a specific mark may be notified with either NOTIFY or GET, depending on the situation.

PLUGIN Event

version

Occurs immediately after the plugin is loaded.
The plugin returns its version information for this event in the Value header.
Specifying a character encoding in the Charset header sets the character encoding used for subsequent requests (default: Shift_JIS).
Note that the response format differs from that of other events.

  • SSP
installedplugin

Lists installed plugins and notifies. [NOTIFY]

Reference*
Plugin name, plugin ID, delimited by byte value 1
  • SSP
installedghostname

Lists installed ghosts and notifies. [NOTIFY]

Reference0
List of ghost names, delimited by byte value 1
Reference1
List of \0 names, delimited by byte value 1
Reference2
List of \1 names, delimited by byte value 1
  • SSP
installedballoonname

Lists installed balloons and notifies. [NOTIFY]

Reference0
List of balloon names, delimited by byte value 1
  • SSP
ghostpathlist

Paths of the loaded ghost folders. [NOTIFY]

Reference*
Full paths of the loaded ghost folders.
If multiple folders are specified, Reference1 and later may also be present.
  • SSP
balloonpathlist

Paths of the loaded balloon folders. [NOTIFY]

Reference0
Full path of the loaded balloon folder.
  • SSP
headlinepathlist

Paths of the loaded headline sensor folders. [NOTIFY]

Reference*
Full path of the loaded headline sensor folder.
  • SSP
pluginpathlist

Paths of the loaded plugin folders. [NOTIFY]

Reference*
Full path of the loaded plugin folder.
  • SSP
OnSecondChange

Occurs each second.
The notification interval can be configured with secondchangeinterval in descript.txt.

  • SSP
OnOtherGhostTalk

Occurs when a ghost talks.
Can be configured with otherghosttalk in descript.txt.

Reference0
Ghost name.
Reference1
Name of the ghost's baseware.
Reference2
break if the talk was interrupted.
communicate for a communicate event.
sstp-send for an SSTP SEND event.
owned for Owned SSTP.
remote for non-local SSTP.
notranslate if translation is disabled
plugin-script for a script from a plugin
plugin-event for an event response from a plugin
Returns applicable values separated by commas.
Reference3
Event ID of the ghost's talk.
Reference4
Script of what the ghost said.
Reference5
Reference passed to the ghost, separated by byte value 1.
  • SSP
OnGhostBoot

Occurs when a ghost starts.

Reference0
The HWNDs of the character windows for the started ghost, after \0, separated by byte value 1.
May be 0 if the windows have not been created, for example.
Reference1
Name of the started ghost.
Reference2
Current shell name of the started ghost.
Reference3
ID of the started ghost (the same as the one sent by Owned SSTP).
Reference4
Full path of the started ghost.
  • SSP
OnGhostExit

Occurs when a ghost exits. [NOTIFY]

Reference0
The HWNDs of the character windows for the exited ghost, after \0, separated by byte value 1.
May be 0 if the windows have not been created, for example.
Reference1
Name of the exited ghost.
Reference2
Current shell name of the exited ghost.
Reference3
ID of the exited ghost (the same as the one sent by Owned SSTP).
Reference4
Full path of the exited ghost.
  • SSP
OnGhostInfoUpdate

Occurs when ghost information changes.
May also occur at load time. [NOTIFY]

Reference0
The HWNDs of the character windows for the ghost whose information changed, after \0, separated by byte value 1.
May be 0 if the windows have not been created, for example.
Reference1
Name of the ghost whose information changed.
Reference2
Current shell name of the ghost whose information changed.
Reference3
ID of the ghost whose information changed (the same as the one sent by Owned SSTP).
Reference4
Full path of the ghost whose information changed.
  • SSP
OnMenuExec

Occurs when a plugin is run from the owner-draw menu.
Some kind of reaction is recommended.

Reference0
HWNDs of each character window after \0 of the ghost that called the plugin, delimited by byte value 1.
May contain 0, such as when the window has not been created.
Reference1
Name of the ghost that called the plugin.
Reference2
Name of the current shell of the ghost that called the plugin.
Reference3
ID of the ghost that called the plugin (same as the one sent by Owned SSTP).
Reference4
Full path of the ghost that called the plugin.
  • SSP
OnInstallComplete

Occurs when an installation completes.

Reference0
Installation type, delimited by byte value 1.
Reference1
Name of the installed item, delimited by byte value 1.
Reference2
Full path of the installed item, delimited by byte value 1.
  • SSP
OnChoiceSelect(Ex)/OnAnchorSelect(Ex)/events with arbitrary names specified in \q or similar

A plugin-side hook for SHIORI Events that occur when a choice or anchor is selected.
If the script sent by a plugin to a ghost, or the script returned by a ghost in response to an event notified by a plugin, contains a choice- or anchor-related Sakura Script tag, then for that occurrence only, the same event notified to SHIORI when the choice or anchor is selected is also forwarded to the plugin.

Reference*
Reference for the choice- or anchor-related SHIORI Event that occurred.
  • SSP
Arbitrary-name events specified for \![raiseplugin] and \![notifyplugin]

Occurs when \![raiseplugin] or \![notifyplugin] is executed.
For \![notifyplugin], [NOTIFY]

Reference*
The specified arbitrary arguments.
  • SSP
property.get

Occurs when retrieving an extended property using pluginlist(plugin name/path/ID).ext.
Returns the value of the retrieved property.

Reference0
Name of the extended property.
  • SSP2.7.85
property.set

Occurs when setting an extended property using pluginlist(plugin name/path/ID).ext.
Returns 204 on success, or an appropriate status code on failure.

Reference0
Name of the extended property.
Reference1
Value to set.
  • SSP2.7.85