UKADOC Project

Notes

The following includes events issued by external sources and events returned by their recipients, such as events sent via SSTP by applications outside the baseware, and events issued by ghosts or plugins to other ghosts.

For the issuers of these events, this page is only unofficial documentation, and the information may be inaccurate due to subsequent updates to each item. See the official documentation for each item for details.

If you know of any events not listed here, please report them. We will add them.

Notes

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

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

General cross-ghost events

OnRequestValues

Occurs when another ghost sends this event at its discretion.
When this event is sent, an OnGetValues event must be sent using \[raiseother].

Reference0
Name of the sending ghost.
Reference1
Name of the requested variable (key). Reference2 and subsequent references follow the same pattern for as many requested variables as exist.
  • SSP
OnGetValues

Event returned in response to OnRequestValues.

Reference0
Name of the sending ghost.
Reference1
key=value (key is the variable name received in OnRequestValues, and value is its value). Reference2 and subsequent references follow the same pattern for as many requested variables as exist. Variables that do not exist are not returned. The order in which they were sent in OnRequestValues does not matter.
  • SSP

Notes

List of requested property names

  • Character name
  • Generation
  • Age group
  • Gender
  • Species
  • Species type
  • Behavior type
  • Profile
  • Card image path
  • LIFE
  • STR
  • DEX
  • AGL
  • MIN
  • INT
  • SEN
  • NOB

Ghost “Nurupo Interface”

OnTalkRequest

Occurs when “Nurupo Interface” requests a conversation.

Ghost “The Hand”

OnHandActivate

Occurs when The Hand reaches out to touch another ghost or finishes touching it.
While touching, it sends the ghost (OnMouseMove|OnMouseDoubleClick|OnMouseWheel) events with Sender:The Hand.

Reference0
Start of normal touch: NormalStart
End of normal touch: NormalEnd
Start of special move: SuperStart
During special move: SuperContinue
End of special move: SuperEnd
Homing activated during special move: SuperHoming
Reference1
Collision area name.
If stopped, this is escaped.
For a special move, this is 1–4.
Reference2
Event that occurs for the other ghost.
During normal touch: (OnMouseMove|OnMouseDoubleClick|OnMouseWheel)
During a special move: Number of touches
At the end of a special move: (MAX number of touches|escaped|nocollision|attacked|deleted)
Reference3
Script used when reaching out to touch.
During a special move, this is the collision area name.
Reference4
Shell number.

Ghost "Ghost Dictionary"

OnJitenBattle

Occurs on every turn of a mock battle fought by the ghost.

Reference0
The sending ghost's \0 name.
Reference1
Attacking character's name.
Reference2
Defending character's name.
Reference3
Battle result.
At start: Mock battle started
During action: (Physical attack successful|Physical attack failed|Physical attack evaded|Physical attack missed|Mental attack successful|Mental attack failed|Mental attack evaded|Mental attack missed)
Reference4
Damage.
Reference5
Attacking character's LIFE.
Reference6
Defending character's LIFE.
Reference7
Normal
OnJitenTagBattle

Occurs on every turn of a mock battle fought by the ghost.

Reference0
The sending ghost's \0 name.
Reference1
Attacking character's name.
Reference2
Defending character's name.
Reference3
Battle result.
At start: Mock battle started
During action: (Physical attack successful|Physical attack failed|Physical attack evaded|Physical attack missed|Mental attack successful|Mental attack failed|Mental attack evaded|Mental attack missed)
Reference4
Damage.
Reference5
Attacking character's LIFE.
Reference6
Defending character's LIFE.
Reference7
Tag

Ghost “Magilutorie”

OnMglBattle

Occurs for each result of a virtual battle held by Magilutorie.

Reference0
Version information.
Reference2
Sending ghost.
Reference3
Mgl event name.
Reference*
Content for the Mgl event.

Ghost "Curry Family / Saki and Ukon"

Send60stair_Call

Occurs when Curry Family / Saki and Ukon invite a ghost that is running at the same time to play a game.

Send60stair_Start

Occurs when Curry Family / Saki and Ukon start a game.

  • SSP
Send60stair_YourTurnStart

Occurs when it is the sending ghost's turn during a game played by Curry Family / Saki and Ukon.

Reference0
Current position.
Reference1
Marked position.
Send60stair_Marking

Occurs when a ghost marks a position during a game played by Curry Family / Saki and Ukon.

Reference0
Marked position.
Send60stair_DiceRoll

Occurs when a ghost rolls the dice during a game played by Curry Family / Saki and Ukon, if the result is not a Dobon.

Reference0
Result of the first die.
Reference1
Result of the second die.
Send60stair_Dobon

Occurs when any participating ghost gets a Dobon during a game played by Curry Family / Saki and Ukon.

Reference0
Name of the ghost that got a Dobon.
Reference1
Current position of the ghost that got a Dobon.
Reference2
Marked position of the ghost that got a Dobon.
Reference3
Result of the die.
Send60stair_YourTurnEnd

Occurs when the sending ghost's turn ends during a game played by Curry Family / Saki and Ukon.

Reference0
Current position.
Reference1
Marked position.
Send60stair_Goal

Occurs when any ghost reaches the goal during a game played by Curry Family / Saki and Ukon.

Reference0
Name of the winning ghost.
Reference1
Rank.
Send60stair_GameEnd

Occurs after the rankings are displayed at the end of a game played by Curry Family / Saki and Ukon.

Send60stair_GetStatus

Event to be sent to Saki using \[raiseother].

Reference0
The sending ghost's \0 name.
Reference1
Boldness (0–60).

Ghost “Sounds of Everyday Life in Melody”

OnKanadeTeaPartyInfomationRequest

An event notified to each ghost by The Melody of Daily Life before the tea party begins.
Ghosts participating in the tea party must immediately, in response to this event,
\![raiseother,かなで,返信イベント名,ゴーストの対応するお茶会バージョン番号,ゴーストの本体側名,※お茶会バージョンへの対応情報]
execute this Sakura Script.
Talk other than executing this script during the event is deprecated.

Reference0
Tea party version number.
Reference1
Baseware-side name of the ghost receiving the reply event (fixed as “かなで”).
Reference2
Reply event name.
Variable-name response event

A ghost that receives OnKanadeTeaPartyInfomationRequest sends this event to Sounds of Everyday Life in Melody using raiseother.
The event name is provided in reference2 of OnKanadeTeaPartyInfomationRequest.

Reference0
The ghost’s supported tea party version number
Reference1
The name of the ghost’s baseware
Reference2
※Information about tea party version support
OnKanadeTeaParty

Tea party event. Notifies when the tea party starts.

Reference0
Version of the tea party that implements the combinations in Reference1 and subsequent references.
Reference1
Drink.
Reference2
Snack
Reference*
Reference3 and subsequent references contain extended information.
OnKanadeTeaPartyEnd

Tea party end event. Notifies after Melody of Everyday Life gives its tea party ending dialogue.

Reference0
Version of the tea party that was held.

Notes

※Information about tea party version support

Supported
The ghost's version is the same as or higher than the version of “Sounds of Everyday Life in Melody,” so it fully supports the tea party events provided by “Sounds of Everyday Life in Melody.”
Not supported
The ghost's version is lower than the version of “Sounds of Everyday Life in Melody,” so it cannot process tea party events from versions higher than its own.
Automatic support
The ghost's version is lower than the version of “Sounds of Everyday Life in Melody,” but it can automatically support tea party events from higher versions by changing the conversation, for example by substituting words.
Fixed support
Support does not vary according to the tea party content provided by “Sounds of Everyday Life in Melody.” Reference0 of the response event is the tea party version verified by the ghost's creator. Ghosts that send this support information do not take the selected tea party content into account.

