UKADOC Project

Property System

Property System

Overview

The property system lets ghosts access and read or write various parameters that the baseware maintains while running.

Example

There are two ways to use the property system: environment variables and regular tags.
See also the sections on the property system in Sakura Script and environment variables.

%property[property name]

Reference a property as an environment variable and insert its value.
Use this when you simply want to display the value as-is.
The following inserts (displays) the baseware name and version at that location.

%property[baseware.name] ver,%property[baseware.version]
\![get,property,event name,property name]

Use a Sakura Script tag to trigger a SHIORI Event with an arbitrary name, then retrieve a property through its Reference.
Use this when you want the SHIORI side to perform an action based on a property.
The following triggers a SHIORI Event with the ID "OnGetSakuraName" and sends the name of the partner (Teddy) of the ghost "Emily/Phase4.5" as reference0.

\![get,property,OnGetSakuraName,ghostlist(Emily/Phase4.5).keroname]
\![set,property,property name,value]

Use a Sakura Script tag to change a property.
Not all properties can be written to, but those marked [SET enabled] on this page can be manipulated in this way.
The following hides the shell "ULTIMATE FORM" from the shell-switching menu in the owner-draw menu.

\![set,property,currentghost.shelllist(ULTIMATE FORM).menu,hidden]
system.year

Current year.

  • SSP
  • CROW
system.month

Current month.

  • SSP
  • CROW
system.day

Current day.

  • SSP
  • CROW
system.hour

Current hour.

  • SSP
  • CROW
system.minute

Current minute.

  • SSP
  • CROW
system.second

Current second.

  • SSP
  • CROW
system.millisecond

Current milliseconds.

  • SSP
system.dayofweek

Current day of the week.

  • SSP
system.cursor.pos

Gets the current mouse cursor position directly. X,Y separated by a comma, in pixels.

  • SSP2.5.43
system.os.(key)

Information about the running OS. The following strings can be used for (key).

type
OS type, such as Windows,MacOS,Darwin,Linux,Android,FreeBSD,ReactOS. For a runtime on the web, this is "Web". (The value is in TitleCase for historical reasons.)
arch
OS architecture, such as x86,x64,arm,arm64,ia64,risc-v,ppc,mips,loongarch. If it cannot be determined or is architecture-independent, this is "unknown".
name
OS name. Example: Windows 11 22H2
version
OS kernel version. Example: 10.0. Note that this may differ from the OS's marketed version. For example, both Windows 10 and 11 have version 10.0.
build
OS build number. Example: 22621
parenttype
If running in some kind of compatibility OS or compatibility layer, its type. An empty string if none. Currently, this is Wine or ReactOS.
parentname
Name of the host (parent) OS for a compatibility OS or compatibility layer. An empty string if none. Example: Linux 5.19.0-23-generic
locale
OS UI locale name, formed by joining the language code and country or region code with "-". Example: ja-JP (SSP 2.8.17 and later)
locale.language
OS UI language code (ISO 639). Example: ja (SSP 2.8.17 and later)
locale.country
OS UI country or region code (ISO 3166). Example: JP (SSP 2.8.17 and later)
timezone.offset
Offset of the current time zone from UTC, in minutes. Regions ahead of UTC have a negative value. Example: -540 for Japan Standard Time (SSP 2.8.17 and later)
dst
1 if daylight saving time is currently in effect, otherwise 0. (SSP 2.8.17 and later)
uptime
Time elapsed since the OS started, in seconds. (SSP 2.8.17 and later)
unixtime
UNIX time for the current time (seconds elapsed since 1970-01-01 00:00:00 UTC). (SSP 2.8.17 and later)
idletime
Time elapsed since the last user input (keyboard or mouse operation), in seconds. (SSP 2.8.17 and later)
  • SSP2.6.26/27
system.cpu.(key)

Information about the CPU in the running environment. The strings that can be used for (key) are as follows.

load
Load percentage (integer, averaged over a moving window of approximately one minute)
num
Total number of cores recognized by the OS
vendor
Vendor name. Example: GenuineIntel
name
Name. Example: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
clock
Clock frequency
features
List of supported instruction set extensions (separated by spaces). Example: MMX SSE SSE2 SSE3
  • SSP2.6.26
system.memory.(key)

Information about the physical memory in the running environment. The strings that can be used for (key) are as follows.

load
Usage percentage (integer, averaged over a moving window of approximately one minute)
phyt
Total physical memory (MB)
phya
Available physical memory (MB)
  • SSP2.6.26
system.monitor.count

Number of connected monitors.

  • SSP2.8.16
system.monitor.index(ID).work

Work area (left, top, right, bottom) of the monitor with ID. This is the area available for placing windows, excluding system-reserved areas such as the taskbar.

  • SSP2.8.16
system.monitor.index(ID).rect

Rectangular coordinates (left, top, right, bottom) of the monitor with ID.

  • SSP2.8.16
system.monitor.index(ID).bpp

Color depth (bits per pixel) of the monitor with ID.

  • SSP2.8.16
system.monitor.index(ID).dpi

DPI of the monitor with ID.

  • SSP2.8.16
system.monitor.index(ID).primary

Whether the monitor with ID is the primary monitor. Returns 1 if it is primary, and 0 otherwise.

  • SSP2.8.16
system.power.(key)

Power and battery status. The following strings can be used for (key). If information cannot be retrieved, including on systems without a battery (such as desktop PCs), each value will be set to the value listed below for "when unavailable".