Ghost “Tabletop Yuugi”

OnPoker

This event requires a response. Use raiseother or notifyother to respond.

Reference0
Protocol version (POKER/1.0)
Reference1
Server ghost name
Reference2
Server event name

Additional information from Reference3 onward in POKER/1.0

Reference3
hello (request to join. The request may be declined.)
Reference3
action (Reference4 onward contains the available actions.)
Reference*
The available actions are some of the following six: bet,raise,allin,check,call,fold.
Note that if no response is sent, fold is performed automatically.
When betting or raising, the raise amount must also be sent.

OnPokerNotify

This event does not require a response.

Reference0
Protocol version (POKER/1.0)

Additional information from Reference1 onward in POKER/1.0

Reference1
game_start
Reference*
Names of ghosts that joined
Reference1
round_start
Reference2
Blind amount
Reference*
Ghost name (byte value 1) stack
Reference1
hand
Reference2
Information about the dealt card
Reference3
Information about the dealt card
The suit is one of four initials (S,H,C,D), followed by a number.
Example:
Reference2: S1
Reference3: H12
This format is also used for FLIP.
Reference1
flip
Reference2
Current pot
Reference*
Community card information
For a pre-flop, Reference3 onward does not exist.
Reference1
blind_bet
Reference2
Forced bet amount
Notifies that a forced bet was made as SB or BB.
Reference1
bet (information about the player who took an action and the bet.)
Reference2
Current total bet amount
Reference3
Current bet amount
Reference4
Ghost name of the player who took the action
Reference5
Action taken
Reference1
show_down (Card information is sent at showdown.)
Reference*
Ghost name (byte value 1) first card (byte value 1) second card
Reference1
round_result (Information about the winner of the round and the participants’ remaining stacks.)
Reference2
The current round’s winner(s), separated by byte value 1.
Reference*
Ghost name (byte value 1) stack
There is usually one winner, but there may be two or more.
Note that a stack reaching 0 is only reported here.
Reference1
game_result
Reference2
Ghost name of the game winner

Ghost "Foreigner", supplement "march of phantasma"

OnMopClear

Notifies when a map is cleared.

Reference0
Members at the time of clearing, separated by byte value 1 (unique units only).
Reference1
Name of the cleared map.

Ghost “Needle”

OnNeedlePokeOriginal

Occurs when Needle "pokes" another ghost (by overlapping them). If Needle is overlapping multiple scopes simultaneously, the event will be sent once for each scope.

Reference0
The ID of the scope that was poked. 0 for the main character, 1 for the side character, 2 and onwards for additional characters.
Reference1
The name of the shell Needle is currently using.
Reference2
A list of the current dressups. This is a 2-dimensional array, where each dressup is delimited by 0xFDEF, and the category and part name of each dressup is delimited by 0x01. (Example: "Color[0x01]Gray[0xFDEF]Bow[0x01]Pink")
OnNeedlePokeExOriginal

Occurs when Needle "pokes" another ghost (by overlapping them). Occurs before OnNeedlePoke, and is a multi-scope version of that event which can be used for advanced processing.

Reference0
A comma-separated array of the IDs of all scopes that were poked. 0 for the main character, 1 for the side character, 2 and onwards for additional characters.
Reference1
The name of the shell Needle is currently using.
Reference2
A list of the current dressups. This is a 2-dimensional array, where each dressup is delimited by 0xFDEF, and the category and part name of each dressup is delimited by 0x01. (Example: "Color[0x01]Gray[0xFDEF]Bow[0x01]Pink")

Ghost "Hydrate"

OnHydrateStatsNotifyOriginal

Notifies information about Hydrate's current state and the user's hydration stats.

Reference0
The name of the shell Hydrate is currently using.
Reference1
A list of the current dressups. This is a 2-dimensional array, where each dressup is delimited by 0xFDEF, and the category and part name of each dressup is delimited by 0x01. (Example: "Glass shape[0x01]Tall[0xFDEF]Drink[0x01]Tea")
Reference2
The current X scaling of the shell (as a percentage).
Reference3
The current Y scaling of the shell (as a percentage).
Reference4
The number of drinks today.
Reference5
The number of drinks in total.
Reference6
The current drink streak (number of drinks in a row).
Reference7
The highest ever drink streak (number of drinks in a row).
Reference8
The number of extra sips taken today.
Reference9
The number of extra sips in total.
Reference10
Whether Hydrate is minimized or not. 1 if true, 0 otherwise.

Plugin “Virtual Beer Shower (BeerShower)”

OnBeerShower

Occurs when the plugin is executed.

Plugin “Virtual Dotonbori (TOMBORI)”

OnDive

Occurs when the plugin is executed.

Reference0
Destination to dive into (Dotonbori)

Plugin “Materialization (HitThunder)”

OnHitThunder

Occurs when the plugin is executed.

Plugin “Stamp Book”

OnStampInfo

Event that notifies the recipient of information about stamps.
Occurs when a ghost starts, when the plugin is loaded or unloaded, and whenever OnStampInfoCall is sent.

Reference0
Total number of stamps.
Reference1
Whether this ghost has a stamp: 1 if it does, or 0 if it does not.
This value is less reliable when multiple ghosts are running, so to check it reliably, it is recommended to actively raise this event using OnStampInfoCall.
Reference2
Path to the plugin.
Reference3
Information for all stamps. Each stamp has the ghost name, stamp image file name, stamp title, stamp comment, and time the stamp was added, separated by byte value 1. The stamp entries are separated by byte value 2.
Reference4
1 if this plugin is running, or 0 otherwise.
OnStampAdd

Event sent to the Stamp Book with raiseplugin to add a stamp.

Reference0
Path to the stamp image file.
Reference1
Stamp title.
Specify a string without Sakura Script (which is removed).
Optional.
Reference2
Stamp comment.
Specify a string without Sakura Script (which is removed).
Line breaks can be inserted with <br> (<BR>, <br>, <BR>).
Optional.
OnStampInfoCall

Event sent to the Stamp Book with raiseplugin when the ghost wants to raise OnStampInfo at any time.

Plugin “Potato Scope”

OnPotatoReturn

Occurs when the specified folder is valid and the save file is found successfully.

Reference0
The requested variable names, joined with commas (<variable1>,<variable2>...)
Reference*
The values of each variable, starting at 1
OnPotatoFileNotFound

Occurs when the specified folder is valid but the save file cannot be found.

Reference0
The requested variable names, joined with commas (<variable1>,<variable2>...)
OnPotatoError

Occurs if the specified folder is incorrect or the SHIORI is unsupported.

Plugin “CrystalDiskInfo Event PLUGIN”

OnCrystalDiskInfoEvent

Occurs when information is available at ghost startup or when information is updated.

Reference0
The status of all disks (that is, the status of the worst one) and the update date.
Comma-separated, in the format “(Good|Caution|Bad|Unknown),YYYY,NN,DD,HH,MM,SS”.
Reference*
Individual disk status.
Comma-separated: machine name, existing disk, overall status, capacity, temperature in Celsius, temperature warning
OnCrystalDiskInfoClear

Occurs when information that was previously available disappears.
For example, when CrystalDiskInfo exits.

Plugin "Weather Station"

OnWeatherStation.WeatherOriginal

Sends information about the current weather conditions to all open ghosts. This event occurs every hour, every time another ghost boots, and any time any ghost requests it with \![raiseplugin].

Reference0
Weather condition. ※See below for a list of possible weather conditions.
Reference1
Weather condition icon filename. To be used with weatherapi's weather icon pack.
Reference2
Weather condition code. ※See below for a list of possible weather condition codes.
Reference3
If it is daytime or not. 1 if the sun is up, 0 if the sun is down.
Reference4
Temperature in Fahrenheit.
Reference5
Temperature in Celsius.
Reference6
"Feels like" temperature in Fahrenheit.
Reference7
"Feels like" temperature in Celsius.
Reference8
Humidity as a percentage.
Reference9
Wind speed in miles per hour.
Reference10
Wind speed in kilometers per hour.
Reference11
Wind direction as a 16 point compass. (e.g.: NNE for north/northeast.)
Reference12
Wind direction in degrees.
Reference13
Wind gust speed in miles per hour.
Reference14
Wind gust speed in kilometers per hour.
Reference15
Precipitation in inches.
Reference16
Precipitation in millimeters.
Reference17
Cloud cover as a percentage.
Reference18
"Will it rain today". 1 for yes, 0 for no. Same information as the "Will it rain today" in OnWeatherStation.Forecast.Day.
Reference19
Chance of rain today, as a percentage. Same information as the chance of rain in OnWeatherStation.Forecast.Day.
Reference20
"Will it snow today". 1 for yes, 0 for no. Same information as the "Will it snow today" in OnWeatherStation.Forecast.Day.
Reference21
Chance of snow today, as a percentage. Same information as the chance of snow in OnWeatherStation.Forecast.Day.
Reference22
Visibility in miles.
Reference23
Visibility in kilometers.
Reference24
Pressure in inches.
Reference25
Pressure in millibars.
Reference26
UV index.
Reference27
CO (Carbon Monoxide) in μg/m3 (Micrograms per cubic meter).
Reference28
O3 (Ozone) in μg/m3 (Micrograms per cubic meter).
Reference29
NO2 (Nitrogen Dioxide) in μg/m3 (Micrograms per cubic meter).
Reference30
SO2 (Sulfur Dioxide) in μg/m3 (Micrograms per cubic meter).
Reference31
PM2.5 (Particulate Matter smaller than 2.5 microns in diameter) in μg/m3 (Micrograms per cubic meter).
Reference32
PM10 (Particulate Matter smaller than 10 microns in diameter) in μg/m3 (Micrograms per cubic meter).
Reference33
US EPA index. 1 means Good, 2 means Moderate, 3 means Unhealthy for sensitive group, 4 means Unhealthy, 5 means Very unhealthy, 6 means Hazardous.
Reference34
UK Defra Index. ※See details below.
Reference35
The user's choice of units (Imperial or Metric).
Reference36
The time the plugin last updated the weather data, in seconds since EPOCH (1970/1/1 00:00:00).
Reference37
The current version number of the plugin.
Reference38
<Deprecated>
Reference39
<Deprecated>
Reference40
<Deprecated>
Reference41
<Deprecated>
OnWeatherStation.AstroOriginal

Sends information about the sun and moon to all open ghosts. Must be called with \![raiseplugin]. An additional argument can be sent to specify which day's data should be sent. 0 for today, 1 for tomorrow, 2 for the day after tomorrow. If no argument is given, it will default to today.

Reference0
The day the following information is for. 0 for today, 1 for tomorrow, 2 for the day after tomorrow.
Reference1
Sunrise time, given as 12 hour time with the format ##:## *M
Reference2
Sunset time, given as 12 hour time with the format ##:## *M
Reference3
Moonrise time, given as 12 hour time with the format ##:## *M
Reference4
Moonset time, given as 12 hour time with the format ##:## *M
Reference5
Sunrise time, given as 24 hour time with the format ##:##
Reference6
Sunset time, given as 24 hour time with the format ##:##
Reference7
Moonrise time, given as 24 hour time with the format ##:##
Reference8
Moonset time, given as 24 hour time with the format ##:##
Reference9
Moon phase as a string. Can be "New Moon", "Waxing Crescent", "First Quarter", "Waxing Gibbous", "Full Moon", "Waning Gibbous", "Last Quarter", or "Waning Crescent".
Reference10
Moon phase number. Numbers correspond to the following phases.
  • 0 - New Moon
  • 1 - Waxing Crescent
  • 2 - First Quarter
  • 3 - Waxing Gibbous
  • 4 - Full Moon
  • 5 - Waning Gibbous
  • 6 - Last Quarter
  • 7 - Waning Crescent
Reference11
Moon illumination as a percentage.
OnWeatherStation.AlertsOriginal

Sends information about weather alerts to all open ghosts. Must be called with \![raiseplugin]. Will return nothing if there are no alerts.

Reference*

An array containing information for a weather alert. Some elements may not be filled. Elements are separated by a 1 byte value.

  • [0] - Headline
  • [1] - Type of alert
  • [2] - Severity
  • [3] - Urgency
  • [4] - Areas covered
  • [5] - Category
  • [6] - Certainty
  • [7] - Event
  • [8] - Note
  • [9] - Effective time
  • [10] - Expires time
  • [11] - Description
  • [12] - Instructions
OnWeatherStation.Forecast.DayOriginal

Sends information about the overall forecast for a day to all open ghosts. Must be called with \![raiseplugin]. An additional argument can be sent to specify which day's data should be sent. 0 for today, 1 for tomorrow, 2 for the day after tomorrow. If no argument is given, it will default to today.

Reference0
The day the following information is for. 0 for today, 1 for tomorrow, 2 for the day after tomorrow.
Reference1
Maximum temperature for the day, in Fahrenheit.
Reference2
Maximum temperature for the day, in Celsius.
Reference3
Minimum temperature for the day, in Fahrenheit.
Reference4
Minimum temperature for the day, in Celsius.
Reference5
Average temperature for the day, in Fahrenheit.
Reference6
Average temperature for the day, in Celsius.
Reference7
Average humidity for the day, as a percentage.
Reference8
Maximum windspeed for the day, in mph.
Reference9
Maximum windspeed for the day, in kph.
Reference10
Total precipitation for the day, in inches.
Reference11
Total precipitation for the day, in millimeters.
Reference12
"Will it rain this day", 1 if yes, 0 if no.
Reference13
Chance that it will rain this day, as a percentage.
Reference14
"Will it snow this day", 1 if yes, 0 if no.
Reference15
Chance that it will snow this day, as a percentage.
Reference16
Average visibility for the day, in miles.
Reference17
Average visibility for the day, in kilometers.
OnWeatherStation.Forecast.HourlyOriginal

Sends information about the hour-by-hour forecast for a day to all open ghosts. Must be called with \![raiseplugin]. An additional argument can be sent to specify which day's data should be sent. 0 for today, 1 for tomorrow, 2 for the day after tomorrow. If no argument is given, it will default to today.