source
Current power source: battery (running on battery), ac (connected to AC power/outlet), or ups (via a UPS). If unavailable, this is unknown.
battery.percent
Battery charge (%; integer). If unavailable or the charge is unknown, this is -1.
battery.lifetime
Remaining operating time on battery power (seconds). If unavailable or the remaining time is unknown, this is -1.
battery.flag
Battery status flags, listed as comma-separated values. Possible values are high (charge sufficient), low (low charge), critical (critically low), charging (charging), no_battery (no battery), and power_saving (battery saver is enabled; Windows 10 and later only). If unavailable, this is an empty string.
  • SSP2.8.17
system.disk.count

The number of drives (logical drives) recognized by the OS.

  • SSP2.8.17
system.disk.index(ID).(key)

Information about the drive at index ID (zero-based). The ID range is from 0 to system.disk.count - 1. The strings that can be used for (key) are as follows.

mountpoint
On Windows, the drive letter (without the trailing "\"); on other OSes, the mount point. Example: C: /home
type
Drive type: fixed (fixed disk), removable (removable disk), network (network drive), optical (optical drive), ram (RAM disk), or unknown.
total
Total drive capacity (MB). Returns -1 if the capacity cannot be retrieved (for example, no media is inserted).
free
Free drive capacity (MB). Returns -1 if the capacity cannot be retrieved (for example, no media is inserted).
  • SSP2.8.17
system.network.(key)

Network connection status. The following strings can be used for (key).

status
Network connection status: online (connected) or offline (not connected).
ipaddress
Local IP address.
type
Connection type: one of bluetooth, cellular, ethernet, none, wifi, wimax, other, or unknown.
cost
Connection cost category: one of unknown, unrestricted, fixed, or variable.
downlink
Maximum downstream link speed (Mbps).
downlink.estimate
Estimated downstream link speed (Mbps). A more conservative estimate calculated from actual measurements.
  • SSP2.8.17
system.theme.app.mode

Theme mode of the SSP application UI: dark or light.

  • SSP2.8.17
system.theme.os.mode

OS theme mode: dark or light.

  • SSP2.8.17
system.dnd.mode

The state of the system's Do Not Disturb mode: quiet (enabled) or normal (disabled).

  • SSP2.8.17
baseware.version

Baseware version information.

  • SSP
  • CROW
baseware.name

Baseware name.

  • SSP
  • CROW
baseware.windowmode

SSP's window mode state. One of normal (normal mode), shared (window mode, with one container shared by all ghosts), or perghost (window mode, with one container per ghost).
When it is switched, OnWindowModeChange occurs.

  • SSP2.8.93
ghostlist.count

Number of installed ghosts.

  • SSP
  • CROW
ghostlist(ghost name/main character name/path).general property name

Retrieves information using the ghost's ghost name (name), main character name (sakuraname), or path.
[SSP 2.9.35] The ghost's UUID can also be specified (ghostlist(R5dVNluBvKjtQqjP0dAuoA==).name). It is matched when there is no match for the ID, path, or name. If multiple ghosts have the same UUID, the first one in the list is used.

  • SSP
  • CROW
ghostlist(ghost name/main character name/path).icon

Path to that ghost's icon.

  • SSP
ghostlist.index(ID).General Property Name

Retrieve information from the ghost at position ID in the list.

  • SSP
  • CROW
ghostlist.current.General Property Name

Retrieve information from the ghost at the current position in the list.

  • SSP
activeghostlist(ghost name/main character name/path).general property name

Retrieves information using the ghost name (name), main character name (sakuraname), or path of a running ghost.
[SSP 2.9.35] The ghost's UUID can also be specified. It is matched when there is no match for the ID, path, or name. If multiple ghosts with the same UUID are running, the first one in the list is used.

  • SSP
activeghostlist(ghost name/baseware-side name/path).ext.extended property name

Raises a SHIORI event (property.get or property.set) to get or set an extended property inside a ghost.

  • SSP2.7.85
activeghostlist.index(ID).generic property name

Gets information from the ghost at the specified ID position in the list of running ghosts.

  • SSP
activeghostlist.index(ID).ext.extended property name

Raises a SHIORI event (property.get or property.set) to get or set an extended property inside a ghost.

  • SSP2.7.85
activeghostlist.current.generic property name

Gets information from the current ghost among the running ghosts.

  • SSP
currentghost.General property name

Get information about the current ghost.

  • SSP
currentghost.status

The status of the current ghost (SHIORI Status header).

  • SSP

Notes

※SHIORI Status header

Multiple values may be returned separated by commas (,), or an empty value may be returned.

talking
A script is currently running (the ghost is talking).
passive
In passive mode (\![enter,passivemode]).
induction
In induction mode (\![enter,inductionmode]).
timecritical
Locked by the \t tag.
nouserbreak
In nouserbreak mode (\![enter,nouserbreak]).
online
Online (for example, while retrieving headline data, synchronizing the time, or performing a network update).
choosing
Displaying choices via the \q or \__q tag.
minimizing
Minimized (converted to a task tray icon).
opening(type)
An input window is open.
The type is one of communicate, input, teach, textarea, and dialog; the open types are listed, separated by slashes.
Example: opening(input/dialog)
※Slashes are used starting with SSP 2.3.97; earlier versions use commas
※textarea is available starting with SSP 2.9.10
balloon(info)
A balloon is displayed.
The info lists the displayed balloons in the format (character ID)=(balloon ID). Balloon IDs do not distinguish left from right (they are always even).
Example: balloon(0=2/1=0)
※Slashes are used starting with SSP 2.3.97; earlier versions use commas

The Status header can also be retrieved for each SHIORI as follows.

  • Kawari……System.Request.Status entry
  • YAYA……inside the status variable
  • Satori……information retrieval variable (Status)
currentghost.shelllist(shell name/path).generic property name

Gets information from the current ghost's shell by shell name or path.

  • SSP
  • CROW
currentghost.shelllist.index(ID).generic property name

Gets information from the shell at the specified ID position in the current ghost's list.

  • SSP
  • CROW
currentghost.shelllist.current.generic property name

Gets information from the current shell of the current ghost.

  • SSP
  • CROW
currentghost.shelllist.count

The number of installed shells.

  • SSP
  • CROW
currentghost.scope.count

Maximum number of characters currently active.

  • SSP
currentghost.scope(ID).surface.num

Surface ID for the current ghost's scope ID. Can also be set, behaving the same as the \s[] tag.

  • SSP
  • CROW
currentghost.scope(ID).animation.num

Animation IDs for the current ghost's scope ID.
When retrieved: A comma-separated list of the IDs of animations currently running. This reflects only the state at the moment of retrieval; it is not guaranteed that the animations will still be running after the result is received and processed.
When set: Runs the specified animation IDs in addition. Animations with IDs that are not specified are not stopped; the specified animations are simply added. Multiple IDs can be set at once as a comma-separated list, behaving the same as specifying multiple \i[] tags in succession.

  • SSP2.8.28
currentghost.scope(ID).seriko.defaultsurface

Default surface of the current ghost. Can also be set.

  • SSP
currentghost.scope(ID).surface.x

X-coordinate of the surface for the current ghost's scope ID.

  • CROW
currentghost.scope(ID).surface.y

Y-coordinate of the surface for the current ghost's scope ID.

  • CROW
currentghost.scope(ID).x

The X coordinate on the screen of the reference point of the surface for the current ghost's scope ID.
For multiple monitors, the position within the entire virtual desktop, with the top-left of the primary monitor as the origin.
The reference point is usually the bottom center of the surface. This can be configured in the descript.txt of GHOST and SHELL using sakura(kero、char*).defaultx.

  • SSP
currentghost.scope(ID).y

The Y coordinate on the screen of the reference point of the surface for the current ghost's scope ID.
For multiple monitors, the position in the entire virtual desktop, with the top-left of the primary monitor as the origin.
The reference point is usually the bottom center of the surface. It can be configured in the descript.txt of GHOST and SHELL using sakura(kero、char*).defaulty.

  • SSP
currentghost.scope(ID).rect

Window rectangle coordinates (left, top, right, bottom) for the current ghost's scope ID.

  • SSP
currentghost.scope(ID).name

Name of the current ghost's scope ID.
ID 0 is the same as sakura.name in descript.txt, ID 1 is the same as kero.name, and IDs 2 and above are the same as char?.name.

  • SSP2.6.67
currentghost.scope(ID).scaling

Effective scale factor for the current ghost's scope ID. Since this is the result of the user setting × tag setting × SERIKO setting, it may include decimal places.

  • SSP2.7.89
currentghost.scope(ID).currentmonitor.work

Work area (left, top, right, bottom) of the monitor displaying the window for the current ghost's scope ID. This is the area where windows can be placed, excluding system-reserved areas such as the taskbar.

  • SSP2.8.16
currentghost.scope(ID).currentmonitor.rect

Rectangle coordinates (left, top, right, bottom) of the monitor displaying the window for the current ghost's scope ID.

  • SSP2.8.16
currentghost.scope(ID).currentmonitor.bpp

Color depth (bits per pixel) of the monitor displaying the window for the current ghost's scope ID.

  • SSP2.8.16
currentghost.scope(ID).currentmonitor.dpi

DPI of the monitor displaying the window for the current ghost's scope ID.

  • SSP2.8.16
currentghost.scope(ID).currentmonitor.primary

Whether the monitor displaying the window for the current ghost's scope ID is the primary monitor. Returns 1 if it is the primary monitor, and 0 otherwise.

  • SSP2.8.16
currentghost.scope(ID).surface(ID).rect

You can check in advance the window rectangle coordinates (left, top, right, bottom) at which the specified surface ID will be displayed for the specified scope ID of the current ghost.

  • SSP2.8.57
currentghost.balloon.汎用プロパティ名

Gets information about the current ghost's balloon.

  • SSP
currentghost.balloon.count

Number of balloons for the current ghost.

  • SSP
currentghost.mousecursor

Cursor filename (fingertip) indicating an area of the ghost that can be interacted with.
The following also applies to properties beginning with currentghost.mousecursor / currentghost.balloon.mousecursor:
Relative paths are searched in the shell, then in the ghost folder.
If SET to an empty string, the definition is treated as deleted, and the display reverts to what it was before the set.
The cursor can be specified in the same way as in the cursor section of surfaces.txt.
[SET enabled]

  • SSP[2.6.11]
currentghost.mousecursor.text

Cursor filename for the input box

  • SSP[2.6.11]
currentghost.mousecursor.wait

Cursor filename (wristwatch) used when processing something and unable to respond.

  • SSP[2.6.11]
currentghost.mousecursor.hand

Cursor filename indicating a grabbable part of the ghost (open hand).

  • SSP[2.6.11]
currentghost.mousecursor.grip

Cursor filename indicating that a grabbable part of the ghost is being grabbed (closed hand).

  • SSP[2.6.11]
currentghost.mousecursor.arrow

Cursor filename (arrow) indicating an area of the ghost that cannot be interacted with.

  • SSP[2.6.11]
currentghost.balloon.mousecursor

Cursor file name for the fingertip used over areas of the balloon that can be operated.

  • SSP[2.6.11]
currentghost.balloon.mousecursor.text

Cursor file name for the balloon's input box.

  • SSP[2.6.11]
currentghost.balloon.mousecursor.wait

Cursor file name for the wristwatch cursor used when the balloon is processing something and cannot respond.

  • SSP[2.6.11]
currentghost.balloon.mousecursor.arrow

Cursor file name for the arrow used over areas of the balloon that cannot be operated.

  • SSP[2.6.11]
currentghost.seriko.cursor.scope(ID).mouse????list(hit region name).path

The cursor file name for the specified hit region name (relative path: searched in the shell folder first, then the ghost folder).
The following values can be specified for mouse????list: mouseuplist, mousedownlist, mousehoverlist, mousewheellist
When SET to an empty string, the definition is treated as deleted, restoring the shell's default cursor.
The same cursor specifications as in the cursor section of surfaces.txt can be used.
[SET supported]

  • SSP(2.3.83)

Example

\![set,property,currentghost.seriko.cursor.scope(0).mouseuplist(Head).path,頭.cur]Head当たり判定で使うカーソルを頭.curに変更\![set,property,currentghost.seriko.cursor.scope(0).mouseuplist(Head).path,]空っぽの指定だと定義削除となりシェルの標準カーソルとなる
currentghost.seriko.cursor.scope(ID).mouse????list(hit region name).name

The hit region name for the specified hit region name. This entry is for compatibility with index-based specification and has no particular meaning.

  • SSP(2.3.83)
currentghost.seriko.cursor.scope(ID).mouse????list.index(ID2).path

The cursor file name (relative path) at the specified position in the mouse cursor definition list.
[SET supported]

  • SSP(2.3.83)
currentghost.seriko.cursor.scope(ID).mouse????list.index(ID2).name

The hit region name at the specified position in the mouse cursor definition list.

  • SSP(2.3.83)
currentghost.seriko.cursor.scope(ID).mouse????list.count

The number of entries in the mouse cursor definition list.

  • SSP(2.3.83)
currentghost.seriko.tooltip.scope(ID).textlist(hit region name).text

The text displayed in the tooltip for the specified hit region name.
When SET to an empty string, the tooltip definition is treated as deleted, preventing the tooltip from being displayed.
[SET supported]

  • SSP(2.3.83)

Example

\![set,property,currentghost.seriko.tooltip.scope(0).textlist(Head).text,頭をなでる]Head当たり判定で表示するツールチップを「頭をなでる」に変更\![set,property,currentghost.seriko.tooltip.scope(0).textlist(Head).text,]空っぽの指定だと定義削除となり表示されなくなる
currentghost.seriko.tooltip.scope(ID).textlist(hit region name).name

The hit region name for the specified hit region name. This entry is for compatibility with index-based specification and has no particular meaning.

  • SSP(2.3.83)
currentghost.seriko.tooltip.scope(ID).textlist.index(ID2).text

The tooltip text at the specified position in the tooltip definition list.
[SET supported]

  • SSP(2.3.83)
currentghost.seriko.tooltip.scope(ID).textlist.index(ID2).name

The hit region name at the specified position in the tooltip definition list.

  • SSP(2.3.83)
currentghost.seriko.tooltip.scope(ID).textlist.count

The number of entries in the tooltip definition list.

  • SSP(2.3.83)
currentghost.seriko.surfacelist.all

A comma-separated list of all surface IDs enabled on the shell.

  • SSP(2.5.98)
currentghost.seriko.surfacelist.defined

A comma-separated list of surface IDs enabled on the shell that have valid definitions in surfaces.txt.

  • SSP(2.5.98)
currentghost.seriko.sticky-window

The current setting of \![set,sticky-window,~].
Scope IDs in a group are comma-separated, and groups are separated by semicolons.
For example, if scopes 0 and 1 are joined together, and scopes 2 and 3 are joined together, the value is 0,1;2,3.
The value is empty if no settings are defined.
[SET supported]

When writing, the current settings are completely replaced using the same format. Note that this differs from Sakura Script tags, which add groups.
Writing an empty string clears all join settings.
Groups with fewer than two elements, and groups containing a scope ID already used in another group, are ignored.

  • SSP2.8.78
currentghost.seriko.zorder

The current state of the \![set,zorder,~] settings.
Elements within a group are separated by commas, and groups are separated by semicolons. Elements are listed from front to back.
In explicit element mode, the value is returned as abbreviations consisting of s (surface) or b (balloon) plus the scope ID, as in s0,b0,s1;s2,b2.
In the conventional mode, which specifies only scope IDs, only numbers are returned, as in 0,1;2,3.
In front and back mode, the front and back parts are separated by a semicolon, as in front,0,1;back,3. If only one is specified, only that part is returned.
If no settings exist, there is no value.
[SET enabled]

When written, a value in the same format completely replaces the current settings. Note that this differs from the Sakura Script tag, which adds groups.
Writing an empty string clears all Z-order settings.
Writing back a value as read restores the original state.
Groups with fewer than two elements are ignored (front and back may have only one). Explicit element mode and conventional mode are mutually exclusive, so the two modes cannot be mixed as in s0,b0;2,3. front and back cannot be mixed with other modes either; if mixed, the later specification takes precedence.

  • SSP2.8.78/2.9.35 (front,back syntax)
currentghost.balloon.scope(ID).count

Number of balloon images in the current balloon.

  • SSP
currentghost.balloon.scope(ID).num

ID of the current balloon.

  • SSP
currentghost.balloon.scope(ID).x

X coordinate of the current balloon.

  • SSP2.8.39
currentghost.balloon.scope(ID).y

Y-coordinate of the current balloon.

  • SSP2.8.39
currentghost.balloon.scope(ID).rect

Rectangular area of the current balloon.

  • SSP2.8.39
currentghost.balloon.scope(ID).validwidth

Width available for drawing text in the current balloon. Indicates the entire drawing area, regardless of basepos.
For vertical writing, this is the width available in the direction the columns are arranged (right to left), and matches the drawing width after scrolling.

  • SSP
currentghost.balloon.scope(ID).validwidth.initial

Width available for drawing text in the current balloon (taking basepos.x, the text starting point, into account).
For vertical writing, this is the width available in the direction the columns are arranged, taking the starting position of the first column (basepos) into account.

  • SSP(2.3.72)
currentghost.balloon.scope(ID).validheight

Height available for drawing text in the current balloon. Indicates the entire drawing area, regardless of basepos. Matches the drawing height after scrolling.
For vertical writing, this is the length of one column (the length of character advance that can be written in one column) and does not change when scrolling.

  • SSP
currentghost.balloon.scope(ID).validheight.initial

Height available for drawing text in the current balloon. Takes basepos.y, the text starting point, into account. Matches the drawing height before scrolling.
For vertical writing, this is the length of one column and takes the starting position for character advance (basepos) into account.

  • SSP(2.3.72)
currentghost.balloon.scope(ID).lines

Maximum number of lines that fit in the current balloon. Indicates the entire drawing area, regardless of basepos. Matches the number of displayed lines after scrolling.
For vertical writing, read “lines” as “columns”; this is the maximum number of columns that fit.

  • SSP
currentghost.balloon.scope(ID).lines.initial

Maximum number of lines that fit in the current balloon. Takes basepos.y, the text starting point, into account. Matches the number of displayed lines before scrolling.
For vertical writing, read “lines” as “columns”; this is the maximum number of columns that fit.

  • SSP(2.3.72)
currentghost.balloon.scope(ID).basepos.x

Starting point for drawing text in the current balloon (X coordinate). This is not necessarily the left edge of the drawing area. Coordinates are relative to the top-left corner of the balloon image.
For vertical writing, this indicates the right edge of the first column (= origin.x).

  • SSP(2.3.72)
currentghost.balloon.scope(ID).basepos.y

Starting point for drawing text in the current balloon (Y coordinate). This is not necessarily the top edge of the drawing area. Coordinates are relative to the top-left corner of the balloon image.
For vertical writing, this indicates the starting position for character advance (the top edge of the first character, = origin.y).

  • SSP(2.3.72)
currentghost.balloon.scope(ID).char_width

Width of a half-width string in the balloon's standard font. For a monospace font, this is half the character height; for a proportional font, it is the average width of the half-width uppercase letters A–Z.

  • SSP
currentghost.balloon.scope(ID).background.color

Gets the balloon's background color as R,G,B values.
The “background color” is either the color used most frequently in the balloon (the representative color) or the average color of the entire balloon. Possible uses include controlling the text color to provide sufficient contrast with this color.
For reference: as of SSP 2.7.81, the implementation uses the “representative color.”

  • SSP2.7.81
currentghost.balloon.scope(ID).scaling

Effective scale of the current balloon. This is the result of multiplying the user setting, tag setting, and SERIKO setting, so it may be a decimal value.

  • SSP2.7.89
currentghost.balloon.scope(ID).vertical

Whether the current balloon uses vertical writing. 1 for vertical writing, 0 for horizontal writing.
validwidth and validheight represent dimensions in the “on-screen orientation” indicated by their names, even with vertical writing: for vertical writing, validwidth is the “width available in the direction the columns advance,” and validheight is the “length of one column.” lines indicates the “number of lines that fit” (or columns for vertical writing) in either orientation.
To calculate how many characters fit in one line (or column), check validheight for vertical writing and validwidth for horizontal writing. Use this property to determine which one to check.
※Specification changed in SSP 2.8.83. In 2.8.80, validwidth and validheight for vertical writing represented dimensions based on the “direction in which characters advance.”

  • SSP2.8.80
currentghost.sound.count

The number of media items managed by the current ghost.
This includes all items opened with \![sound,play], \![sound,loop], \![sound,preload], and similar commands that have not yet been closed. Note that this is not limited to items currently playing.
Use playing to determine whether an individual media item is playing.

  • SSP2.8.72
currentghost.sound.index(ID).sound property name

Gets information from the media item at the specified ID among those managed by the current ghost.
IDs are assigned in order from newest to oldest, starting at 0. An out-of-range ID causes the retrieval to fail.
The sound property name is described below. For writable properties and related notes, see here.

  • SSP2.8.72
currentghost.sound(element name).sound property name

Gets information from the newest media item managed by the current ghost whose element name matches.
The element name is the file name, path, or URL specified in commands such as \![sound,play,~].
Note that the parentheses follow directly without a dot (currentghost.sound(~), not currentghost.sound.(~)).
The sound property name is described below. For writable properties and related notes, see here.

  • SSP2.8.72
balloonlist(balloon name/path).general property name

Retrieves information using the balloon's name or path.
[SSP 2.9.35] The balloon's UUID can also be specified. It is matched when there is no match for the ID, path, or name. If multiple balloons have the same UUID, the first one in the list is used.

  • SSP
balloonlist.index(ID).generic property name

Gets information from the balloon at the specified ID position in the list.

  • SSP
balloonlist.count

Number of installed balloons.

  • SSP
headlinelist(Headline name/path).Generic property name

Retrieve information from a headline by its name or path.

  • SSP
headlinelist.index(ID).Generic property name

Retrieve information from the headline at the specified ID position in the list.

  • SSP
headlinelist.count

Number of installed headlines.

  • SSP
pluginlist(Plugin name/path/ID).Generic property name

Retrieve information about a plugin by its name, path, or ID.

  • SSP
pluginlist.index(ID).Generic property name

Retrieve information from the plugin at the specified ID position in the list.

  • SSP
pluginlist(Plugin name/path/ID).ext.Extension property name

Trigger plugin events (property.get and property.set) to retrieve or set an extension property inside the plugin.

  • SSP2.7.85
pluginlist.index(ID).ext.Extension property name

Trigger plugin events (property.get and property.set) to retrieve or set an extension property inside the plugin.

  • SSP2.7.85
pluginlist.count

Number of installed plugins.

  • SSP
history.ghost(ghost name/path).general property name

Retrieves information using the name or path of a recently used ghost.
[SSP 2.9.35] The ghost's UUID can also be specified.

  • SSP
history.ghost.index(ID).Generic property name

Retrieve information from the ghost at the specified ID position in the recently used list.

  • SSP
history.ghost.count

Number of recently used ghosts.

  • SSP
history.balloon(balloon name/path).general property name

Retrieves information using the name or path of a recently used balloon.
[SSP 2.9.35] The balloon's UUID can also be specified.

  • SSP
history.balloon.index(ID).Generic property name

Retrieve information from the balloon at the specified ID position in the recently used list.

  • SSP
history.balloon.count

Number of recently used balloons.

  • SSP
history.headline(Headline name/path).Generic property name

Retrieve information from a recently used headline by its name or path.

  • SSP
history.headline.index(ID).Generic property name

Retrieve information from the headline at the specified ID position in the recently used list.

  • SSP
history.headline.count

Number of recently used headlines.

  • SSP
history.plugin(plugin name/path/ID).general property name

Retrieves information using the name, path, or ID of a recently used plugin.
[SSP 2.9.35] The plugin's UUID can also be specified.

  • SSP
history.plugin.index(ID).Generic property name

Retrieve information from the plugin at the specified ID position in the recently used list.

  • SSP
history.plugin.count

Number of recently used plugins.

  • SSP
rateofuselist(name).name

The ghost's name.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).sakuraname

The name of the ghost's main character.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).keroname

The name of the ghost's partner character.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).boottime

The number of times the ghost has been started.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).bootminute