Reference0~23
A comma separated array containing forecast information. The number of the reference corresponds to the number of the hour the data is for, in 24 hour time (e.g.: reference0 is for 00:00/12AM, reference14 is for 14:00/2PM).
  • [0] - Date and time the information is for.
  • [1] - "Is it daytime". 1 if the sun is up, 0 if the sun is down.
  • [2] - Temperature in Fahrenheit.
  • [3] - Temperature in Celsius.
  • [4] - "Feels like" temperature in Fahrenheit.
  • [5] - "Feels like" temperature in Celsius.
  • [6] - Humidity as a percentage.
  • [7] - Wind speed in miles per hour.
  • [8] - Wind speed in kilometers per hour.
  • [9] - Wind direction as a 16 point compass (e.g.: NNW for north/northwest).
  • [10] - Wind direction in degrees.
  • [11] - Wind gusts in miles per hour.
  • [12] - Wind gusts in kilometers per hour.
  • [13] - Precipitation in inches.
  • [14] - Precipitation in millimeters.
  • [15] - Cloud cover as a percentage.
  • [16] - "Will it rain", 1 if yes, 0 if no.
  • [17] - Chance of rain as a percentage.
  • [18] - "Will it snow", 1 if yes, 0 if no.
  • [19] - Chance of snow as a percentage.
  • [20] - Visibility in miles.
  • [21] - Visibility in kilometers.
  • [22] - Wind chill in Fahrenheit.
  • [23] - Wind chill in Celsius.
  • [24] - Heat index in Fahrenheit.
  • [25] - Heat index in Celsius.
  • [26] - Dew point in Fahrenheit.
  • [27] - Dew point in Celsius.
  • [28] - Pressure in inches.
  • [29] - Pressure in millibars.
  • [30] - UV index.
Reference24
The day the preceding information is for. 0 for today, 1 for tomorrow, 2 for the day after tomorrow.
OnWeatherStation.ErrorOriginal

Sends error information to all open ghosts. This event is sent in place of the previous events if there is an error of any kind.

Reference0
The error message. ※See below for possible error messages.
Reference1
A more descriptive error message, provided by weatherapi.com. These error messages do not match the online documentation for weatherapi and should not be used for identifying errors.
Reference2
The error code, as listed on weatherapi.com's documentation.
Reference3
The time the plugin last attempted to update the weather data, in seconds since EPOCH (1970/1/1 00:00:00).
Reference4
The current version number of the plugin.
Reference5
1 if there is a plugin update available, 0 otherwise. If the user is offline, this will always be 0.

NotesOriginal

Weather Condition & Code List

A list of conditions can be downloaded from weatherapi's documentation page. This list is also available in other languages, but information from the plugin will always be sent in English.

1000
Sunny (If the sun is down, it will be "Clear" instead.)
1003
Partly cloudy
1006
Cloudy
1009
Overcast
1030
Mist
1063
Patchy rain possible
1066
Patchy snow possible
1069
Patchy sleet possible
1072
Patchy freezing drizzle possible
1087
Thundery outbreaks possible
1114
Blowing snow
1117
Blizzard
1135
Fog
1147
Freezing fog
1150
Patchy light drizzle
1153
Light drizzle
1168
Freezing drizzle
1171
Heavy freezing drizzle
1180
Patchy light rain
1183
Light rain
1186
Moderate rain at times
1189
Moderate rain
1192
Heavy rain at times
1195
Heavy rain
1198
Light freezing rain
1201
Moderate or heavy freezing rain
1204
Light sleet
1207
Moderate or heavy sleet
1210
Patchy light snow
1213
Light snow
1216
Patchy moderate snow
1219
Moderate snow
1222
Patchy heavy snow
1225
Heavy snow
1237
Ice pellets
1240
Light rain shower
1243
Moderate or heavy rain shower
1246
Torrential rain shower
1249
Light sleet showers
1252
Moderate or heavy sleet showers
1255
Light snow showers
1258
Moderate or heavy snow showers
1261
Light showers of ice pellets
1264
Moderate or heavy showers of ice pellets
1273
Patchy light rain with thunder
1276
Moderate or heavy rain with thunder
1279
Patchy light snow with thunder
1282
Moderate or heavy snow with thunder

UK Defra Index reference

Index 1 2 3 4 5 6 7 8 9 10
Band Low Low Low Moderate Moderate Moderate High High High Very High
µgm-3 0-11 12-23 24-35 36-41 42-47 48-53 54-58 59-64 65-70 71 or more

Reason for Error

no_location
The user has not added their location, or has removed it.
location_invalid
The user's location is invalid and data cannot be gathered.
api_quota_exceeded
The 1 million free API calls per month has been exceeded.
api_key_disabled
The API key has been disabled by the plugin developer. Please check if a plugin update is available to provide a new key.
api_internal_error
The API responded with an internal error.
no_api_response
The API did not respond, the SAORI used by the plugin failed to work, or the user is offline.
other
Any other error sent by the API. reference1 will have the error message provided by the API.

Plugin “Spectre”

OnSpectrePlugin.SurfaceOriginal

Occurs during Spectre's dialogues to call for surface changes from the ghost that is currently being spoken to.
Note that this event does not come directly from the plugin itself, but rather is called from the ghost side by embed tags within the dialogues.
The expressions included are the recommended expressions, plus a few extra that are common in English ghosts.
Expressions which the ghost's shell cannot produce accurately should be ignored and not return a response, as the plugin will use this information for its own purposes.

Reference0

The expression being called for. May be one of the following values:

  • normal …… usually surface0
  • embarrassed …… usually surface1
  • surprised …… usually surface2
  • anxious …… usually surface3
  • discouraged …… usually surface4
  • smile …… usually surface5
  • relieved …… usually surface6, also known as "contented"
  • angry …… usually surface7
  • sweat …… usually surface8, also known as "sweat smile" or "cold smile"
  • indignant …… usually surface9, also known as "embarrassed anger"
  • thinking …… common in some English ghosts, also known as "thoughtful" or "confused"
  • unamused …… common in some English ghosts, also known as "bored"
OnSpectrePlugin.ConfirmCalibrationOriginal

Occurs upon opening the plugin menu if this ghost is not yet "calibrated". Also occurs any time the user chooses to "recalibrate" this ghost.
Returning a specific response completes a handshake that allows the ghost to complete the "calibration" step automatically.
The required response is the following tag: \![raiseplugin,Spectre,OnCustomCalibrationConfirm]
Within this tag, references should be sent containing expression data. The references should be written the same as the ones received in the OnSpectrePlugin.Surface event, and may be written in any order.
By default, only expressions that the ghost does not provide should be sent. The plugin assumes that any expressions not listed are present.
For ghosts with few compatible expressions, an option may be used to invert this behavior, and make the plugin use only expressions that are listed.
For ghosts with no compatible expressions, a special reference is provided.
Expressions which the ghost's shell cannot produce accurately should be listed as references in this tag (or should be omitted, if using the inverted behavior), as the plugin will use this information for its own purposes.

--option=include
Only surfaces that are listed will be used. (Inverted behavior.)
__NO_EXPRESSIONS__
No expressions will be used. Must be sent as reference0.
OnSpectrePlugin.PossessionOriginal

Occurs 15 seconds after Spectre displays a dialogue through this ghost.
Note that this event does not come directly from the plugin itself, but rather is called from the ghost side by a timerraise tag placed at the end of dialogues.

Reference0
The current "mood" of the character, based on the current dialogue pool. May be one of the following values:
  • dissociated …… A very sad and incoherent mood
  • miserable …… A sad or angry mood
  • cheerful …… A happy or relaxed mood
Reference1
Whether the script that was played was a "spooky text" script, e.g., a script with special text effects to evoke a feeling of unease. 1 if true, 0 if false.
Note that "spooky text" scripts are currently only played in situations where Reference0 is "dissociated".

SAORI "httpc.dll"

OnHttpcNotify

A return-value notification event sent via DirectSSTP by the same DLL after a function provided by httpc.dll is run with the asynchronous execution option.