The ghost's running time, in minutes.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).boottimeweekly

The number of times the ghost has been started (weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist(name).bootminuteweekly

The ghost's running time, in minutes (weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist(name).boottimemonthly

The number of times the ghost has been started (monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist(name).bootminutemonthly

The ghost's running time, in minutes (monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist(name).percent

The ghost's share of running time (percentage, decimal).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP
rateofuselist(name).percentweekly

The ghost's share of running time (percentage, decimal, weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist(name).percentmonthly

The ghost's share of running time (percentage, decimal, monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.

  • SSP2.8.54
rateofuselist.index(順位).name

Name of the ghost at that usage-rate rank.

  • SSP
rateofuselist.index(順位).sakuraname

Name of the main character of the ghost at that usage-rate rank.

  • SSP
rateofuselist.index(順位).keroname

Name of the partner of the ghost at that usage-rate rank.

  • SSP
rateofuselist.index(順位).boottime

Number of times the ghost at that usage-rate rank was launched.

  • SSP
rateofuselist.index(順位).bootminute

Startup time of the ghost at that usage-rate rank. (In minutes)

  • SSP
rateofuselist.index(順位).boottimeweekly

Number of times the ghost at that usage-rate rank was launched. (Weekly report; total for the 7 days up to and including today)

  • SSP2.8.54
rateofuselist.index(順位).bootminuteweekly

Startup time of the ghost at that usage-rate rank. (In minutes; weekly report; total for the 7 days up to and including today)

  • SSP2.8.54
rateofuselist.index(順位).boottimemonthly

Number of times the ghost at that usage-rate rank was launched. (Monthly report; total for the 30 days up to and including today)

  • SSP2.8.54
rateofuselist.index(順位).bootminutemonthly

Startup time of the ghost at that usage-rate rank. (In minutes; monthly report; total for the 30 days up to and including today)

  • SSP2.8.54
rateofuselist.index(順位).percent

Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal)

  • SSP
rateofuselist.index(順位).percentweekly

Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal; weekly report; total for the 7 days up to and including today)

  • SSP2.8.54