Reference0
The identifier passed as argument 1 when called.
Reference1
Empty string
Reference*
The return value of the executed function.

App “Kinoko”

OnKinokoObjectCreate

Occurs when a Kinoko skin appears on the head.

Reference0
Name of the Kinoko skin.
Reference1
Names of the ghosts primarily targeted by the Kinoko skin. If there are multiple names, they are comma-separated.
Reference2
Category of the Kinoko skin. If there are multiple categories, they are comma-separated.
OnKinokoObjectDestroy

Occurs when a Kinoko skin disappears from the head.

Reference0
Name of the Kinoko skin.
Reference1
Names of the ghosts primarily targeted by the Kinoko skin. If there are multiple names, they are comma-separated.
Reference2
Category of the Kinoko skin. If there are multiple categories, they are comma-separated.
OnKinokoObjectChanging

Occurs when a Kinoko skin is about to be switched.

Reference0
Name of the Kinoko skin before switching.
Reference1
Names of the ghosts primarily targeted by the Kinoko skin before switching. If there are multiple names, they are comma-separated.
Reference2
Category of the Kinoko skin before switching. If there are multiple categories, they are comma-separated.
OnKinokoObjectChanged

Occurs when the Kinoko skin is switched.

Reference0
Name of the Kinoko skin after switching.
Reference1
Names of the ghosts primarily targeted by the Kinoko skin after switching. If there are multiple names, they are comma-separated.
Reference2
Category of the Kinoko skin after switching. If there are multiple categories, they are comma-separated.
OnKinokoObjectInstalled

Occurs when a Kinoko skin is installed by dropping it.

Reference0
Name of the installed Kinoko skin.
Reference1
Names of the ghosts primarily targeted by the installed Kinoko skin. If there are multiple names, they are comma-separated.
Reference2
Category of the installed Kinoko skin. If there are multiple categories, they are comma-separated.
OnBatteryLow

Occurs when the battery charge falls below 40%.
Note that SSP has an event with the same name that it sends.

Reference0
Percentage value.
OnBatteryCritical

Occurs when the battery charge falls below 20%.
Note that SSP has an event with the same name that it sends.

Reference0
Percentage value.
OnSysResourceLow

Occurs when system resources fall below 50%.

Reference0
Percentage value.
OnSysResourceCritical

Occurs when system resources fall below 30%.

Reference0
Percentage value.

App "Nekodorif"

OnNekodorifObjectEmerge

Occurs when a falling object appears in the visible area.

Reference0
Name of the falling object.
Reference1
Name of the ghost targeted by the falling object.
Reference2
Category of the falling object.
Reference3
Mushroom flag. 1 if it was a mushroom; otherwise, 0.
Reference4
Name of the target of the falling object.
OnNekodorifObjectHit

Occurs when a falling object hits something.

Reference0
Name of the falling object.
Reference1
Name of the ghost targeted by the falling object.
Reference2
Category of the falling object.
Reference3
Mushroom flag. 1 if it was a mushroom; otherwise, 0.
Reference4
Name of the target of the falling object.
OnNekodorifObjectDrop

Occurs when a falling object is dropped again.

Reference0
Name of the falling object.
Reference1
Name of the ghost targeted by the falling object.
Reference2
Category of the falling object.
Reference3
Mushroom flag. 1 if it was a mushroom; otherwise, 0.
Reference4
Name of the target of the falling object.
OnNekodorifObjectVanish

Occurs when a falling object that hit something disappears from the visible area.

Reference0
Name of the falling object.
Reference1
Name of the ghost targeted by the falling object.
Reference2
Category of the falling object.
Reference3
Mushroom flag. 1 if it was a mushroom; otherwise, 0.
Reference4
Name of the target of the falling object.
OnNekodorifObjectDodge

Occurs when a falling object that did not hit disappears from the visible area.

Reference0
Name of the falling object.
Reference1
Name of the ghost targeted by the falling object.
Reference2
Category of the falling object.
Reference3
Mushroom flag. 1 if it was a mushroom; otherwise, 0.
Reference4
Name of the target of the falling object.

App "YunaSoft SexyFont Plug-in"

OnMusicPlay

Occurs when music is played.

Reference0
Song title.

App “Fleet Clock”

OnFleetClockComplete

Occurs when the timer for a scheduled event reaches 0.

Reference0
Category name.
Reference1
Note contents.

Application "Elona omake_MMA"

OnElonaOmakeMMAEventNewGame

Occurs when starting a new game.

Reference0
Game version.
Reference1
In-game year
Reference2
In-game month
Reference3
In-game day
Reference4
In-game hour
Reference5
In-game minute
Reference6
In-game second
Reference7
In-game weather
Reference8
Map name
Reference9
Area name
Reference10
World name
Reference11
Floor
Reference12
Guild affiliation
Reference*
Reference13-19 are unused and reserved.
Reference20
Character number targeted by each event (0: PC, 1~15: pets, 16~55: adventurers, 56~: other NPCs)
Reference21
PC: Name
Reference22
PC: Nickname
Reference23
PC: Race
Reference24
PC: Class
Reference25
PC: Faith
Reference26
PC: Character type name (PCs have no type, so "bug" is assigned)
Reference27
PC: Sex
Reference28
PC: Age
Reference29
PC: Height
Reference30
PC: Weight
Reference31
PC: Level
Reference32
PC: Current HP
Reference33
PC: Maximum HP
Reference34
PC: Current MP
Reference35
PC: Maximum MP
Reference36
PC: Money
Reference37
PC: Fame
Reference38
PC: Karma
Reference39
PC: DV
Reference40
PC: PV
Reference41
PC: Strength
Reference42
PC: Constitution
Reference43
PC: Dexterity
Reference44
PC: Perception
Reference45
PC: Learning
Reference46
PC: Will
Reference47
PC: Magic
Reference48
PC: Charisma
Reference49
PC: Speed
Reference50
PC: Luck
Reference*
Reference51-80 contain the event target character's data in the same order as the PC data, offset by +30.
OnElonaOmakeMMAEventGameLoad

Occurs when the game starts.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventGameQuit

Occurs when the game ends.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventHourPlayed

Occurs every real-world hour after the game starts.

Reference*
Reference0~80: ※Common references.
Reference82
Elapsed time in Reference
OnElonaOmakeMMAEventMapChanged

Occurs when moving to another map.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventLevelUp

Occurs when the PC or a pet levels up.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventSkillUp

Occurs when the skill level of the PC or a pet increases.

Reference*
Reference0–80, ※Common reference.
Reference81
Skill name.
Reference82
Skill level.
OnElonaOmakeMMAEventSkillDown

Occurs when the skill level of the PC or a pet decreases.

Reference*
Reference0–80, ※Common reference.
Reference81
Skill name.
Reference82
Skill level.
OnElonaOmakeMMAEventBelieveGod

Occurs when the PC converts to another religion.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventJoinParty

Occurs when a pet joins the party.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventSleep

Occurs when sleep begins.

Reference*
Reference0–80, see ※Common reference.
Reference81
Bedding name.
Reference82
1 if leaving offspring.
OnElonaOmakeMMAEventAwake

Occurs when waking from sleep.

Reference*
Reference0–80: ※Common references.
Reference81
Bedding name.
Reference82
1 if leaving genes.
OnElonaOmakeMMAEventInvestNPC

Occurs when an NPC is investigated.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventRandomEvent

Occurs when a random event occurs.

Reference*
Reference0–80, ※Common reference.
Reference81
Event name.
OnElonaOmakeMMAEventAddNewsTopic