rateofuselist.index(順位).percentmonthly

Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal; monthly report; total for the 30 days up to and including today)

  • SSP2.8.54
developer.log.log type.count

The current number of log entries recorded by SSP. The following strings can be used as log types:

script
Script log (the Script type in the log window).
error
Error log (the Error type).
network
Network log (the Network type).
update
Update log (the Update type).

Each log type has a limit on the number of entries it retains (50 by default); when the limit is exceeded, the oldest entries are removed.
All developer.log.~ properties are read-only and can be retrieved regardless of the developer feature settings.
In error logs, consecutive entries with the same content may be consolidated into one summary entry with type System.

  • SSP
developer.log.log-type.index(ID).log-property-name

Retrieve information from the log entry at the specified ID.
IDs are numbered 0, 1, 2... from newest to oldest. Retrieval fails if the specified ID is out of range.
For log types, see developer.log.ログ種別.count. The following strings can be used as log property names.

type
Log type.
In script, the format is Ghost(...) or SSTP(...), with the applicable attributes listed inside the parentheses, separated by commas (Ghost: External, Embed, SSF, Plugin; SSTP: Local or Remote, TempGhost, Auth; both: NoTranslate). If no attributes apply to Ghost, the parentheses are omitted, leaving only Ghost. If there is additional information, it is appended as ":additional information".
For other log types, the value is one of Info, Notice, Warning, Error, Critical, or System.
name
Name of the log source (such as the ghost name). If there is no source, the value is [SYSTEM].
value
Log message. The entire message is returned, even if it is long.
time
Date and time when the log was recorded. The local time is formatted using the OS's short date format, followed by a space and the time in 24-hour hours:minutes format. The format depends on the OS regional settings.
  • SSP
developer.log.log type(name).count

The number of log entries whose name matches the specified name. Matching is case-insensitive.
Note that the parentheses follow directly without a dot (developer.log.script(~), not developer.log.script.(~)).

  • SSP
developer.log.log type(name).index(ID).log property name

Gets information from the entry at the specified ID among log entries whose name matches the specified name.
IDs are assigned in order from newest to oldest, starting at 0. If .index(ID) is omitted (developer.log.log type(name).log property name), the newest entry is used.
Note that the parentheses follow directly without a dot. The log property names are listed here.

  • SSP

General property names

name

Name of the target.

  • SSP
  • CROW
sakuraname

Name of the target ghost's main character.

  • SSP
  • CROW
keroname

Name of the target ghost's counterpart.

  • SSP
  • CROW
craftmanw

Name of the target's author.

  • SSP
  • CROW
craftmanurl

URL of the target's distribution site.

  • SSP
path

Path of the target.

  • SSP
  • CROW
thumbnail

Thumbnail of the target.

  • SSP
update_result

Update result for the target.

  • SSP
update_time

Update time for the target.

  • SSP
homeurl

The target's homeurl.

  • SSP
metainfo

The value of metainfo in the target's descript.txt (the URL of the metainfo folder). Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt. Retrieving metainfo also fails if only githubrepo is specified.

  • SSP2.9.35