Occurs when an adventurer news topic is added.

Reference*
Reference0–80: ※Common references.
Reference81
News title.
OnElonaOmakeMMAEventWish

Occurs when the wish input dialog is displayed.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventWished

Occurs when a wish is entered.

Reference*
Reference0–80; see ※common reference.
Reference81
The content of the wish.
OnElonaOmakeMMAEventDead

Occurs when the PC dies.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventPetDead

Occurs when a pet dies.

Reference*
Reference0~80, ※Common reference.
OnElonaOmakeMMAEventLastword

Occurs after entering a last will.

Reference*
Reference0~80: ※Common references.
Reference81
Last will.
OnElonaOmakeMMAEventTravelGuide

Occurs when Norn's adventure guide is displayed.

Reference*
Reference0~80, ※Common Reference.
Reference82
Help number (the number in %n) written in data\exhelp.txt
OnElonaOmakeMMAEventAbandonPet

Occurs when severing ties with a pet.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventSaleSlave

Occurs when a pet is sold to a slave trader.

Reference*
Reference0~80, ※Common reference.
Reference82
Sale price.
OnElonaOmakeMMAEventSaleWife

Occurs when you sell your wife to Raphael.

Reference*
Through Reference0~80, ※Common references.
Reference82
1 if your wife is non-human.
OnElonaOmakeMMAEventMarriage

Occurs when getting married.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventRefuseMarriage

Occurs when a marriage proposal is rejected.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventJoinGuild

Occurs when joining a guild.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventMutation

Occurs when a mutation occurs.

Reference*
Reference0~80: ※Common references.
Reference81
Mutation message.
Reference82
-1 for a harmful mutation, 1 for a beneficial mutation.
OnElonaOmakeMMAEventMutationCured

Occurs when a mutation is cured.

Reference*
Reference0~80: ※Common references.
Reference81
Mutation message.
Reference82
-1 for a harmful mutation, 1 for a beneficial mutation.
OnElonaOmakeMMAEventEtherDisease

Occurs when an ether disease develops.

Reference*
Reference0~80: ※Common references.
Reference81
Mutation message.
OnElonaOmakeMMAEventEtherDiseaseCured

Occurs when an ether disease is cured.

Reference*
Reference0~80: ※Common references.
Reference81
Mutation message.
OnElonaOmakeMMAEventAdventGod

Occurs when a god descends.

Reference*
Reference0–80: ※Common references.
Reference81
God name.
OnElonaOmakeMMAEventMewmewmew

Occurs when Umimyaaa is activated.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventBuyNuke

Occurs when purchasing a nuclear bomb.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventSetNuke

Occurs when a nuclear bomb is placed.

Reference*
Reference0–80, ※Common references.
OnElonaOmakeMMAEventNukeExploded

Occurs when a nuclear bomb explodes.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventLomiasInTheParty

Occurs while 'Lomias,' the Messenger from the Woods of Dissimilarity, is in the party.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventLomiasKilled

Occurs when 'Lomias,' the Messenger from the Woods of Dissimilarity, is killed.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventZeomeKilled

Occurs when the false prophet "Zeome" is defeated.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventConqueredLesimas

Occurs when Lesimas is conquered.

Reference81
Comment.
Reference82
Score.
OnElonaOmakeMMAEventAtonement

Occurs when karma increases and the PC is no longer a criminal.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventBecomeCriminal

Occurs when karma decreases and the PC becomes a criminal.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventPerformance

Occurs when the PC starts playing music.

Reference*
Reference0~80, see ※Common References.
Reference81
Instrument item name.
Reference82
Performance skill.
OnElonaOmakeMMAEventClothOut

Occurs when the PC starts removing clothes for sexual pleasure.

Reference*
Reference0–80: ※Common references.
OnElonaOmakeMMAEventStealItem

Occurs when finished stealing an item.

Reference*
Reference0~80, ※Common reference.
Reference81
Name of the stolen item.
Reference82
1 for an NPC's possessions, 0 for an item on the map.
OnElonaOmakeMMAEventTreasureDigging

Occurs when the location shown on the treasure map is dug up.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventReadTreasureMap

Occurs when a treasure map is read.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventSkillLearned

Occurs when learning a skill from a trainer.

Reference*
Reference0 to 80; ※Common Reference.
Reference81
Skill name.
OnElonaOmakeMMAEventWeatherChanged

Occurs when the weather changes.

Reference*
Reference0–80, ※Common reference.
Reference81
Weather before the change.
OnElonaOmakeMMAEventRagnarok

Occurs when the day of Ragnarok arrives.

Reference*
Reference0–80, ※Common Reference.
OnElonaOmakeMMAEventSisterRagnarok

Occurs when Sister's Day arrives.

Reference*
Reference0–80, ※Common Reference.
OnElonaOmakeMMAEventPray

Occurs when praying to a god.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventOffer

Occurs when an item is offered at an altar.

Reference*
Reference0~80: ※Common references.
Reference81
Offered item.
OnElonaOmakeMMAEventPrayFailed

Occurs when a prayer to a god is met with indifference.

Reference*
Reference0–80, ※Common reference.
OnElonaOmakeMMAEventPrayEyth

Occurs when you try praying to a god without a faith.

Reference*
Reference0 to 80, ※Common Reference.
OnElonaOmakeMMAEventAreaChanged*

Occurs when moving to another area (* is the area number).

Reference*
Reference0–80: ※Common references.
Reference81
Name of the area previously occupied.
Reference82
Number of the area previously occupied.
OnElonaOmakeMMAEventPayTax

Occurs when the PC puts an invoice in the tax box.

Reference*
Reference0–80, ※Common Reference.
Reference81
Amount of tax paid.
OnElonaOmakeMMAEventCooking

Occurs when the PC cooks an item.

Reference*
Reference0~80: ※Common references.
Reference81
Cooked item name.
Reference82
Cooked item identifier.
Reference83
Food type (1: meat, 2: vegetable, 3: fruit, 4: sweets, 5: noodles, 6: fish, 7: bread, 8: egg).
Reference84
Cooking rank (1~9).
OnElonaOmakeMMAEventAreaChanged

Occurs when moving to an unspecified different area.

Reference*
Reference0–80: ※Common references.
Reference81
Name of the area previously occupied.
Reference82
Number of the area previously occupied.
OnElonaOmakeMMAEventHour

Occurs when one in-game hour has passed.

Reference*
Reference0~80: ※Common references.
OnElonaOmakeMMAEventGrandmapocalypse

Occurs when the Grandmapocalypse arrives.

Reference*
Reference0~80: ※Common references.

Mahjong Communication Events

OnMahjong

Notify at each point in the game. See ※Server commands below.

Reference0
Version (UKAJONG/0.2)
Reference1
※Server commands
Reference*
Additional information corresponding to ※Server commands

Server commands and their additional information in UKAJONG/0.2