githubrepo

The value of githubrepo in the target's descript.txt (the GitHub project URL). Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt.

  • SSP2.9.35
uuid_base

The value of uuid_base in the target's descript.txt. Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt.

  • SSP2.9.35
uuid

The target's UUID. SSP calculates it from locally available information using the procedure in metainfo-standard. It does not access the network.

  1. Select a uuidvalue.
    • If there is a metainfo folder, use its URL: the value of metainfo in descript.txt, or, if absent, the URL derived from githubrepo (assuming master is the default branch).
    • Otherwise, use homeurl in descript.txt (without URL conversion). Unlike the homeurl property, this does not use values obtained from var.txt or SHIORI. This avoids using the network or another process and ensures that the value does not change over time.
    • If neither is available, use the name (name).
  2. If descript.txt contains uuid_base, append its contents to uuidvalue.
  3. Encode uuidvalue as UTF-8 (without appending a newline), calculate its MD5 hash, and encode the resulting binary as base64.

For example, the UUID generated from https://raw.githubusercontent.com/Taromati2/Taromati2/master/.ukagaka/ is R5dVNluBvKjtQqjP0dAuoA==.

The metainfo folder is not read, so relocations via jump_to.txt and past UUIDs are not reflected.
Retrieval fails if uuidvalue is empty (there is no name either).

This UUID can be specified in parentheses in ghostlist, balloonlist, and activeghostlist instead of the name. It can also be used to specify an SSTP destination (ReceiverGhostUUID, IfGhost).

A UUID can also be specified instead of a name in Sakura Script commands that accept ghost, balloon, shell, or plugin names (\![change,ghost,...], \![call,ghost,...], \![change,shell,...], \![change,balloon,...], \![raiseother,...], \![notifyother,...], \![raiseplugin,...], \![notifyplugin,...], \![timerraiseother,...], \![timernotifyother,...], \![timerraiseplugin,...], \![timernotifyplugin,...]), and in the --ghost startup option. If the value does not match a name or similar identifier, it is checked against UUIDs only if it has the UUID format (22 base64 characters followed by ==).

In the property system, a UUID can also be specified in parentheses in history.ghost, history.balloon, history.plugin, and rateofuselist, in addition to ghostlist, balloonlist, activeghostlist, and pluginlist. History and usage statistics are recorded internally by name or path, not by UUID (the storage format is unchanged). When queried by UUID, the UUID is resolved to an installed ghost or other item before its records are retrieved.

A UUID can also be specified instead of a name in balloon and recommended.balloon in a ghost's descript.txt, and in recommended.ghost in a balloon's descript.txt.

Plugins have both an id in descript.txt (a GUID chosen by the plugin itself, matched as an ID as before) and this uuid. They are distinct, and id is not replaced by uuid.

  • SSP2.9.35
username

The target's username (how it is addressed). This can be retrieved only when the target is running at the same time and supports retrieving its username. SSP 2.3.51 and later.

  • SSP
shiori.variable name

The target ghost's SHIORI.

  • CROW
index

Position of the target within the list.

  • SSP
  • CROW
sakura.bind.menu

(Valid only for currentghost) The visibility state of items in the dressup menu for the target shell's main scope.
Set to hidden to hide items, auto for automatic enumeration mode, or none otherwise.
[SET enabled] The default value is shell-side descript.txt's sakura.menu

  • SSP
kero.bind.menu