Reference1
gamestart (at the start of the game)
Reference2
Seat (East|South|West|North)
Reference3
Player name 1
Reference4
Player name 2
Reference5
Player name 3
Reference6
Player name 4
Reference1
gameend (at the end of the game)
Reference2
Player name 1 (byte value 1) score
Reference3
Player name 2 (byte value 1) score
Reference4
Player name 3 (byte value 1) score
Reference5
Player name 4 (byte value 1) score
Reference1
kyokustart (at the start of a hand)
Reference2
Prevailing wind (East|South|West|North)
Reference3
Dealer player name
Reference4
Honba (e.g. 1)
Reference5
Riichi sticks (e.g. 1000)
Reference1
kyokuend (at the end of a hand)
Reference1
point (notify a player's score)
Reference2
Player name
Reference3
(=|+|-) = specifies the score directly; +- indicates an increase or decrease
Reference4
Score
Reference1
haipai (when dealing the starting hand)
Reference2
Player name
Reference3
Starting hand (e.g. 1m2m3m4p5p6p7s8s9s1z5z6z7z)
Reference1
dora (when sending the dora indicator)
Reference2
Tile (e.g. 7z)
Reference1
open (when revealing a hand: chi, pon, kan, etc.)
Reference2
Player name
Reference3
Tiles (e.g. 1p2p3p)
Reference1
tsumo (when drawing a tile)
Reference2
Player name (self)
Reference3
Remaining tiles
Reference4
Tile (e.g. 7z)
Reference1
sutehai (when discarding a tile)
Reference2
Player name (self)
Reference3
Tile (e.g. 7z)
Reference1
say (when declaring an action)
Reference2
Player name
Reference3
Declaration (chi|pon|kan|ron|tsumo|richi|tenpai|noten)
Reference1
agari (when winning)
Reference2
Player name
Reference3
Fu
Reference4
Yaku, han count
Reference5
From here on, same as Reference4
Reference1
ryukyoku (at a draw)

The following commands require a reply. If the requester is a GHOST, you may reply with \![raiseother] or similar. However, if the requester is an external application and the notification was sent via SSTP, you must reply using the X-SSTP-PassThru-* header.

When replying with \![raiseother], return an OnMahjongResponse event. When using SHIORI response headers, set X-SSTP-PassThru-ID: OnMahjongResponse.

If an empty string is set for the requested item, the server is considered to have been delegated the response.

Reference1
hello (connection check)
Reference1
sutehai? (ask which tile to discard)
Reference1
naku? (ask whether to call the tile; also sends commands the client can make)
Reference2
(ron|kan|pon|chi)
Reference3
From here on, same as Reference2
Reference1
tenpai? (ask whether to declare tenpai)

OnMahjongResponse

Reply to the OnMahjong event. See ※Client commands below.

Reference0
Version (UKAJONG/0.2)
Reference1
※Client commands
Reference*
Additional information corresponding to ※Client commands

Client commands and their additional information in UKAJONG/0.2

Reference1
hello (connection confirmation reply)
Reference2
ump=(UMP version)※It does not strictly conform to UMP, so I do not check it in particular. ump=? is OK
Reference3
name=(player name)※Specify sakura.name.
Reference1
sutehai? (discard reply)
Reference2
(sutehai|ankan|kakan|richi|tsumo)
Reference3
Selected tile (can be empty for tsumo)
Reference1
naku? (reply on whether to call a tile)
Reference2
(no|ron|kan|pon|chi)
Reference3
Selected tile 1 (required for chi. Specify, for example, 1m and 3m or 3m and 4m for 2m. This is the first of the two tiles)
Reference4
Selected tile 2 (the second tile described above)
Reference1
tenpai? (reply on whether to declare tenpai)
Reference2
(yes|no)

Nostr Notification Events

OnNostr

Notification information in Nostr/0.5

Reference0
Version (Nostr/0.5)
Reference1
Nostr event kind (number) (1:note, 7:reaction, ...)
Reference2
Nostr event content
Reference3
The kind0 name of the Nostr event signer
Reference4
The kind0 display_name of the Nostr event signer
Reference5
The kind0 picture of the Nostr event signer
Reference6
The NIP-19-encoded Nostr event ID (note1... or nevent1...)
Reference7
The NIP-19-encoded public key of the Nostr event signer (npub1...)
Reference8
Value of the Nostr event's g tag
Reference9
Value of the Nostr event's n tag
Reference10
Value of the Nostr event's t tag

App "Satolist"

OnSatolistBoot

Occurs when Satolist starts.

OnSatolistGhostOpened

Occurs when Satolist loads a ghost.

Reference0
Character name on the baseware side.
Reference1
Ghost name.
OnSatolistSaved

Occurs when a ghost is saved in Satolist.

Reference0
closing if saved when Satolist exits; otherwise, edit
OnSatolistClosed

Occurs when Satolist is about to exit.

OnSatolistEventAdded

Occurs when an event is created in Satolist.

Reference0
Name of the added item.
Reference1
Name of the destination file.
Reference2
Type of the item.
Reference3
Condition that triggers the item.
OnSatolistDictionaryFolderChanged

Occurs when the dictionary folder used by "Dictionary" is changed.

Google Chrome extension "Touken Ranbu Extension"

OnTourabuConquestStart

Occurs when an expedition starts.

Reference0
Unit number (integer from 1 to 4).
Reference1
Approximate time until the expedition ends, in minutes.
OnTourabuConquestEnd

Occurs when an expedition ends.
Depending on the specification, notification may arrive a few seconds before the expedition actually ends.

Reference0
Unit number (integer from 1 to 4).
OnTourabuDutyStart

Occurs when an internal duty starts.

OnTourabuDutyEnd

Occurs when an internal duty ends.

Interactive executable for ghost development “Ghost Terminal”


Start and end

ShioriEcho.Begin

ghost_terminal event triggered when this ghost starts

Reference0
Terminal version
Reference1
Terminal session type
If the terminal starts with `-s`, the value is `SakuraScript`.
If the terminal starts with `-c`, the value is `Command`.
If the terminal starts in common mode, the value is `Common`.
Return value: X-SSTP-PassThru-Tittle (optional)
Set the terminal title
Return value: X-SSTP-PassThru-Icon (optional)
Set the terminal icon
Return value: X-SSTP-PassThru-SmallIcon (optional)
Set the terminal's small icon
If not set, it matches `X-SSTP-PassThru-Icon`
Return value: X-SSTP-PassThru-CustomLoginInfo (optional)
If set, the terminal does not display the default login information, and this
This return value is simply escaped:
- `\n` is converted to a line break.
- `\t` is converted to a tab.
- `\\` is converted to `\`.
ShioriEcho.End

ghost_terminal event triggered when the program exits normally

ShioriEcho.GetName

Event triggered when ghost_terminal retrieves the name

Return value: X-SSTP-PassThru-GhostName (optional)
Display the ghost's name
Return value: X-SSTP-PassThru-UserName (optional)
Display the user's name

Notes


Execute a command

ShioriEcho

Event that occurs after a command is entered

Reference0
Command collected by the terminal
戻り値
If `ShioriEcho.GetResult` is not defined, you can return any value supported by `ShioriEcho.GetResult` here. These return values are handled correctly by the terminal (however, if you do not define `ShioriEcho.GetResult` and return nothing, return value 3 proceeds to retrieve the next command).
If `ShioriEcho.GetResult` is defined, the return value here is ignored (**however, Sakura Script is executed normally**).
ShioriEcho.GetResult

Value result event query

Replyable header 1:

Return value: X-SSTP-PassThru-Result
Display the content and proceed to retrieve the next command.
Return value (optional): X-SSTP-PassThru-Type
Additional information: value type

Replyable header 2:

Return value: X-SSTP-PassThru-Special
Display the content and proceed to retrieve the next command.
This return value is simply escaped:
- `\n` is converted to a line break.
- `\t` is converted to a tab.
- `\\` is converted to `\`.

Replyable header 3: Empty

Wait 1 second and retry ShioriEcho.GetResult.

Other

Return value: X-SSTP-PassThru-Status
This return value can be combined with the return values above
If it is `End`, the terminal exits.
If it is `Continue`, the terminal displays nothing and proceeds to retrieve the next command.

Notes


Other

ShioriEcho.TabPress

An event for completing a command with the Tab key.

Reference0
Command collected by the terminal.
Reference1
First character of the command at the cursor position when Tab is pressed (starting value is 0).
Reference2
Number of consecutive Tab presses made by the user (starting value is 0).
Reference3
First character of the command at the cursor position when Tab was first pressed in this series of tab completions (starting value is 0).
Return value (optional): X-SSTP-PassThru-Command
Replace the command with this content.
Return value (optional): X-SSTP-PassThru-InsertIndex
Move the cursor to this position (leave it unchanged if not provided).
Return value (optional): X-SSTP-PassThru-OldInsertIndex
Update the subsequent `Reference3` to this content and keep it in effect until this series of tab completions ends (leave it unchanged if not provided).
ShioriEcho.CommandUpdate

Event triggered when a command is updated

Reference0
Command collected by the terminal
Return value (optional): X-SSTP-PassThru-CommandForDisplay
Replace the displayed command with this content.
The ghost can use this event to implement features such as masking password input and syntax highlighting during normal speech.
ShioriEcho.CommandPrompt

Event triggered when the command prompt is updated

Return value (optional): X-SSTP-PassThru-Prompt
Replace the displayed command prompt with this content
The ghost can dynamically change the command prompt using this event.
ShioriEcho.CommandComplete

Event triggered when the user presses `→` at the right end of the command line

Reference0
Command collected by the terminal
Reference1
First character of the command at the cursor position when `→` is pressed (starting value is 0).
Return value (optional): X-SSTP-PassThru-Command
Replace the command with this content.
The ghost can use this event to autocomplete commands.
Return value (optional): X-SSTP-PassThru-InsertIndex
Move the cursor to this position (leave it unchanged if not provided).

Notes


Command history

ShioriEcho.CommandHistory.New

Event triggered when an empty command is added to the end of command history

ShioriEcho.CommandHistory.Update

Event triggered when command history is updated

Reference0
Contents of the history command
Reference1
Command history index (reverse order, starting value is 0)
ShioriEcho.CommandHistory.Get

Event triggered when command history is retrieved

Reference0
Command history index (reverse order, starting value is 0)
Return value (optional): X-SSTP-PassThru-Command
Replace the command with this content
ShioriEcho.CommandHistory.ForwardIndex

Event triggered when the index is updated after the user presses `↑`

Reference0
Command history index (reverse order, starting value is 0)
Reference1
Expected increase in the value of `index`.
Return value (optional): X-SSTP-PassThru-Index
Update the index to this value

App "Elin"

OnElinAllyCondition

Occurs when a pet suffers a status ailment.

Reference0
Pet name
Reference1
Status ailment name
OnElinAllyDead

Occurs when a pet dies.

Reference0
Pet name
Reference1
Cause of death
Reference2
Name of the NPC that killed the pet, if one exists
OnElinCatchFish

Occurs when something is caught.

Reference0
Name of the caught item
OnElinMapCharaGenerate

Occurs when an NPC is generated. One of Reference0–3 contains a value.

Reference0
Information about enemy NPCs
Reference1
Information about neutral NPCs
Reference2
Information about friendly NPCs
Reference3
Information about allied NPCs
OnElinMapEnter

Occurs when entering a map.

Reference0
Map name
Reference1
Information about enemy NPCs
Reference2
Information about neutral NPCs
Reference3
Information about friendly NPCs
Reference4
Information about allied NPCs
Reference5
Information about items on the floor or placed there
Reference6
Whether it is a town
Reference7
Whether it is a Nefia
Reference8
Whether it is a PC-owned property (?)
Reference9
Whether it is a fixed Nefia
Reference10
Whether it is an empty field map
OnElinMapItemGenerate

Occurs when a treasure chest is generated, for example.

Reference0
Item information
OnElinPCCondition

Occurs when the PC suffers a status ailment.

Reference0
Status ailment name
OnElinPCDead

Occurs when the PC dies.

Reference0
PC name
Reference1
Cause of death
Reference2
Name of the NPC that killed the PC, if one exists
OnElinTarget

Occurs when targeting an NPC with Shift+F.

Reference0
Name of the targeted NPC

Notes

Character and item information

Item information

Items are separated by byte value 1. Example: dirt0x01gold nugget0x01iron pickaxe0x01…

Character information

Each character's name and carried items are separated by byte value 1, and each character is further separated by byte value 2. Example: Yek0x02copper dagger0x01goblin0x02paper greatsword0x02coral light cloak0x01samurai…

Music player notification events

OnMusicPlayer.SongInfoOriginal

Notifies information about the music player's internal state to all open ghosts. [NOTIFY]
Because the implementation is added and updated on the ghost side, some ghosts may use an older version with fewer references.

Reference0
The sakura name of the ghost that sent the event.
Reference1
The file path of the currently loaded song. Empty if no song is loaded.
Reference2
The playlist index number of the currently loaded song. -1 if no song is loaded, and in certain circumstances when a song has been removed from the playlist but is still playing.
Reference3
The playback state. 0 if stopped, 1 if playing music, and 2 if playback is paused.
Reference4
The current volume, from 0-100.
Reference5
The current playback speed, usually from 0-400. Some implementations may allow speeds higher than 400.
Reference6
The current left/right balance. -100 is all the way to the left, 0 is centered, and 100 is all the way to the right.
Reference7
The play mode. Numbers correspond to the following modes.
  • 0 - Loop Playlist
  • 1 - Shuffle and Loop
  • 2 - Loop One Song
  • 3 - Play One Song
  • 4 - Random
Reference8
A special flag for stopping playback. "stop after playback" means playback will stop when the current song ends. "stop after playlist" means playback will stop when the current playlist ends (applicable in both "Loop Playlist" and "Shuffle and Loop" modes). Empty if neither flag is set.
Reference9
The number of songs in the current playlist.

Generic external application events

OnApplicationBoot

Occurs when an external application starts.

Reference0
Application name.
Reference1
Application information.
  • Materia
  • SSP
  • CROW
OnApplicationClose

Occurs when an external application exits.

Reference0
Application name.
Reference1
Application information.
  • Materia
  • SSP
  • CROW
OnApplicationExist

Occurs when notified that an external application exists.

Reference0
Application name.
Reference1
Application information.
  • Materia
  • SSP
  • CROW
OnApplicationVersion

Occurs when external application version information is reported.

Reference0
Application name.
Reference1
Application information.
Reference2
Version number.
Reference3
Copyright.
Reference4
Developer URL.
  • Materia
  • SSP
  • CROW
OnApplicationOperationFinish

Occurs when an external application or one of its processes finishes.

Reference0
Application name.
Reference1
Process description.
Reference2
Process target.
  • Materia
  • SSP
  • CROW
OnApplicationFileOpen

Occurs when an external application opens a document file.

Reference0
Application name.
Reference1
File full path.
  • Materia
  • SSP
  • CROW
OnWebsiteUpdateNotify

Occurs when a website update or new information is reported.

Reference0
Website name.
Reference1
Last update date and time.
Reference2
Update details.
  • Materia
  • SSP
  • CROW

UKADOC

OnUkadocScriptExample

Occurs when a sample script from the Sakura Script List on Ukadoc is run.
If you implement this event, note that you must escape dangerous Sakura Script tags yourself.

Reference0
The script to run.