(Valid only for currentghost) The visibility state of items in the dressup menu for the target shell's counterpart-side scope.
Set to hidden to hide items, auto for automatic enumeration mode, or none otherwise.
[SET enabled] The default value is shell-side descript.txt's kero*.menu

  • SSP
char*.bind.menu

(Valid only for currentghost) The visibility state of items in the dressup menu for the *-numbered scope of the target shell.
When set to hidden, hidden; in automatic enumeration mode, auto; otherwise, none
[SET enabled]The initial value is char*.menu in the shell's descript.txt.

  • SSP

Sound Property Names

name

The element name of the target media: the file name/path/URL itself specified by \![sound,play,~] and similar tags.

  • SSP2.8.72
path

The resolved full path of the target media. If a URL was specified, this is the URL itself.

  • SSP2.8.72
id

A process-unique identifier assigned to the target media.
Can be used to check whether it still refers to the same media.

  • SSP2.8.72
position

The current playback position of the target media, in milliseconds.
Returns -1 for implementations or formats that cannot retrieve the position.
[SET enabled]Setting this has the same effect as --seektime= in \![sound,option,~].
The value format is also the same as --seektime=: if it does not contain ":", it is interpreted as an integer in milliseconds; if it contains ":", it is interpreted as [[hours:]minutes:]seconds[.milliseconds]. Prefixing the value with @ makes it relative to the current playback position; negative values can also be specified (for example, @-5000 rewinds by 5 seconds).

  • SSP2.8.72
duration

Total length of the target media. In milliseconds.
-1 if the length cannot be retrieved by the implementation or format.

  • SSP2.8.72
playing

1 if the target media is playing, or 0 otherwise.
This remains 1 while paused, so combine it with pause if necessary.
[SET enabled]Setting 1 has the same effect as \![sound,play,~], and setting 0 has the same effect as \![sound,stop,~].
When setting 1 to start playback, the target media's current loop settings and similar options are preserved.

  • SSP2.8.72
pause

1 if the target media is paused, or 0 otherwise.
[SET enabled]Setting 1 has the same effect as \![sound,pause,~], and setting 0 has the same effect as \![sound,resume,~].

  • SSP2.8.72

Writing to Sound Properties [2.8.72]

Of the sound properties, position, playing, and pause support writing via \![set,property,~]. All other sound properties are read-only.

Writes are converted into the same processing as the corresponding Sakura Script tags. Thus, the result is exactly the same as when writing the tags directly; if the specified operation is invalid (for example, writing pause to media that is already stopped), nothing happens, just as with the tags.

Because the converted tags specify the target by element name, if multiple media items have the same element name, even when the target is specified by index(ID), the write is applied to the most recently created media item with a matching element name. Note that the target may differ from the one used for reading.

Also, writes are performed asynchronously, so the result may not yet be reflected if you read the same property immediately after writing to it.

preload

1 if the target media was opened with \![sound,preload], or 0 otherwise.

  • SSP2.8.72
loop

1 if loop playback is specified for the target media (\![sound,loop]); otherwise, 0.

  • SSP2.8.72
error

The most recent error message for the target media. An empty string if there is no error.

  • SSP2.8.72
meta.title

The song name (title) recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.artist

The artist name recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.albumartist

The album artist name recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.album

The album name recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.genre

The genre recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.year

The year (CE) recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.track

The track number recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73
meta.artwork

The file path of the target media's album artwork image.
[2.9.32] SSP reads ID3 images, FLAC PICTURE blocks, and Ogg (Vorbis / Opus) METADATA_BLOCK_PICTURE itself. If there are multiple images, the front cover takes priority; if there is no front cover, the first image is used. Other formats (such as MP4) are retrieved from the OS.
See here for behavior when tags are missing or cannot be retrieved.

  • SSP2.8.73

Metadata for Sound Properties (meta.~) [2.8.73]

Sound properties that begin with meta. retrieve tag information embedded in media files (ID3, Vorbis Comment, MP4 metadata atoms, ASF attributes, etc.). All are read-only.

If tags are missing or cannot be retrieved for any reason, the property itself is treated as nonexistent. Unlike error, which returns an empty string, referencing the property itself fails (the behavior is the same as specifying a nonexistent property name). When handling media that may or may not have tags, write scripts with this in mind.

Naturally, all meta. properties fail to be retrieved for formats that do not have tags.

[2.9.32] SSP reads tags for ID3 (v1 / v2.2 / v2.3 / v2.4) in MP3 and other formats, comments in FLAC・Ogg Vorbis・Opus, and INFO in WAV・AVI (including WAV id3 chunks) itself, without relying on the OS. This allows it to read tags that the OS may misread (such as Shift_JIS and ISO-8859-1 tags interpreted using the OS's default character encoding, ID3v2 tags with unsynchronisation or extended headers, ID3v2.2, and WAV tags). Items SSP cannot read, as well as other formats (such as MP4・WMA), continue to be retrieved from the OS.
For tags with no specified character encoding (ID3v1, ID3v2 ISO-8859-1, and WAV・AVI INFO), SSP tries to determine the encoding in this order: UTF-8 → Shift_JIS → the OS's default character encoding. Since this is an estimate, especially on operating systems that are not Japanese, Western European and Japanese text may be mistaken for one another.
Retrieval is now performed per item: SSP reads the tags first, and only items it cannot read are supplemented by the OS or media playback components. Therefore, even if only some items can be retrieved from a tag, the remaining items may be supplemented by the OS or media playback components (as a result, in some environments, the artist value may be used when the tags have no album artist).