\q[ラベル名,ID]), "]" can be written as "\]".\![raise,OnTest,"100,2"]\![call,ghost,"the ""MobileMaster"""]\e is executed). It is cleared when the next script runsSwitch to the baseware-side scope.
Switch to the other character's scope.
Display the scope with the specified ID number.
In this form, only 0–9 can be used.
\0本体側が喋る。\1相方側が喋る。\p23人めが喋る。\p34人めが喋る。デフォルトのスコープは本体側になっている。
Display the scope with the specified ID number.
\0本体側が喋る。\1相方側が喋る。\p[2]3人めが喋る。\p[3]4人めが喋る。デフォルトのスコープは本体側になっている。
Changes the surface of the current scope to the surface with the specified ID number.
In this form, only 0–9 can be used.
\s1本体側にサーフェス1番を表示。
Change the surface of the current scope to the surface with the specified ID number.
\s[-1] specifies a hidden surface.
A string defined by surface.alias or name in surfaces.txt can be used instead of an ID.
\s[100]本体側にサーフェス100番を表示。
Display the surface animation with the specified ID for the current scope.
A string defined by animation*.name in surfaces.txt can be used instead of the ID.
\s[0]本体側にサーフェス0番を表示。\i[1]サーフェス0番に設定された、アニメーション1番を表示。
Display the surface animation with the specified ID, waiting for it to finish.
A string defined by animation*.name in surfaces.txt can be used instead of the ID.
\1\s[10]相方側にサーフェス10番を表示。\i[2,wait]この文章はサーフェス10番内のアニメーション2番を表示し終わってから表示。
Stop playback of the surface animation with the specified ID.
\s[0]\i[100]長いアニメーションを再生中。\![anim,clear,100]ここで、まだ再生中でも強制終了させる。
Pause the surface animation with the specified ID.
This remains in effect until the surface changes (\s[ID] is executed).
\s[0]\i[200]長いアニメーションを再生中。\![anim,pouse,200]ここで、一時停止。
Resume the animation paused above.
\s[0]\i[200]長いアニメーションを再生中。\![anim,pouse,200]ここで、一時停止。\![anim,resume,200]ここで、再び再生開始。
Offset the position of the surface animation with the specified ID by the specified coordinates.
Dressup items can also be offset.
This remains in effect until the surface changes (\s[ID] is executed).
\s[0]\i[300]長いアニメーションを再生中。\![anim,offset,300,40,50]ここで、アニメーションを右に40pixel下に50pixelずらす。
Overlay the surface with the specified ID on the current surface.
\![anim,add,overlay,ID]\![anim,add,overlayfast,ID]\![anim,add,base,ID]\![anim,add,move,x,y]\![anim,add,overlay,ID,x,y]\![anim,add,overlay,ID,x,y,表示時間,ID,x,y,表示時間,ID,x,y,表示時間...]\![anim,add,overlay,ID,x,y,表示時間,ID,x,y,表示時間,ID,x,y,表示時間,アニメーションタイミング]Stop playback of the surface animation with the specified ID (same as clear).
Display text on the surface.
The string is required.
Wait until the animation with the specified ID finishes.
\1\s[10]相方側をサーフェス10番に変更。\i[400]アニメーション400番とこの文章を同時に表示開始。\__w[animation,400]この文章はアニメーション400番の表示が終わるまで待ってから表示。
Dress or undress dressup parts.
The numeric value is 1 to dress and 0 to undress.
If the part name is empty, the operation applies to the entire category.
If the numeric value is empty or omitted, it toggles ON/OFF as when using the menu.
After the script runs, the SHIORI event OnDressupChanged is notified, followed by the SHIORI event OnNotifyDressupInfo.
\![bind,head,ribbon,1]本体側の着せ替えとして設定された、headカテゴリのribbonを装着。\1\![bind,arm,,0]相方側の着せ替えとして設定された、armカテゴリのパーツを全て解除。
Like \![bind], this operates dressup parts, but does not trigger an event.
Stop repainting until \![unlock,repaint] is called.
This stop is automatically cleared at the end of the script.
However, specifying \![lock,repaint,manual] keeps repainting stopped until explicitly unlocked [2.5.16]
\s[0]\i[500]サーフェス0番のアニメーション500番を再生開始。\![lock,repaint]ここで、アニメーションの描画を停止。
Unlock the above.
\s[0]\i[500]サーフェス0番のアニメーション500番を再生開始。\![lock,repaint]ここで、アニメーションの描画を停止。\![unlock,repaint]ここで、停止中の描画を再開。アニメーションの再生自体は実行されているので、停止中に描画された分は表示されない。
Attaches the current scope's surface to the edge of the desktop in the specified direction. bottom attaches it to the bottom of the desktop, and top to the top.
Takes effect until the ghost ends.
※For SSP, also see alignmenttodesktop.
\![set,alignmentondesktop,bottom]本体側がデスクトップ下部(タスクバーの上)にくっつく。
Allow the surface to move freely.
Effective until the ghost ends.
\![set,alignmenttodesktop,free]本体側がマウスドラッグで位置を自由に移動出来るようになる。
Snap the current scope's surface to the specified side of the desktop. The direction can be specified using one of the following options.
--name=value; available options are --target=--origin=--target-origin=--x=--y=--interval=--xmove--ymove--noclip--area=--side=--margin=--zorder=. All options are optional. See about \![set,alignmenttodesktop,osuwari].When snapped to the top or bottom, dragging in the vertical direction is disabled.
When snapped to the left or right, dragging in the horizontal direction is disabled.
Effective until the ghost ends.
※The above also works when written as alignmentondesktop.
\1\![set,alignmenttodesktop,top]相方側がデスクトップ上部にくっつく。\![set,alignmenttodesktop,default]相方側の吸着が標準設定に戻る。
\0\![set,alignmenttodesktop,osuwari,--target=active,--target-origin=center.top,--xmove,--area=workarea,--side=bottom]前面のウインドウの上端の中央に腰かける(横にだけ動かせる)。座れないときは、ワークエリアの下端に座る。\![set,alignmenttodesktop,default]
\![set,alignmenttodesktop,osuwari,オプション,…] [SSP 2.9.33]
Makes the ghost's window "sit on", "stick to", or "hang from" the corners or edges of other windows. SSP incorporates the same behavior as ukiya's SAORI, "Osuwari.dll", and the options correspond to it. There is no need to write seriko.alignmenttodesktop,free in the shell's descript.txt (specifying osuwari is itself an alignment setting).
At regular intervals, osuwari repeatedly answers the following question.
Where on the screen should the upper-left corner of the ghost's window be placed?
The answer depends on which point of the ghost's window is aligned with which point of which window, and how many pixels it is offset. The elements involved are as follows.
\0, \1, etc.). Its size is the same as the currently displayed surface image, including transparent areas. Its position is expressed by the coordinates of its upper-left corner. When the surface changes and its size changes, the positions of its right edge, bottom edge, and center also change.--area= and --side=.--origin= selects the point on the ghost's window, and --target-origin= selects the point on the target rectangle.--x= and --y= (positive values move right and down).The position is calculated for each of the X and Y axes using the following formula.
ゴーストのウインドウの左上 = 対象の矩形の点 − ゴーストのウインドウの点 + ずれ
--origin= determines the point on the ghost's window, and --target-origin= determines the point on the target rectangle. The rectangle used is the target's rectangle when sitting on the target, or the reference rectangle when the ghost cannot sit on it.
The options correspond to these decisions as follows.
| Decision | Option |
|---|---|
| Which window to sit on | --target= |
| Which point of the ghost's window to align | --origin= |
| Which point of the target rectangle to align with | --target-origin= |
| How far to offset from that position | --x= --y= |
| Where to sit when the ghost cannot sit on the target or would extend off-screen | --area= --side= --margin= --noclip |
| Range of movement by dragging | --xmove --ymove |
| Whether to appear in front of or behind the target | --zorder= |
| How often to follow the target | --interval= |
At each --interval=, the position is determined in the following order. However, it is not recalculated if the target, target rectangle, ghost window rectangle, surface base position, and sitting position have all remained unchanged since the previous check.
--target=).active: The foreground window. If the foreground window is one that the ghost cannot sit on (see below), use the last window it could sit on. If there has been no such window, there is no target.@文字列: A window whose title contains the string and on which the ghost can sit. If there are multiple such windows, use the one nearest the front in Z-order.#数値: The window whose window handle is the number specified in decimal. If the ghost cannot sit on it, there is no target.fix: There is always no target.--area= and --side=).--origin= (the point on the ghost's window) and --target-origin= (the point on the other rectangle) to find the upper-left corner of the ghost's window. Add --x= and --y= to that position.--xmove or --ymove, if the ghost's window has been moved from its previous placement, such as by dragging, constrain that position inside the other rectangle and remember it as a proportion of the movable range. If a proportion has been remembered, use the position at that proportion within the other rectangle instead of the position calculated in step 3 (Range of movement by dragging).--target=fix, --noclip, or when there is no target.--zorder=).The same selections for the two points in step 3 and the same offsets are used when retrying in step 5. Only the rectangle being sat on changes.
Options have the form --名前=値, and all are optional. Omitted options use their defaults, not the values specified in the previous call. Unrecognized options are ignored.
| Option | Default | Description |
|---|---|---|
--target= |
active |
The target to follow. active: foreground window / fix: fixed to the screen (work area) / @文字列: a window whose title contains the string (case-insensitive) / #数値: the window whose handle is the number |
--origin= |
osuwari |
Which point of the ghost's window to align with the target (the origin). Write it in the form 左右.上下 (see "Writing the origin" below). Corners can also be written as two letters, such as tl, tr, bl, or br |
--target-origin= |
Omitted (automatic) | [SSP 2.9.34] Which point of the target rectangle to align with the point of the ghost's window. The format is the same as --origin=, but base and osuwari cannot be used (see "Point on the target rectangle" below). If omitted, the point is on the same side as the --origin= point (left is the left edge, right is the right edge, and center, base, and osuwari are the center) |
--x= --y= |
0 |
Offset from the origin in pixels. In directions specified by --xmove or --ymove, this is the default until the window is moved |
--interval= |
100 |
Interval for checking the position in milliseconds. Values less than 10 are treated as 10 |
--xmove --ymove |
None | Allow dragging in that direction, within the target rectangle. The moved position is remembered as a proportion of the movable range (see "Range of movement by dragging" below). In directions not specified, the window returns to its sitting position even if dragged. These can also be written as, for example, --xmove=false |
--noclip |
None | Disable the clipping check |
--area= |
workarea |
Reference area used when the ghost cannot sit on the target or would be clipped. desktop: entire screen / workarea: work area (the area excluding the taskbar, etc.) |
--side= |
center |
Where to place the "virtual window" relative to the reference area when the ghost cannot sit on the target or would be clipped. center: the reference area itself / top left right bottom: place a virtual window 100 pixels thick on the top, left, right, or bottom side of the reference area |
--margin= |
0_0_0_0 |
Allowance for the clipping check in pixels. Specify in 左_上_右_下 order, separated by spaces or _. With 0_50_0_100, for example, the window is not considered clipped until it extends more than 50 pixels above or 100 pixels below the screen |
--zorder= |
front |
Z-order relative to the target window. front: display immediately above (in front of) the target / back: display immediately behind (directly below) the target. Does nothing while not sitting on a target (when the ghost cannot sit on it or with --target=fix) |
--origin= and --area= in the tag and descript.txt are osuwari and workarea. The built-in SAORI osuwari (compatible with Osuwari.dll) retains tl and desktop to match the original. [SSP 2.9.34] In 2.9.33, the defaults for the tag and descript.txt were also tl and desktop.--target=fix, no target window, or a foreground window that cannot be sat on with no previously usable window), or when it would be clipped (extend off-screen if placed there), it sits on the reference rectangle determined by --area and --side as a "virtual target". No clipping check is performed with --target=fix.--target=active). With --target=active, it also cannot sit on shell windows that are clearly unsuitable, such as the desktop, Alt+Tab and Task View, UWP windows displayed by the shell for Start, Search, IME panels, and similar functions, or full-screen Windows 8 Metro windows. When such a window is in the foreground, the ghost continues to sit on the last usable window. Windows explicitly specified with @文字列 or #数値 are not subject to these exclusions.--zorder=back, the ghost is displayed immediately behind the target window (directly below it in Z-order). This can be used, for example, to make the ghost peek out from behind the target. Even if another application's window comes between them, the ghost returns immediately behind the target at the next position check (at the --interval= interval). If the target is a topmost window, such as the taskbar, the ghost also becomes topmost and is placed directly below the target among the topmost windows. If a ghost configured to "always show in front" sits behind a window that is not topmost, that setting takes priority and the ghost remains topmost (the back setting has no effect).--target=fix to fix the ghost to the screen and use the bottom edge of the work area (for example, --target=fix,--origin=bl,--area=workarea,--side=center; use --origin=br for the right edge). Because the work area excludes the taskbar and similar elements, the ghost sits directly above the taskbar only when it is at the bottom of the screen. When the taskbar is at the top, left, or right of the screen, the ghost sits at the bottom of the screen (the bottom edge of the work area). When the taskbar is set to auto-hide, the work area covers the entire screen, so the ghost sits at the bottom of the screen.top bottom left right free) is specified, the shell is changed, and so on. default restores the ghost's default setting (descript.txt; see below). osuwari stops in window mode and resumes when normal mode is restored.\0 and \1 can each be specified separately. However, the Z-order of ghost windows is shared by the ghost as a whole, so when multiple characters sit, it is determined by the target of the character with the lower number.--origin= aligns a point on the ghost's window with a point on the target rectangle. The format is 左右.上下, where the part before . is the X axis and the part after it is the Y axis. Each part can use the following words (case-insensitive).
| Word | Point on the ghost's window | Point on the target rectangle (when --target-origin= is omitted) |
|---|---|---|
left (for X) / top (for Y) |
Left edge / top edge | Left edge / top edge |
right (for X) / bottom (for Y) |
Right edge / bottom edge | Right edge / bottom edge |
center |
Center | Center |
base |
Base position of the surface (point.basepos.x and point.basepos.y; defaults to the center at the feet) |
Center |
osuwari |
Sitting position of the surface (point.osuwaripos.x and point.osuwaripos.y; defaults to the same as base) |
Center |
base or osuwari is written alone without ., it applies to both the X and Y axes (--origin=osuwari means osuwari.osuwari). Any other word written alone specifies only the X axis, and the Y axis becomes top.tl is equivalent to left.top, tr to right.top, bl to left.bottom, and br to right.bottom.base or osuwari, so its center is used when --target-origin= is omitted. For example, with the default --origin=osuwari, the ghost's sitting position is aligned with the center of the target rectangle. Adjust the sitting position with --x= and --y=, or change the target point with --target-origin=.--origin=center.bottom aligns the ghost's center (X) and bottom edge (Y) with the target's center (X) and bottom edge (Y). --origin=right.osuwari aligns the ghost's right edge (X) and point.osuwaripos.y (Y) with the target's right edge (X) and center (Y).--target-origin= determines the point on the target rectangle with which the point on the ghost's window is aligned. The format is the same as --origin= (左右.上下, tl tr bl br, or one word), but only left right top bottom center can be used. The target rectangle has no base or osuwari, so specifying either is treated as an unrecognized format and ignored.
--origin= point. left and top mean the left and top edges, right and bottom mean the right and bottom edges, and center, base, and osuwari mean the center (the right column of the table above).top. --target-origin=center means center.top (the center of the target's top edge).--origin=osuwari --target-origin=center.top aligns the surface's sitting position with the center of the target's top edge. --origin=center.bottom --target-origin=center.top aligns the ghost's center (X) and bottom edge (Y) with the target's center (X) and top edge (Y). The ghost's feet rest on the target's top edge regardless of the ghost's height.osuwari (compatible with Osuwari.dll) has no equivalent argument. As before, it aligns a corner of the ghost with the same corner of the target.The sitting position can be specified with point.osuwaripos.x and point.osuwaripos.y in a surface brace in the shell's surfaces.txt (point.osuwaripos.x and point.osuwaripos.y). This is the point used by osuwari in --origin=; if omitted, it is the same as point.basepos.x and point.basepos.y (or their defaults if they are not specified).
For example, to place the sitting position at the waist of a surface with a width of 200 and a height of 300, write the following.
surface0
{
point.osuwaripos.x,100
point.osuwaripos.y,250
}
This position is measured in pixels from the top-left corner of the surface and scales with the surface. It is a separate point from the base position at the feet (point.basepos, or the center of the bottom edge (100,300) if omitted): --origin=base uses the base position, while --origin=osuwari uses the sitting position.
The following example shows the surface above sitting on a window with its top-left corner at (400,400) and bottom-right corner at (1000,900). --origin=osuwari --target-origin=center.top aligns the ghost's sitting position with the center of the target's top edge.
The sitting position (100,250) is aligned with the center of the target's top edge (700,400), so the ghost's top-left corner is at (700−100,400−250)=(600,150). The base position at the feet (by default, the center of the bottom edge) is at (700,450), 50 pixels below the sitting position and inside the window's top edge. The ghost is displayed in front of the target, so it appears to be sitting on the window's edge.
point.osuwaripos is specified for each surface, the ghost adjusts its sitting position when the surface changes so that the sitting position remains on the edge.--target-origin= is omitted, the sitting position is aligned with the center of the target. To make the ghost sit on the edge, specify the target point, for example with --target-origin=center.top.--origin=center.bottom --target-origin=center.top aligns the center of the ghost's bottom edge with the center of the target's top edge (so its feet rest on it).--target-origin= is omitted, the target point is always on the same side as the ghost's point, so the bottom edge cannot be aligned with the top edge. In that case, align the top edges and apply an offset, as in --origin=tr --y=-300. This offset is based on the ghost's height, so the feet will shift if the height changes.When the ghost cannot sit on the target or would go off-screen by sitting on it, it sits on a reference rectangle instead. The reference rectangle is constructed in the following order.
--area= to select either the entire monitor containing the target (desktop) or its work area (workarea). If there is no target, use the monitor containing the ghost's window (or the monitor containing the cursor while dragging).--side= to select either the rectangle from step 1 as is (center) or a virtual window placed outside it (top left right bottom). The virtual window is as long as the reference edge and 100 pixels thick.When bottom is selected, the top edge of the virtual window overlaps the bottom edge of the reference rectangle. Combined with --origin=osuwari --target-origin=center.top, this places the sitting position at the center of the reference rectangle's bottom edge (on the top edge of the taskbar for the work area). With --origin=center.bottom --target-origin=center.top, the ghost's bottom edge rests there, placing its feet at the reference rectangle's bottom edge.
When sitting on the reference rectangle, --origin=, --target-origin=, --x=, and --y= are used in the same way as when sitting on a target.
Note
If --origin=osuwari --target-origin=center.top is used with --side=center (the default), falling back to the reference rectangle places the ghost at the center of its top edge (the top edge of the entire work area). The sitting position (100,250) overlaps (960,0), so the ghost's top-left corner is at (860,-250), leaving most of it off-screen. No clipping check is performed after falling back to the reference rectangle, so the ghost is not pulled back. To make it sit at the bottom edge of the screen, combine this with --side=bottom.
The clipping check determines whether the entire ghost window, including transparent areas, fits within the rectangle enclosing all monitors.
--margin= specifies how much to expand that rectangle outward. With --margin=0_0_100_0, the ghost is not considered clipped until it extends more than 100 pixels to the right. Use this when transparent surface padding alone would otherwise be considered clipped outside the screen.--noclip disables the clipping check entirely. Depending on the target's position, the ghost may remain off-screen.--target=fix or when there is no target (the ghost is already sitting on the reference rectangle).By default, dragging the ghost's window does not move it from its sitting position. --xmove permits horizontal dragging, and --ymove permits vertical dragging. Movement in an unspecified direction returns to the sitting position.
Movement is limited to the inside of the rectangle the ghost sits on.
--xmove: The ghost window's left edge must be at or to the right of the rectangle's left edge, and its right edge must be at or to the left of the rectangle's right edge.--ymove: The ghost window's top edge must be at or below the rectangle's top edge, and its bottom edge must be at or above the rectangle's bottom edge.The rectangle the ghost sits on is the target when sitting on the target, or the reference rectangle, including any virtual window, otherwise (with --target=fix or after falling back to the reference rectangle). For example, --target=fix --origin=bl --xmove makes the ghost stand on the bottom edge of the work area and allows only horizontal movement.
The moved position is remembered separately for each direction as a ratio within the movement range. A ratio of 0 places the ghost window's left edge (top edge) at the rectangle's left edge (top edge); a ratio of 1 places its right edge (bottom edge) at the rectangle's right edge (bottom edge).
--origin=, --target-origin=, --x=, and --y=. These define the default sitting position.--origin= and similar options are not used. The ghost sits at the same relative position even if the rectangle or the ghost window changes size. The same applies when the target or surface changes.\![move]. It is not updated merely because the target moves or changes size.osuwari again clears the remembered ratios and restores the defaults.osuwari again.For example, suppose the target's top-left corner is (300,400) and its bottom-right corner is (1100,1000), the ghost window is 200 wide and 300 high, and --origin=tl --xmove is specified. The initial top-left corner is (300,400).
While sitting, the ghost window maintains its Z-order relative to the target. Use --zorder= to select whether it appears in front of or immediately behind the target. This does not affect position calculations.
front: Moves the ghost immediately above the target only if it is below the target. If it is already above the target, it is not moved, even if another window is between them. This prevents ghosts sitting on the same window from competing for Z-order.back: Keeps the ghost immediately behind (directly below) the target. If a visible window from another application comes between them, the ghost is returned directly below the target at the next position check (at the interval specified by --interval=).For topmost targets such as the taskbar and ghosts set to "Always on top", see the notes under "Options".
The following examples show where the upper-left corner of the ghost's window is placed under these conditions.
surfaces.txt as point.osuwaripos.x,100 and point.osuwaripos.y,250.Results for specifications that omit --origin= and --area= use the defaults in SSP 2.9.34 and later (osuwari and workarea). The defaults in 2.9.33 are tl and desktop, so the results differ.
| Specification | Upper left | Description |
|---|---|---|
--origin=osuwari (default) |
(600,400) | The sitting position (100,250) coincides with the center of the target (700,650). |
--origin=osuwari --target-origin=center.top |
(600,150) | The sitting position coincides with the center of the target's top edge (700,400). The ghost sits on the window edge (illustrated above). |
--origin=tr --x=-20 --y=-300 |
(780,100) | Aligns the upper right with the target's upper right, then moves 20 left and 300 up. The bottom edge (400) coincides with the target's top edge, so the ghost stands on the top edge of the window. |
--origin=bl |
(400,600) | Aligns the lower left with the target's lower left. The bottom edge (900) coincides with the target's bottom edge. |
--origin=center.bottom --target-origin=center.top |
(600,100) | Aligns the center of the ghost's bottom edge with the center of the target's top edge (700,400). The ghost stands on the window's top edge regardless of its height. |
--target=fix --origin=osuwari --target-origin=center.top --side=bottom |
(860,790) | Aligns the sitting position with the center of the top edge (960,1040) of the virtual window below the work area. The ghost sits on the work area's bottom edge. |
--target=fix --origin=center.bottom --target-origin=center.top --side=bottom |
(860,740) | Aligns the center of the ghost's bottom edge with the same point. The ghost stands on the work area's bottom edge. |
The specification in the third row, with a maximized target (upper left (0,0), lower right (1920,1040)). Add --side=bottom. |
(1700,740) | The top edge would be off-screen (-300), so it is clipped. The ghost falls back to the virtual window below the work area and sits using the same --origin=, --x=, and --y=. Its bottom edge is at 1040 (the bottom edge of the work area). |
Remove --side=bottom from the row above |
(1700,-300) | The ghost falls back to the work area itself. Clipping is not checked, so the ghost sits off-screen. |
--target=fix --origin=bl |
(0,740) | The ghost stands at the lower left of the work area. With --origin=br, the result is (1720,740). |
--target=fix |
(860,270) | The sitting position coincides with the center of the work area (960,520). |
Target is (1500,400)-(2000,900). --origin=tr --y=-300 --side=bottom |
(1720,740) | The right edge at 2000 exceeds the screen's right edge at 1920, so it is clipped. The ghost falls back to the virtual window below the work area. |
Add --margin=0_0_100_0 or --noclip to the row above |
(1800,100) | The ghost remains seated on the target because an overhang of 100 pixels to the right is allowed (or clipping is not checked). |
You can also specify osuwari as the value of seriko.alignmenttodesktop in the ghost's or shell's descript.txt (including the versions prefixed with sakura., kero., or char*.). After the value, list the same -- options as the tag, separated by commas (※ Display position information).
sakura.seriko.alignmenttodesktop,osuwari,--target=active,--target-origin=center.top,--xmove,--area=workarea,--side=bottom
\![set,alignmenttodesktop,default] and STOP in the built-in SAORI osuwari restore the descript.txt settings. If descript.txt specifies osuwari, the ghost sits down again using osuwari.The built-in SAORI osuwari (compatible with Osuwari.dll) performs the same operation. However, to match the original, the SAORI's START retains the previous values when the seventh and subsequent arguments are omitted (compatibility module).
\0\![set,alignmenttodesktop,osuwari,--target=active,--target-origin=center.top,--xmove,--area=workarea,--side=bottom]前面のウインドウの上端の中央に腰かける(横にだけ動かせる)。座れないときは、ワークエリアの下端に座る。\![set,alignmenttodesktop,default]
\0\![set,alignmenttodesktop,osuwari,--target=active,--origin=tr,--x=-20,--y=-90,--xmove,--area=workarea,--side=bottom]前面のウインドウの右上に座る(横にだけ動かせる)。座れないときはワークエリアの下端に座る。\![set,alignmenttodesktop,default]
\0\![set,alignmenttodesktop,osuwari,--target=fix,--origin=br,--area=workarea,--side=center]ウインドウには追従せず、タスクバーの直上の右端に座る。\![set,alignmenttodesktop,default]
\0\![set,alignmenttodesktop,osuwari,--target=active,--target-origin=center.top,--area=workarea,--side=bottom,--zorder=back]前面のウインドウの上端の中央に、そのウインドウのすぐ奥から腰かける。上半身が窓の上にのぞく。\![set,alignmenttodesktop,default]
\0\![set,alignmenttodesktop,osuwari,--target=active,--origin=center.bottom,--target-origin=center.top,--area=workarea,--side=bottom]前面のウインドウの上端の中央に、足元を乗せて立つ。ウインドウが上に寄っていて座れないときは、ワークエリアの下端に立つ。\![set,alignmenttodesktop,default]
Change the surface's scale factor.
Change the surface's scale factor. The unit is %.
The scale factor is relative to the user-configured scale, which is treated as 100%.
Negative values are allowed; -100 flips the surface along the corresponding axis.
Effective until the ghost ends.
\![set,scaling,50]本体側のサーフェスの大きさが、50%になる。
Set the surface's horizontal and vertical scale factors separately. The unit is %.
The scale factor is relative to the user-configured scale, which is treated as 100%.
Negative values are allowed; -100 flips the surface along the corresponding axis.
Effective until the ghost ends.
\![set,scaling,50,100]本体側のサーフェスの大きさが、横50%縦100%になる。
Precisely set the surface's scale factors. The unit is %.
Options allow you to specify an animation duration and wait for it to complete.
\![set,scaling,200,200,--time=2000]2秒かけて200%へ変化する(非同期)。
\![set,scaling,200,200,--time=3000,--wait]3秒かけて200%へ変化する(完了まで待機)。
\![set,scaling,100,100,--time=1000,--wait]1秒かけて等倍に戻す(完了まで待機)。
Set the transparency of the current scope's surface to a value from 0 to 100. 0 is fully transparent, and 100 is opaque. Values above 100 are clamped to 100. Negative values redraw the surface without changing its value.
Options allow you to specify an animation duration and wait for it to complete.
Effective until the ghost ends.
\0\![set,alpha,0]本体側が透明になり見えなくなる。\1\![set,alpha,50]相方側がだいたい半透明になる。
\![set,alpha,50,--time=1000]1秒かけて透過度50へ変化する(非同期)。
\![set,alpha,50,--time=2000,--wait]2秒かけて透過度50へ変化する(完了まで待機)。
\![set,alpha,100,--time=1000,--wait]1秒かけて不透明に戻す(完了まで待機)。
Change the surface using a plugin.
Change the added surface using a plugin.
Change the surface using a plugin each time it changes.
Disable the above.
The character in the current scope moves a fixed distance away from the character on the main or partner side.
移動を実行。\4この文章は、本体側が別スコープと一定距離離れてから表示される。
The character in the current scope moves until it is close enough to touch.
If no movement is needed, it does not move.
\1相方側にスコープを設定。\5この文章は相方側が別スコープと隣り合う位置まで移動してから表示される。
Move to the specified coordinates. ※See below
\![move,--X=80,--Y=-400,--time=2500,--base=screen,--base-offset=left.bottom,--move-offset=left.top]本体側が、画面の左下(screen,left.bottom)から数えて、右方向に80pixel上方向に400pixelの座標に、サーフェスの左上ピクセルを合わせた位置(left.top)へ、2.5秒かけて移動する。
Move asynchronously to the specified coordinates. ※See below
\![moveasync] can be stopped while in progress with \![moveasync,cancel].
\1\![moveasync,--X=-175,--Y=200,--time=5000,--base=screen,--base-offset=right.top,--move-offset=right.bottom]相方側が、現在表示されているモニタの右上(screen,right.top)から数えて、左方向に175pixel下方向に400pixelの座標に、サーフェスの右下ピクセルを合わせた位置(right.bottom)へ、5秒で移動しようとする。
\1\![moveasync,--X=-175,--Y=200,--time=5000,--base=screen,--base-offset=right.top,--move-offset=right.bottom]相方側が移動開始。\![moveasync,cancel]ここで移動キャンセル。移動中に、別のイベントが発生しその中でキャンセルのさくらスクリプトが実行された場合も、移動をキャンセルできる。ダブルクリックすると移動を中断する、という演出などに使える。
New syntax: (SSP 2.3.85 and later)
\![move(async),--X=X座標,--Y=Y座標,--time=移動時間,--base=移動基準,--base-offset=基準とするキャラ基準位置,--move-offset=動かすキャラ基準位置,--option=オプション]
All parameters are optional. Their order can also be changed. The specified names are case-insensitive (for example, you can write --x=10)
Old syntax:
\![move(async),X座標,Y座標,移動時間,移動基準,基準とするキャラ基準位置,動かすキャラ基準位置]
Parameters from the move time onward are optional.
X coordinate and Y coordinate specify the destination coordinates.
Negative values can also be specified.
If either coordinate is omitted or set to "fix", that coordinate is kept.
Default: "fix"
Move time is in milliseconds.
If move time is omitted or set to 0, the character moves instantly.
Default: 0
Reference position is the character or other reference point for the movement (the origin of the relative coordinates).
Specify it as follows.
Default: screen
\0, \1, \p[2], etc.)\0 name)Reference character anchor position specifies which point to use as the origin when a character or screen is specified as the movement reference.
Specify it in the form X anchor.Y anchor, combining one of the following four values for each:
X anchor: left,right,base,center
Y anchor: top,bottom,base,center
For example, write right.base.
base follows the point.basepos setting in surfaces.txt.
Default: left.top
For screen, base cannot be used; for global, right,bottom,center cannot be used.
Moving character anchor position is specified in the same way as the reference character anchor position.
Options can be specified multiple times. Specify them as follows. Only the new syntax supports options.
\![set,sticky-window]Fix the specified scope at the XY coordinates. (Dragging and other movement become impossible.)
Disable the above.
Places the windows of the specified scopes in order from left to right, from front to back.
Example: \![set,zorder,1,0] always displays \1 in front of the \0 window.
To control the Z-order of balloons as well, follow the examples below.
Example: \![set,zorder,balloon1,surface1,balloon0,surface0]
Example (abbreviated syntax): ![set,zorder,b1,s1,b0,s0]
This strictly controls the order as follows: \1 balloon - \1 character image - \0 balloon - \0 character image.
Executing multiple tags with different scope IDs creates multiple groups.
Example: Executing \![set,zorder,1,0] and \![set,zorder,3,2] displays \1 in front of \0 and \p[3] in front of \p[2].
The same applies to the syntax that includes balloons.
There is no limit on the number of scope IDs that can be specified, but specifying many can be somewhat resource-intensive, so about 2–3 are recommended.
Executing a tag that includes a scope ID already paired with another causes an error. To change the combination, use the \![reset] tag and try again.
To place only specific characters at the very front or back, prefix their scope IDs with front or back. This avoids having to list every character in a ghost with many characters.
Example: \![set,zorder,front,0] displays \0 in front of all other characters.
Example: \![set,zorder,back,3] displays \p[3] behind all other characters.
When multiple scope IDs are specified, they are arranged from front to back in the order written. front and back can be written consecutively.
Example: \![set,zorder,front,1,0,back,3,2] arranges them from front to back as \1, \0, (all other characters), \p[3], \p[2].
When front or back is specified, the other characters are arranged with lower scope IDs closer to the front.
front and back can each be executed multiple times. Each execution appends its IDs to the end of the respective list. Specifying an already specified scope ID again moves it to the new position. An ID cannot be specified in both the front and back lists; the later specification takes precedence.
As with the syntax that lists only scope IDs, balloons are placed in front of the foremost character.
front and back cannot be combined with the scope-ID-only syntax or the s,b syntax. The syntax used by the later execution takes precedence, and the previous specification is discarded.
Effective until the ghost exits.
\![set,zorder,1,0]相方側が、必ず本体側の手前に表示される。
Clear the above setting and reset it to the value previously specified in descript.
\![reset,zorder]ウインドウの表示を解除する。ユーザが最後に操作したものが最も手前に表示される。
Make the windows for the specified scopes move together while being dragged or while a move tag is running.
For example, specifying 1,0 makes the \0 (kero) and \1 (sakura) windows move together when dragged or moved by other means.
You can create multiple groups by running the tag multiple times with different scope IDs.
Example: Running \![set,sticky-window,1,0] and \![set,sticky-window,3,2] groups \1 with \0, and \p[3] with \p[2].
There is no limit to the number of scope IDs you can specify, but specifying a lot of them will significantly affect performance, so 2–3 is recommended.
Running a tag that includes scope IDs already in a pair causes an error. To change the combinations, use the \![reset] tag before trying again.
If window position is constrained by \![set,alignmenttodesktop] or a similar tag, that constraint takes precedence, and only the freely movable axis of X and Y follows.
Moving one of the grouped windows with the \![move] tag also moves the other windows in the group.
However, the --option=ignore-sticky-window option of the move tag allows a window to move independently.
Effective until the ghost ends.
\![set,sticky-window,1,0]相方側が、本体側とセットで動く。
\![set,sticky-window,0,1,2]本体側と相方側と3人目がセットで動く。
\1\![move,40,100,0,0,left.top,left.top]相方側の左上を、本体側の左上に合わせた後、右へ40pixel下へ100pixel移動させる。\![set,sticky-window,1,0]その状態で、相方側と本体側をセットで動くようにする。
Clear the above setting and reset it to the value previously specified in descript.
\![reset,sticky-window]セットで動く設定を解除する。これ以降、ドラッグ移動時など個別に移動するようになる。
Return each window to its initial position. This works like “Reset shell position” in the menu.
Change the balloon for the current scope to the balloon with the specified ID number.
Only 0–9 can be used in this form.
Odd numbers are reserved for balloons displayed to the right of the character, so only 0 or even IDs can be used.
\b2本体側のトークをバルーン2番に表示する。バルーンによって実装状況は異なり、バルーン2番が存在しない場合もある。SSP同梱バルーン「SSPデフォルト+」では、本体側バルーン2番は表示文字数の多い大きなバルーンとなるが、サイズの決まりはないため、これを使う際は推奨バルーンを指定する・専用バルーンを同梱するなどが必要。
Change the balloon for the current scope to the balloon with the specified ID number.
Odd numbers are reserved for balloons displayed to the right of the character, so only 0 or even IDs can be used.
\b[-1] hides the balloon.
As of SSP 2.6.34, writing \b[ID1,--fallback=ID2,--fallback=ID3] makes the balloon use ID2 if ID1 does not exist, and ID3 if ID2 does not exist.
\b[2]本体側のトークをバルーン2番に表示する。バルーンによって実装状況は異なり、バルーン2番が存在しない場合もある。SSP同梱バルーン「SSPデフォルト+」では、本体側バルーン2番は表示文字数の多い大きなバルーンとなるが、サイズの決まりはないため、これを使う際は推奨バルーンを指定する・専用バルーンを同梱するなどが必要。
Paste an image at the balloon's XY coordinates. The image is displayed underneath the text.
The color of the top-left pixel becomes transparent.
The base folder is [folder of the ghost that executed this]/ghost/master.
※Only SSP allows base64-encoded data or an exe/dll resource to be specified as the image instead of a filename; see below.
※Only SSP allows an image URL to be specified.
※Only SSP also searches for files in the plugin folder.
\_b[image\test.png,50,100]本体側バルーンに、[実行したゴーストのフォルダ]/ghost/master/imageフォルダにあるtest.pngを左上のpixelを透過色として、バルーン内座標X:50,Y:100に表示する。
Paste an image at the balloon's XY coordinates. The image is displayed underneath the text.
Display the image without making the color of the top-left pixel transparent.
The base folder is [folder of the ghost that executed this]/ghost/master.
※Base64-encoded data or an exe/dll resource can be specified as the image instead of a filename; see below.
\_b[..\..\shell\master\surface0.png,0,15,opaque]本体側バルーンに、[実行したゴーストのフォルダ]/shell\masterフォルダにあるsurface0.pngを、バルーン内座標X:0,Y:15に、透過せずに表示する。
Embeds an image at the specified XY coordinates in the balloon.
[The running ghost's folder]/ghost/master is the base folder.
※A base64-encoded string or a resource in an exe/dll can be specified as an image instead of a file name; see below.
For available options, see below.
\_b[test.png,10,20,--option=use_self_alpha,--clipping=100 30 150 90,--option=foreground]本体側バルーンに、[実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.pngを、バルーン内座標X:10,Y:20に、ファイルの透過情報付きpngとして、画像の横100~150pixel縦30~90pixelの範囲を、バルーンの文字の上に表示する。
Embeds an image within a line of balloon text, treating it as one character.
[The running ghost's folder]/ghost/master is the base folder.
※A base64-encoded string or a resource in an exe/dll can be specified as an image instead of a file name; see below.
本体側バルーンに、[実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.png\_b[test.png,inline]を、現在のバルーン内の文字表示位置に、左上のドットを透過色として、表示する。
Embeds an image within a line of balloon text, treating it as one character.
Displays it without making the top-left color transparent.
[The running ghost's folder]/ghost/master is the base folder.
※A base64-encoded string or a resource in an exe/dll can be specified as an image instead of a file name; see below.
本体側バルーンに、\_b["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAIAAACpTQvdAAAAl0lEQVR42oVSCQ7AIAiDl6MvZyCMQ122JQSh5agiM0P/JmL4dGQxCIEjruSd6QRBE7D86nRCibMTTvScQPTazsEBfgaECUoQHAyfzXytLbMtTutQOdZhQ2uHc4dNlssOTrBWr40q2tNsXTq186myikUCsJYuU1bV81g2TJUs7bm8WC8fmKtKXC4O/1XaCVeVYmL6eIsRfwDNfLdu1l4zPAAAAABJRU5ErkJggg==",inline,opaque]文字と同じ扱いとして、base64エンコード(文字列化)した画像データを、透過せずに表示する。
Embeds an image within a line of balloon text, treating it as one character.
[The running ghost's folder]/ghost/master is the base folder.
※A base64-encoded string or a resource in an exe/dll can be specified as an image instead of a file name; see below.
For available options, see below.
本体側バルーンに、[実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.png\_b[test.png,inline,--option=use_self_alpha,--clipping=100 30 150 90]を、文字扱い、ファイルの透過情報付きpngとして、画像の横100~150pixel縦30~90pixelの範囲を表示する。
Inserts a line break in the balloon text.
文章が\n改行されて表示される。
Inserts a line break at half the normal height.
文章が\n[half]半行改行されて表示される。\n\n[half]1行半の改行をすることで段落のような表現が出来る。
Inserts a line break of the specified percentage of the normal line height. A negative value moves back. ※Since SSP 2.3.97.
文章が\n[150]1行半改行されて表示される。
文章が\n[-250]2行半分戻る。
Automatic line breaks are suppressed until the next \_n.
\_nここに書かれた文章は改行されない。バルーンの表示領域を超えた場合は、表示されない。\_n
Clears the text in the balloon on the current scope.
\1相方側に文章表示。\0本体側に文章表示。現スコープのバルーン内の表示を全て消す。\cその後、左上(初期位置)から表示する。
Clears the specified number of characters from the cursor position on the current scope. The characters to be cleared are determined by their order of appearance in the script, regardless of their position in the balloon. An image pasted using \_b[ファイルパス,inline] is treated as one character and is cleared.
トークを3文字削除\c[char,3]削除終了。
Clears the specified number of characters on the current scope, starting at the specified position. The start position is zero-based (0 for the first character, 1 for the second). The criteria for which characters are cleared are the same as for \c[char,数値].
トークの5文字目から、3文字削除\c[char,3,4]削除終了。
Clears the specified number of lines on the current scope, starting from the cursor position in the balloon.
Text divided by \_l[x,y], \n, \n[half], or \n[パーセント] is treated as “lines.” However, divisions that contain no text, such as \n\n or divisions made by anything other than \_l[x,y], are not treated as lines.
As with \c[char,数値], the order of appearance in the script is used.
トークを1行削除。\nこの行が削除される。\c[line,1]削除終了。\nこの行は削除される。\n\n\n\n\n\c[line,1]削除終了。\nこの行は削除されない。\_l[0,0]\c[line,1]削除終了。
Clears the specified number of lines on the current scope, starting at the specified position (line number). The start position is zero-based (0 for the first line, 1 for the second). The criteria for which lines are cleared are the same as for \c[line,数値].
トークを3行目から、\n1行削除。\nこの部分が\_l[,]削除される。\c[line,1,2]削除終了。
Move the cursor for the current scope to the specified XY coordinates. X and Y can be specified as follows.
Note that immediately after \_l is executed, alignment is reset to left alignment to prevent problems. Specify it again as needed.
Even in a vertical-writing balloon, the coordinate axes are those of the balloon image: positive X is to the right, and positive Y is downward.
However, the text drawing origin is at the top right of the text drawing area, and columns advance from there to the left, so a negative X value is needed to move to the next column. Y follows the text progression direction (top to bottom), so it can be used just as in horizontal writing.
For example, \_l[@-1lh,0] means “go to the start of the column one column to the left” (equivalent to \_l[0,@1lh] in horizontal writing), and \_l[,@1em] means “advance the text by one character.”
\_l[30,5em]「座標X=30pixel、座標Y=5文字分高さ」に表示。\_l[@-1650%,100]「座標X=最後の文字から文字高さ1650%分左、座標Y=100pixel」に表示。\_l[,@-100]「座標X=変更なし、座標Y=最後の文字から100pixel上」に表示。
When written at the beginning, appends text to the balloon displayed immediately before it. The scope returns to 0 (\0).
\Cこの文章は前回のトークの後ろに追記される。スコープも前回の最後の状態が反映されるので注意。
Stop automatic scrolling of the balloon. Manual scrolling is still possible.
\![set,autoscroll,disable]スクロールロック。\n[5000]ロック中はこの文字は見えない。
Disable the mode described above.
\![set,autoscroll,disable]スクロールロック。\n[5000]ロック中はこの文字は見えない。\![set,autoscroll,enable]スクロール解除。
Changes the balloon offset to the specified XY coordinates. The coordinates set by the user by dragging the balloon are added to this value to determine the balloon's display position.
Normally, specifying a number overrides the default offset value in descript.txt. Prefixing the number with @ instead specifies coordinates relative to the offset values in descript.txt or surfaces.txt.
\![set,balloonoffset,100,-50]バルーン位置の基準点をX:100,Y:-50に移動。
\![set,balloonoffset,@100,@-50]バルーン位置の基準点をdescript.txtやsurfaces.txtの指定プラスX:100,Y:-50(相対座標)に移動。
Switch the balloon to the display direction specified by the ID below. The ID can be specified as follows.
The values of balloon.offsetx and balloon.offsety in the shell's descript.txt and balloon.offsetx and balloon.offsety in surfaces.txt are applied relative to the positions below. The initial value is none.
This remains in effect until the ghost exits.
Different offset values can also be used for each direction. For left/right, offsetxl/offsetxr take precedence; for center and top, offsetxc takes precedence; for bottom, offsetxb takes precedence (or offsetxc if offsetxb is not set). See sakura.balloon.offsetx for details.
\0\![set,balloonalign,top]本体側バルーンを、シェルの頭上に表示。\1\![set,balloonalign,right]相方側バルーンを、シェルの右側に表示。
Displays the marker string shown when receiving SSTP.
The display target is the balloon belonging to the current scope.
The display string is optional. To clear it, omit the argument or leave it empty.
It remains in effect until the ghost terminates or a feature that normally uses this area, such as receiving SSTP, is triggered.
Clearing means “cancel the string specified by this tag”; it does not hide the marker itself. If cleared while playing a script received via SSTP, the display reverts to the default sender display (from sender).
Also, if a marker string is specified in the Marker header of SSTP or SHIORI, that value takes precedence and the value specified by this tag is not displayed.
To omit the marker when outputting an image, use --hide=balloonmarker with \![execute,dumpballoon].
Displays the data format shown when receiving a file.
The display target is the balloon belonging to the current scope.
All arguments are optional. To clear the display, omit all arguments or leave them empty.
Since 2.6.67, this can also be displayed in the \1-side balloon and beyond.
It remains in effect until the ghost terminates or a feature that normally uses this area, such as a network update, is triggered.
\![set,balloonnum,テスト表示,1,5]ファイル受信時の表示テスト。\![set,balloonnum,,,]表示内容削除。
Specifies the timeout for displaying the balloon. The unit is milliseconds.
The timeout is counted from when the script finishes displaying. A value of 0 or less disables the timeout.
This setting is effective only during the current script.
Omitting the time: Reverts to the default value
Time specified as 0 or -1: No timeout
\![set,balloontimeout,3000]このトークは、喋り終わってから3秒でバルーンが閉じる。
Specifies the multiplier for the speed at which text flows in the balloon (the wait per character).
Number only: 0–100 can be specified. 1 is normal speed. Decimal values are allowed. Example: specifying 1.5 makes it 50% slower.
With a trailing %: 0–10000 can be specified. 100 is normal speed. Integers of 0 or greater only.
With a trailing ms: 0–10000 can be specified. Specifies the wait time per character as an absolute value in milliseconds.
Omitting the value or specifying 1: Reverts to the default value
Specifying 0: Always displays immediately
After the script finishes running, the setting resets to the equivalent of 100%.
Temporarily disables or enables SERIKO lip-sync animation (talk setting).
After the script finishes running, the setting resets to true.
Displays a marker. The marker is set by the balloon.
\![*]マーカーをつける。
Force the online marker to be displayed. The main-character balloon is displayed even if the other character has content to display and the main-character balloon does not.
This remains in effect until the ghost exits.
\0\![enter,onlinemode]本体側のバルーンにオンラインマーカーが表示される。
Force the online marker to be hidden.
\0\![enter,onlinemode]この文章の表示中は、本体側のバルーンにオンラインマーカーが表示される。\![leave,onlinemode]ここで消える。
Start a mode that disables interruption of script execution (the operation depends on SSP settings; normally, double-clicking the balloon).
Cannot be used with ordinary SSTP (Auth.SSTP (= Owned SSTP) is supported).
\![enter,nouserbreakmode]この文章中は、スクリプトブレークできない。
Disable the mode described above.
\![enter,nouserbreakmode]この文章中は、スクリプトブレークできない。\![leave,nouserbreakmode]ここからブレーク出来るようになる。
Stop redrawing the balloon until \![unlock,balloonrepaint] is called or the script ends.
Redrawing is automatically resumed at the end of the script.
However, specifying \![lock,balloonrepaint,manual] keeps redrawing stopped until it is explicitly unlocked[2.5.16]
\![lock,balloonrepaint]この文章はスクリプト実行が終わるまで表示されない。
Unlocks the above.
\![lock,balloonrepaint]この文章の描画はされない。\![unlock,balloonrepaint]ここで描画が再開され、前の文章も描画される。
Suppress user-dragging of the balloon until \![unlock,balloonmove] is called.
This can be specified permanently in descript.txt, as with sakura.balloon.dontmove.
Do not overuse this, as it interferes with user interaction.
Unlocks the above. If it is already specified in descript.txt, it cannot be unlocked.
[Obsolete specification] Displays tags as-is without executing them until the next \_!.
Displays tags as-is without executing them until the next \_?.
\_?\1この文章はさくらスクリプトが実行されず\nそのまま表示される。\_?
Adjusts how speech synthesis voices the text up to the next \__v.
\__v[disable]: Disables speech synthesis
\__v[alternate,文字列]: Specifies the correct spoken text for words with an ambiguous pronunciation. Hiragana is recommended to avoid misrecognition.
[SSP only] This also affects whether the text is recorded in the backlog (speech history).
Text within a \__v[disable] section is neither spoken by speech synthesis nor recorded in the backlog.
Text within a \__v[alternate,文字列] section is recorded in the backlog as the specified string instead of the original text, regardless of whether speech synthesis is enabled.
\1\__v[disable]この文章は音声合成機能でしゃべらない。\__v
Return each balloon to its initial position. This works the same as the “Reset balloon position” menu command.
\_b[ファイルパス,...]Paths may be absolute or relative to the SHIORI module itself.
Note: SSP only; environment variables can also be used in paths such as file names.
\_b[ファイルパス,...]Options that can be specified for both \_b[ファイルパス,x,y,オプション,オプション...] and \_b[ファイルパス,inline,オプション,オプション...].
Sets text to right-aligned (\f[align,right]), centered (\f[align,center]), or left-aligned (\f[align,left]).
This setting remains in effect until an "intentional line break" such as \n or \_l occurs.
If this command is run while text or other content is being added, it also moves text already added on the same line.
When the \_l tag is encountered, alignment returns to left.
If centered alignment is set with the \f[align] tag after moving with the \_l tag, centering is performed as if the text had been indented by the \_l tag's X coordinate.
In vertical writing mode, left means top-aligned, right means bottom-aligned, and center means vertically centered.
\f[align,center]これは中央揃え。\n\f[align,right]これは右揃え。\n\f[align,left]左揃えのつもりが\w9\w9\f[align,right]右揃えに。
Sets bottom alignment (\f[valign,bottom]), vertical center alignment (\f[valign,center]), or top alignment (\f[valign,top]) for text.
If this command is run while adding text or other content, it also moves text already added on the same line.
Unlike align, it is not reset by \n or \_l.
In vertical writing mode, top means left alignment, bottom means right alignment, and center means horizontal center alignment.
Changes the text font to the specified font name.
If default is specified, or none of the specified font candidates are available, the font reverts to the balloon's standard font (or the balloon font override in SSP settings, if enabled).
If disable is specified, the font is set to the same font used for disabled display.
Font files placed under [the folder of the ghost that ran]/ghost/master or in the current balloon's folder can also be specified as font names.
Multiple font names can be specified, separated by commas. They are selected from among the fonts installed automatically in the order listed (highest priority first) (SSP only).
\f[name,メイリオ,meiryo.ttf]メイリオがインストール済みならメイリオ、そうでなければmeiryo.ttf、それもなければデフォルトフォントで表示される。
Changes the text to the specified font size.
Relative changes using + or - are supported.
Stylesheet size specifications are also supported.
Specify default to restore the balloon's default setting.
\f[height,15]15pixelで表示。\f[height,+3]3pixel大きくする。\f[height,200%]デフォルトサイズの200%で表示。\f[height,default]元のサイズに戻す。
Changes the text color.
For details on how to specify the color, see the note below.
\f[color,red]赤色で表示。\f[color,100,150,200]色指定で表示。\f[color,default]バルーンのデフォルト色に戻す。
Change the text shadow color.
For the specification method, see ※below.
\f[shadowcolor,#ffff00]文字の影の色を黄色で表示。\f[shadowcolor,default]バルーンのデフォルト色に戻す。
Disables the text shadow color.
\f[shadowcolor,none]文字の影自体をなくして表示。\f[shadowcolor,default]バルーンのデフォルトに戻す。
Changes the style of the text shadow. offset displays the text shifted down and to the right; outline displays it with an outline.
\f[shadowcolor,#ffff00]\f[shadowstyle,outline]文字の周囲を黄色で縁取りして表示。\f[shadowstyle,default]\f[shadowcolor,default]バルーンのデフォルトに戻す。
Specify true or 1 for the parameter to render text as outline.
Specify false or 0 for the parameter to disable it.
Specify default to restore the balloon's default setting.
Specify disable to use the same setting as disabled text display.
\f[height,30]\f[outline,1]白抜きにする。\f[outline,default]バルーンのデフォルト設定にもどす。
Changes the anchor text color.
For details on how to specify the color, see the note below.
\_a[OnTest]色変え前のアンカー\_a\n\f[anchor.font.color,50%,90%,20%]\_a[OnTest2]色変え後のアンカー\_a
Specify true or 1 for the parameter to enable bold text.
Specify false or 0 for the parameter to disable it.
Specify default to restore the balloon's default setting.
Specify disable to use the same setting as disabled text display.
If the font does not support bold, the text will not be bold.
\f[bold,1]太字にする。\f[bold,default]バルーンのデフォルト設定にもどす。
Specify true or 1 for the parameter to enable italics.
Specify false or 0 for the parameter to disable it.
Specify default to restore the balloon's default setting.
Specify disable to use the same setting as disabled text display.
If the font does not support italics, the text will not be italicized.
\f[italic,1]This is italic.\f[italic,default]バルーンのデフォルト設定にもどす。
If the parameter is set to true or 1, a strikethrough is displayed. Sample.
If the parameter is set to false or 0, it is disabled.
If default is specified, it returns to the balloon's default setting.
If disable is specified, it uses the same setting as disabled display.
\f[strike,1]文字に打ち消し線を引く。\f[strike,default]バルーンのデフォルト設定にもどす。
Specify true or 1 for the parameter to draw an underline.
Specify false or 0 for the parameter to disable it.
Specify default to restore the balloon's default setting.
Specifying disable applies the same setting as displaying it as disabled.
\f[underline,1]文字に下部線を引く。\f[underline,default]バルーンのデフォルト設定にもどす。
Specify true or 1 for the parameter to display subscript text Sample.
Specify false or 0 for the parameter to disable it.
Specify default to restore the balloon's standard setting.
Specify disable to use the same setting as disabled display.
文字を\f[sub,1]下付き文字にする。\f[sub,default]バルーンのデフォルト設定にもどす。
Specify true or 1 as the parameter to display superscript text Sample.
Specify false or 0 as the parameter to disable it.
Specify default to restore the balloon's standard setting.
Specifying disable produces the same display as when disabled.
文字を\f[sup,1]上付き文字にする。\f[sup,default]バルーンのデフォルト設定にもどす。
Restores all balloon attributes to their defaults.
\f[shadowcolor,#6699cc]色々な\f[bold,1]装飾を\f[underline,1]した\f[height,20]文字を\f[default]全てバルーンのデフォルト設定に戻す。
Restores all balloon attributes to disabled text display.
Waits for x × 50 ms. The value can be set from 1 to 9. With \w10, the balloon waits for 50 ms, then displays the character "0".
0.45秒のウェイトをかける。\w9\nその後、1秒のウェイトをかける。\w9\w9\w2ウェイト終了。
Precise wait. Waits for [時間] ms.
1.234秒のウェイトをかける。\_w[1234]ウェイト終了。
Waits until the specified number of milliseconds have elapsed since playback started or since \x.
Use \__w[clear] to reset the timer.
1\_w[1000]2\__w[2500]3。最初に1000msウェイトし、その後、累計2500msウェイトする(この場合、[2500-1000-2文字分の表示時間]で約1500ms)。文字表示にかかった時間(SSPユーザー設定で可変)も加味されるため、スクリプト開始時からの精密なウェイトをかけることができる。クリアかクリック待ちが実行された時点で0からカウントしなおす。\__w[clear]\__w[500]ここで0.5秒のウェイトがかかる。
Waits for a balloon click.
After the click, the scope is reset to \0, and the effects of Sakura Script commands in the \f (text decoration) family are also cleared. Sakura Script commands that are cleared by \e continue to apply.
\1ここで相方が\f[bold,1]トークする。\xクリック後、スコープはデフォルトの本体側に戻り、フォント変更のさくらスクリプトは解除される。
Waits for a temporary balloon click.
After the click, the balloon contents and scope are retained.
Unlike \x, the effects of Sakura Script commands in the \f (text decoration) family remain.
\1ここで相方が\f[bold,1]トークする。\x[noclear]クリック後、スコープも文字装飾系のさくらスクリプトは有効。
Time-critical section.
No notifications of events such as mouse events are sent until the script is interrupted (for example, by selecting a choice or double-clicking a balloon) or reaches \e.
Note that entering \t again does not end the section.
To end it partway through, use \![raise,イベント名] to end the current script and trigger another event.
この文章表示中はマウス反応を受け付ける。\tこれ以降スクリプト再生終了まで受け付けない。
Quick section.
Messages are displayed without waiting until the next \_q or \e.
However, Sakura Script commands that include waits still run, and their waits still apply during instant display.
\_q文字を瞬間表示する。里々等、自動でウェイトが挿入される場合は注意。\_q
Starts the quick section. \![quicksection,1] can also be used.
It is mostly compatible with \_q; the difference is that it explicitly starts the section instead of using a switch.
\![quicksection,1]文字を瞬間表示する。これもウェイトタグは実行される。
Ends the quick section. \![quicksection,0] can also be used.
It is mostly compatible with \_q; the difference is that it explicitly ends the section instead of using a switch.
\![quicksection,1]文字を瞬間表示する。これもウェイトタグは実行される。\![quicksection,0]また、クイックセクションのさくらスクリプトは\![quicksection,1]混ぜて使っても有効。\_q
Synchronize section.
Messages are displayed in both balloons until the next \_s or \e.
\_s本体側と相方側が同時に喋る。\_s
Synchronizes the scopes with the specified IDs.
\_s[0,2,3]本体側と3人目のキャラと4人目のキャラが同時に喋る。\_s
Waits until the specified named synchronization object (Mutex, Semaphore, Event, or WaitableTimer (since 2.8.28) on Windows) is signaled.
A Mutex is released after waiting; a Semaphore is released once after waiting; an Event or WaitableTimer is left unchanged after being acquired.
The following options can be specified.
Sets the specified named synchronization object to the signaled state (activates it).
For a Semaphore, this increments its count by 1 using ReleaseSemaphore; for an Event, it uses SetEvent; for a WaitableTimer, it signals it immediately.
Setting a Mutex that is not owned has no effect and is ignored.
Sets the specified named synchronization object to the nonsignaled state (deactivates it).
For an Event, this uses ResetEvent; for a WaitableTimer, it uses CancelWaitableTimer to set it to the nonsignaled state.
Reset operations on Semaphores and Mutexes have no effect and are ignored.
Displays a choice.
After a selection, the SHIORI event OnChoiceSelect starts (SSP alone starts OnChoiceSelectEx first).
The ID is stored in Reference0.
To enable automatic text wrapping, use the \__q[] tag.
さくらスクリプトは好き?\q[好き,Like]\q[嫌い,Hate]。選択時に発生するOnChoiceSelectのReference0に、選んだものによって「like」か「hate」が格納されている。
Displays a choice.
As above, if the ID starts with "On", selecting it starts the SHIORI event OnID (the event as written).
Its parameters are stored in Reference0 and onward in the order r0, r1, ...
好きな季節は?\q[春,OnLikeSeason,花見,桜]\q[夏,OnLikeSeason,花火,ひまわり]\q[秋,OnLikeSeason,月見,菊]\q[冬,OnLikeSeason,年越し,山茶花]。選択時に、OnLikeSeasonイベントが発生し、例えば「春」を選択したならReference0に「花見」、Reference1に「桜」が格納されている。
Displays a choice.
After a selection, the SHIORI event OnChoiceSelect starts.
ID* is stored in Reference*.
Displays a choice.
After a selection, the SHIORI event OnChoiceSelectEx starts.
r* is stored in Reference* of OnChoiceSelectEx.
OnChoiceSelect also occurs after OnChoiceSelectEx, but nothing is stored in Reference1 or later, so it serves no purpose with this syntax.
好きな季節は?\q[春,LikeSeason,花見,桜]\q[夏,LikeSeason,花火,ひまわり]\q[秋,LikeSeason,月見,菊]\q[冬,LikeSeason,年越し,山茶花]。選択時に、OnChoiceSelectExイベントが発生し、例えば「秋」を選択したなら、Reference0に「秋」、Reference1に「LikeSeason」、Reference2に「月見」、Reference3に「菊」が格納されている。
Displays a choice.
After a selection, the content after script: is executed as Sakura Script.
\q[バルーンを閉じる,script:\e]\n入れ子も可能。\n\q[その1,"script:\q[その2,script:その3はない]"]
[Legacy syntax] Displays a choice. * is a sequential number
After a selection, the SHIORI event with the ID number starts.
Unlike the syntax above, choices appear on separate lines.
[Legacy syntax] The \e command in a script containing a choice.
The range up to \__q becomes a choice.
The ID specification is the same as for \q, including the special handling of IDs beginning with On or script:, and the handling of ID arguments.
The SHIORI Event generated after execution is also the same.
Unlike the \q[] tag, this command also inserts a line break automatically.
\__q[OnTest,testreference]間にさくらスクリプトも挟める。\n改行、\_l[50,50]カーソル移動も可能で、画像を貼れば画像が選択肢になる。\__qこの例の場合、IDが「On」から始まっているため、選択時にOnTestイベントが発生し、reference0には「testreference」が格納されている。
In a script containing this command, choices do not time out.
This applies only within the current script. It also applies if written after the choice.
\q[タイムアウトしない選択肢,NotTimeout]\*。選択時は通常通り、OnChoiceSelectExイベント(トークがなければOnChoiceSelectイベント)が発生する。
Specifies the choice timeout duration. The unit is milliseconds.
The timer starts after all the talk has finished displaying.
This applies only within the current script. It also applies if written after the choice.
If the choice times out, the OnChoiceTimeout event occurs.
Omit the duration: returns to the default value
Duration is 0 or -1: no timeout
\q[早押し,FastPush]\![set,choicetimeout,500]
The range up to \_a becomes an anchor. The choice does not time out, but the balloon times out as it does during normal talk.
Clicking the anchor starts the SHIORI event OnAnchorSelect (SSP alone starts OnAnchorSelectEx first).
The ID is stored in Reference0.
\_a[Hint]アンカー\_aをクリックするとOnAnchorSelectExイベント(トークがなければOnAnchorSelectイベント)が発生する。reference0には「Hint」が格納されている。
The range up to \_a becomes an anchor. The choice does not time out, but the balloon times out as it does during normal talk.
As above, if the ID starts with "On", clicking the anchor starts the SHIORI event OnID (the event as written).
Arguments following the ID are stored in Reference0 and onward in order.
\_a[OnHint,0]ヒント\_aが欲しいならクリックしよう。\_a[OnHint,1]ほらほら早く\_a。この2つのアンカーは、クリックするとSHIORIイベントOnHintが通知されるが、クリックしたものによってReference0の値が「0」か「1」に変わる。
The range up to \_a becomes an anchor. The choice does not time out, but the balloon times out as it does during normal talk.
Clicking the anchor starts the SHIORI event OnAnchorSelectEx.
The text used as the anchor is stored in Reference0, the ID in Reference1, and subsequent arguments in Reference2 and onward.
OnAnchorSelect also occurs after OnAnchorSelectEx, but nothing is stored in Reference1 or later, so it serves no purpose with this syntax.
\_a[CharactorName,対象テディ,年齢不詳]テディ\_aはいいやつだったのに。\_a[CharactorName,対象エミリ,0x10歳]エミリ\_aのとっておきのおやつを食べたばかりに……。アンカークリック時、OnAnchorSelectExイベントが発生する。「テディ」をクリックした場合、reference0に「テディ」、reference1に「CharactorName」、reference2に「対象テディ」、reference3に「年齢不詳」が格納されている。
Change the shape of the selected marker.
For details on how to specify it, see below.
\f[cursorstyle,underline]\q[選択肢,OnTest]選択中の選択肢の表示を下線に変更する。
The color inside the rectangle of the selected marker changes. Note that the color is determined by the effect of \f[cursormethod,描画方法].
For how to specify it, ※see below.
\f[cursorbrushcolor,red]\q[選択肢,OnTest]選択中の選択肢の形状がsquareの場合、背景色が赤色になる。
Changes the color of the rectangular frame and underline of the selected marker.
For how to specify this, see ※refer below.
\f[cursorpencolor,0,255,0]\q[選択肢,OnTest]選択中の選択肢の形状がsquareかunderlineの場合、枠線の色が緑色になる。
Change the text color of the selected marker using RGB (0–255).
For the specification method, see the note below.
\f[cursorfontcolor,default.anchor]\q[選択肢,OnTest]選択中の選択肢の文字色をアンカーと同じ色に変更する。
Changes the drawing method for the selected marker. It is effective only when the shape is square or square+underline.
Any operator available for use with the Win32API SetROP2 function can be specified.
default returns to the balloon setting's default.
See: SetROP2 function (external site)
※Specify the mode name in lowercase, without "R2_". Example: notmaskpen
\f[cursormethod,copypen]\f[cursorbrushcolor,red]\q[選択肢,OnTest]選択中の選択肢の、枠内の描画方法を変更する。copypenの場合、cursorbrushcolorの色がそのまま描画される。
Change the shape of the unselected marker.
See ※below for how to specify it.
\f[cursornotselectstyle,underline]\q[選択肢,OnTest]非選択中の選択肢の表示を下線に変更する。
Changes the color inside the rectangle of the non-selected marker. Note that the color is determined by the effect of \f[cursornotselectmethod,描画方法].
For details on how to specify it, see below.
\f[cursornotselectbrushcolor,red]\q[選択肢,OnTest]非選択中の選択肢の形状がsquareの場合、背景色が赤色になる。
Changes the color of the rectangular border and underline of the unselected marker.
For how to specify the color, see below.
\f[cursornotselectpencolor,0,255,0]\q[選択肢,OnTest]非選択中の選択肢の形状がsquareかunderlineの場合、枠線の色が緑色になる。
Change the text color of the unselected marker.
For how to specify it, see below.
\f[cursornotselectfontcolor,default.anchor]\q[選択肢,OnTest]非選択中の選択肢の文字色をアンカーと同じ色に変更する。
Changes how the unselected marker is drawn. Effective only when the shape is square or square+underline.
All operators available for use with the Win32API SetROP2 function can be specified.
default returns to the balloon setting's standard.
Reference: SetROP2 function (external site)
※Specify a lowercase mode name without 「R2_」.
\f[cursornotselectmethod,copypen]\f[cursornotselectbrushcolor,red]\q[選択肢,OnTest]非選択中の選択肢の、枠内の描画方法を変更する。copypenの場合、cursornotselectbrushcolorの色がそのまま描画される。
Change the shape of the selected anchor.
For how to specify it, see ※refer below.
\f[anchorstyle,square]\_a[OnTest]アンカー\_a選択中のアンカーの表示を枠(矩形)に変更する。
Change the color inside the rectangle of the selected anchor. Note that the color is determined by the effect of \f[anchormethod,描画方法].
For how to specify the color, see ※refer below.
\f[anchorbrushcolor,red]\_a[OnTest]アンカー\_a選択中のアンカーの形状がsquareの場合、背景色が赤色になる。
Change the color of the rectangular border and underline of the selected anchor.
For how to specify the color, see ※refer below.
\f[anchorpencolor,0,255,0]\_a[OnTest]アンカー\_a選択中のアンカーの形状がsquareかunderlineの場合、枠線の色が緑色になる。
Change the text color of the selected anchor.
For how to specify the color, see ※refer below.
\f[anchorfontcolor,default.cursor]\_a[OnTest]アンカー\_a選択中のアンカーの文字色を選択中選択肢と同じ色に変更する。
Change the drawing method for the selected anchor. Effective only when the shape is square or square+underline.
All operators supported by the Win32API SetROP2 function can be specified.
Specify default to restore the balloon's default setting.
Reference: SetROP2 function (external site)
Note: Specify the lowercase mode name without "R2_".
\f[anchormethod,copypen]\f[anchorbrushcolor,red]\_a[OnTest]アンカー\_a選択中のアンカーの、枠内の描画方法を変更する。copypenの場合、anchorbrushcolorの色がそのまま描画される。
Change the shape of unselected anchors.
For how to specify it, see ※refer below.
\f[anchornotselectstyle,square]\_a[OnTest]アンカー\_a非選択のアンカーの表示を枠(矩形)に変更する。
Change the color inside the rectangle of an unselected anchor. Note that the color is determined by the effect of \f[anchornotselectmethod,描画方法].
For how to specify the color, see ※refer below.
\f[anchornotselectbrushcolor,red]\_a[OnTest]アンカー\_a非選択のアンカーの形状がsquareの場合、背景色が赤色になる。
Change the color of the rectangular border and underline of an unselected anchor.
For how to specify the color, see ※refer below.
\f[anchornotselectpencolor,0,255,0]\_a[OnTest]アンカー\_a非選択のアンカーの形状がsquareかunderlineの場合、枠線の色が緑色になる。
Change the text color of an unselected anchor.
For how to specify the color, see ※refer below.
\f[anchornotselectfontcolor,default.cursor]\_a[OnTest]アンカー\_a非選択のアンカーの文字色を選択中選択肢と同じ色に変更する。
Change the drawing method for unselected anchors. Effective only when the shape is square or square+underline.
All operators supported by the Win32API SetROP2 function can be specified.
Specify default to restore the balloon's default setting.
Reference: SetROP2 function (external site)
Note: Specify the lowercase mode name without "R2_".
\f[anchornotselectmethod,copypen]\f[anchornotselectbrushcolor,red]\_a[OnTest]アンカー\_a非選択のアンカーの、枠内の描画方法を変更する。copypenの場合、anchornotselectbrushcolorの色がそのまま描画される。
Change the shape of visited anchors.
For information on how to specify this, see ※ below.
\f[anchorvisitedstyle,square]\_a[OnTest]アンカー\_a訪問済みのアンカーの表示を枠(矩形)に変更する。
Change the color inside the rectangle of a visited anchor. Note that the color is determined by the effect of \f[anchorvisitedmethod,描画方法].
For how to specify the color, see ※refer below.
\f[anchorvisitedbrushcolor,red]\_a[OnTest]アンカー\_a訪問済みのアンカーの形状がsquareの場合、背景色が赤色になる。
Change the color of the rectangular border and underline of a visited anchor.
For how to specify the color, see ※refer below.
\f[anchorvisitedpencolor,0,255,0]\_a[OnTest]アンカー\_a訪問済みのアンカーの形状がsquareかunderlineの場合、枠線の色が緑色になる。
Change the text color of a visited anchor.
For how to specify the color, see ※refer below.
\f[anchorvisitedfontcolor,default.cursor]\_a[OnTest]アンカー\_a訪問済みのアンカーの文字色を選択中選択肢と同じ色に変更する。
Change the drawing method for visited anchors. Effective only when the shape is square or square+underline.
All operators supported by the Win32API SetROP2 function can be specified.
Specify default to restore the balloon's default setting.
Reference: SetROP2 function (external site)
Note: Specify the lowercase mode name without "R2_".
\f[anchorvisitedmethod,copypen]\f[anchorvisitedbrushcolor,red]\_a[OnTest]アンカー\_a訪問済みのアンカーの、枠内の描画方法を変更する。copypenの場合、anchorvisitedbrushcolorの色がそのまま描画される。
This is basically similar to how colors are represented in HTML and CSS.
[2.8.93] Values that do not match any of the following (such as non-numeric R,G,B values or color codes containing non-hexadecimal characters) are ignored. Previously, they could be treated as black.
Ends the event or message.
Scripts written after this are not run or displayed.
Some Sakura Script effects end.
この文章は表示される。\eここから表示されない。
Exits the baseware.
If multiple ghosts are running in SSP, only the ghost that ran this command exits.
このスクリプトの再生後、ゴーストが終了する。\-
[Old specification] Speaks random talk.
A remnant from the era when the baseware managed all scripts; under the current specification, this tag only raises the OnAITalk event.
Starts a network update check event.
The user can also initiate this from the right-click menu or Ghost Explorer.
Options are supported only by SSP. See Specifying update options.
ネットワーク更新を開始。\![updatebymyself]
Starts the baseware network update event.
If an update is available, the ghost exits (OnBasewareUpdating, or OnClose if there is no talk) and then starts again (OnBasewareUpdated, or OnBoot if there is no talk).
If there is no update, only a popup is displayed and no SHIORI event occurs.
ベースウェアの更新を実行。\![update,platform]
Starts a network update event for the specified update targets.
ghost, shell, and balloon can be specified. To update multiple targets at once, separate them with "+".
Setting the update target to all is equivalent to \![updatebymyself].
When \![update,ghost+shell+balloon] is specified, unlike \![updatebymyself], the update is forced regardless of the SSP settings.
When updating anything other than ghost, if an update is available, SHIORI events such as OnUpdateOtherReady are sent, along with the event group in which OnUpdate is changed to OnUpdateOther. After all updates are complete, OnUpdateResult is sent as a summary of the results.
Options are supported only by SSP. See Specifying update options.
シェルの更新を実行。\![update,shell]
Starts a network update event for update targets with arbitrary names. Targets that are not running can also be specified.
Any number of the following options can be added.
--balloon=balloon name
--shell=shell name
--plugin=plugin name
--headline=headline name
--language=language resource name
If an update is available, SHIORI events such as OnUpdateOtherReady are sent, along with the event group in which OnUpdate is changed to OnUpdateOther. After all updates are complete, OnUpdateResultEx is sent as a summary of the results.
Options specified with --option= are supported only by SSP. See Specifying update options.
プラグイン「共有変数プラグイン」「うかてん」の更新を実行。\![updateother,--plugin=共有変数プラグイン,--plugin=うかてん]
Performs the actual time adjustment during a clock synchronization event.
This is generally done in the SHIORI event OnSNTPCompare, which is notified when a time server is connected to.
時間をサーバと合わせる。\6
Starts a clock synchronization event.
The SHIORI event OnSNTPBegin is notified, and once the time is obtained from the time server, the SHIORI event OnSNTPCompare is notified.
Same as \7.
時刻サーバに問い合わせを行う。\![executesntp]
Starts a headline sensor event.
Setting the headline name to random selects one at random.
Setting it to lastinstalled starts the last installed headline sensor.
ヘッドラインをどれか1つランダムに実行。\![execute,headline,random]
Starts retrieving appointments from a calendar plugin (schedule sensor). This is equivalent to selecting a plugin from the calendar menu.
This command runs even when the calendar is not displayed.
Setting the calendar plugin name to random selects one at random.
Setting it to lastinstalled runs the last calendar plugin installed. However, this does not work if SSP has been exited once.
If no matching calendar plugin is found, this command is ignored.
The calendar plugin name is reported by installedcalendarpluginname.
Starts a mail-check event.
Using \![biff,アカウント名] runs a mail check for a specific account name.
The account name is provided by configuredbiffname.
メールチェックイベントを開始。\![biff]
Uninstalls the current ghost without a request for permission to disappear.
Note that this runs immediately without showing a confirmation dialog.
Whether deletion occurs depends on the user's SSP settings.
The following options can be specified in SSP
\![vanishbymyself,ゴースト名] Specifies which ghost to switch to after deletion (if it cannot be found, SSP selects one automatically as appropriate)
\![vanishbymyself,--option=query] 2.5.82 : Displays a deletion confirmation dialog. This is the same as when run from the menu.
自分自身を削除。Send Boxからのサンプル入力での実行時は要注意。\![vanishbymyself]
Randomly switches to another ghost.
Switching with this script does not notify the SHIORI event OnGhostChanging.
ランダムチェンジ。\+
Switches to the next ghost in sequence (sequential change). This switches to the ghost below the current one in the Ghost Explorer.
If the current ghost is at the bottom of the list, switches to the ghost at the top of the list.
This script does not notify the SHIORI event OnGhostChanging when switching ghosts.
リストの次のゴーストへチェンジ。\_+
Switches to the specified ghost.
Set the ghost name to random for a random change (equivalent to \+).
Set it to sequential for a sequential change (equivalent to \_+).
If the specified ghost does not exist, the command is ignored.
Set the ghost name to lastinstalled to switch to the last installed ghost. This is invalid if SSP has been shut down since installation.
Set the ghost name to random to switch to a random ghost.
[SSP 2.9.35] The ghost's UUID can also be specified instead of its name, avoiding confusion between ghosts with the same name.
In SSP 2.4.74 and later, adding --option=raise-event after the ghost name notifies OnGhostChanging, as when switching from the menu.
In this case, the operation can also be canceled with a balloon break (normally a double-click).
If omitted, the event is not notified.
Emily/Phase4.5に交代。\![change,ghost,Emily/Phase4.5]
Switches to the specified shell.
If the shell does not exist, the command is ignored.
After the change, the SHIORI event OnShellChanged is notified.
Set the shell name to lastinstalled to switch to the last installed ghost. This is invalid if SSP has been shut down since installation.
Set the shell name to random to switch to a random shell.
[SSP 2.9.35] The shell's UUID can also be specified instead of its name.
In SSP 2.4.74 and later, adding --option=raise-event after the shell name notifies OnShellChanging, as when switching from the menu.
In this case, the operation can also be canceled with a balloon break (normally a double-click).
If omitted, the event is not notified.
masterシェルに切り替え。\![change,shell,master]
Switches to the specified balloon.
If the balloon does not exist, the command is ignored.
After the change, the SHIORI event OnBalloonChange is notified.
Set the balloon name to lastinstalled to switch to the last installed balloon. This is invalid if SSP has been shut down since installation.
Set the balloon name to random to switch to a random balloon.
[SSP 2.9.35] The balloon's UUID can also be specified instead of its name.
SSPデフォルト+にバルーン変更。\![change,balloon,SSPデフォルト+]
Switch the calendar skin. This is the same as selecting a skin from the calendar menu.
If the specified calendar skin does not exist, the command is ignored.
If the calendar has never been opened, only the setting is changed; it takes effect the next time the calendar is opened.
Set the calendar skin name to lastinstalled to switch to the last installed calendar skin. However, this is disabled if SSP has been exited once.
Set the calendar skin name to random to switch to a random skin.
The calendar skin name is notified via installedcalendarskinname.
Calls the ghost specified by name.
Set the ghost name to lastinstalled to call the last installed ghost.
Set the ghost name to random to call a random ghost.
[SSP 2.9.35] The ghost's UUID can also be specified instead of its name, avoiding confusion between ghosts with the same name.
In SSP 2.4.74 and later, adding --option=raise-event after the ghost name notifies OnGhostCalling, as when switching from the menu.
If omitted, the event is not notified.
Emily/Phase4.5を呼び出す。\![call,ghost,Emily/Phase4.5]
Displays the character in front. From this script onward, the character is always displayed on top.
However, which scope is in front (the base character or the companion) depends on user interaction.
This remains in effect until the ghost exits.
\vこのスクリプト以降、最前面に表示されるようになる。
Keep the window in the foreground. From this point on in the script, it is always displayed on top.
Valid until the ghost ends.
\![set,windowstate,stayontop]このスクリプト以降、最前面に表示されるようになる。
Do not keep the window in the foreground. From this point on in the script, it is stacked with other windows in the usual way.
Valid until the ghost ends.
\![set,windowstate,!stayontop]このスクリプト以降、アクティブなウインドウが手前に表示されるようになる。
Minimize the window.
最小化。\![set,windowstate,minimize]
Temporarily saves the current wallpaper so it can be restored with restore.
[2.8.93] In window mode, saves the window-mode background (background type, image, placement, and color) instead of the OS wallpaper. This is stored separately from content saved in normal mode.
Restores the wallpaper saved with save,wallpaper.
[2.8.93] In window mode, restores the background saved with save,wallpaper while in window mode as the window-mode background (the OS wallpaper is not changed). Does nothing if nothing was saved in window mode.
Set the specified file as the wallpaper.
The file name can be an absolute or relative path. Relative paths are searched in this order: [the executing ghost's folder]/ghost/master, [the executing ghost's folder], and the SSP folder.
If the path starts with !, it is treated as a relative path from the SSP folder. If it starts with \ or /, it is treated as a relative path from the root of the drive containing SSP.
If no file name is specified, or it is empty, the wallpaper setting is cleared (leaving a background with only a background color and no wallpaper).
The options are as follows.
[2.8.93] The following format can also be used. Arguments beginning with -- can be given in any order, and may be mixed with the file name and options specified above (arguments not beginning with -- are treated as a file name or option in the order they appear).
[2.8.93] The behavior is as follows, depending on whether a file name and --color are specified.
[2.8.93] When running in window mode, this changes the background of the window-mode window displaying the ghost, rather than changing the OS wallpaper (if all ghosts share one window, the background of all ghosts changes).
The background setting is treated as "Background - Image" and is retained after SSP exits.
Only span is treated the same as fill for placement. If --color is omitted, the background color is set to the image's dominant color.
If neither a file name nor --color is specified, the background is restored to "Background - Desktop" (the setting that reproduces the OS wallpaper).
Changing the wallpaper by dragging and dropping an image file likewise changes the window-mode background.
Emily/Phase4.5のサムネイルを壁紙にする。\![set,wallpaper,ghost/emily4/thumbnail.png]
画像全体が収まるように表示し、余白を紺色にする。\![set,wallpaper,--file=ghost/emily4/thumbnail.png,--position=fit,--color=navy]
画像なしの単色背景にする。\![set,wallpaper,"--color=32,64,96"]
Apply the specified icon file to the notification area (task tray) icon.
A relative path can be used from [the folder of the running ghost] or from [the folder of the running ghost]/ghost/master.
The text, which is optional, is displayed when the mouse is placed over the icon. By default, it is something like "SSP/Emily/Phase4.5" or SSP/[the name of the running ghost].
Specifying --duration=wait time (ms) allows the icon to be animated. In this case, specifying filename.ico loads multiple files in numerical order, such as filename00.ico, filename01.ico, and so on, and displays them as an animation at the specified interval (in milliseconds). [SSP 2.5.58~]
Additionally, specifying --runcount sets the number of times the animation repeats. If unspecified, it repeats indefinitely. [SSP 2.5.59~]
\![set,tasktrayicon,normal.ico,ゴースト/通常モード]アイコンを[実行したゴーストのフォルダ]/ghost/masterにあるnormal.icoにし、マウスオン時のメッセージを「ゴースト/通常モード」に変更する。
Displays a balloon from the tray icon.
OnTrayBalloonClick is raised when the balloon is dismissed by clicking it.
OnTrayBalloonTimeout is raised when it times out or is closed using the close button.
The following options can be specified.
On Windows 10 and later, if file association settings are set to "Shortcuts only" or higher (excluding kiosk mode and read-only mode; setting changes take effect from the next startup), a toast notification is shown instead of a balloon and remains in the notification center. In this case, it is not displayed by the tray icon. If the conditions are not met or displaying the toast fails, it is shown as a balloon as before.
For toast notifications, OnTrayBalloonClick is raised when clicked, and OnTrayBalloonTimeout is raised when closed using the close button or when it times out and moves to the notification center. No event is raised if it is clicked after moving to the notification center.[2.9.14]
\![set,trayballoon,--text=何らかのエラーにより、処理が失敗しました,--title=エラーが発生しました,--icon=error]
Sets whether to send the OnOtherGhostTalk notification. The default is false.
When set to anything other than false, OnOtherGhostTalk is sent when another concurrently running ghost speaks.
If before is specified, the notification is sent before it speaks; if after is specified, it is sent after it speaks. true is equivalent to after.
Valid until the ghost ends.
\![set,otherghosttalk,true]これ以降、同時に起動しているゴーストが何か喋り終わるたびに、OnOtherGhostTalkが通知されるようになる。
Sets whether to send the OnOtherSurfaceChange notification. The default is false.
When set to true, OnOtherSurfaceChange is sent whenever the surface of another concurrently running ghost changes.
\![set,othersurfacechange,true]これ以降、同時に起動しているゴーストのサーフェスが変わるたびに、OnOtherSurfaceChangeが通知されるようになる。
Executes an event.
The third and subsequent arguments are stored in Reference0 onward, in order.
このトークの末端にあるraiseが再生された時、SHIORIイベント「OnRaiseTest」がSSPから通知される。Reference0には「test」が入っている。\![raise,OnRaiseTest,test]
A special tag that “embeds” an event's result in this tag within the currently executing script.
The options are used in the same way as for \![raise]; the third and subsequent arguments are stored in Reference0 onward, in order.
When the \![embed] tag is encountered during execution, the specified event is called. If it returns a result, the entire \![embed] tag is replaced with the result string, and script execution resumes from the first character of the replacement string.
(This feature provides a broader, more general-purpose mechanism for synchronous SAORI calls during Satori execution.)
This was initially implemented for use with the property system as a way to call the property system, which does not itself return a result, and then use the result in the immediately following \![embed] tag to dynamically change processing, all “within a single script execution.” However, there is no such restriction in particular; this feature can be used whenever you want to perform some processing in sync with script execution.
このトークの最後に、SHIORIイベント「OnEmbedTest」の実行結果が表示される。raiseと違いスクリプトが1つなので、スクリプト終了で効果が切れるさくらスクリプト(フォント変更など)が持続する。\![embed,OnEmbedTest]
里々のテンプレートでこのスクリプトを実行した場合は、この文の後にランダムトークがくっつく。\![embed,OnTalk]
Runs an event after the specified wait time (in milliseconds).
For "whether to repeat," specify 0 to trigger the event repeatedly at the specified interval, or 1 or greater to trigger it only once.
The fifth and subsequent arguments are references.
Events with different names can each be run independently, but repeated runs of an event with the same name overwrite the previous one.
To cancel, run Sakura Script with the same event name and a time of 0.
The timer persists after a network update.
When "whether to repeat" is 0, the timer remains active until the specified event occurs. When "whether to repeat" is 1 or greater, it remains active until the ghost exits.
\![timerraise,5000,1,OnTimerraiseTest,test]5秒後(5000ミリ秒)後に、OnTimerraiseTestが発生する。さくらスクリプトが実行された瞬間から時間をカウントする。\![timerraise,0,1,OnTimerraiseTest]ここで先ほどのタイマー予約をキャンセル。
Notifies another running ghost of an event.
The fourth and subsequent arguments are references.
Set the ghost name to "__SYSTEM_ALL_GHOST__" to notify all running ghosts.
Ghost names must be specified directly; multiple names can be separated by byte value 1.
[SSP 2.9.35] The UUID of a running ghost can also be specified instead of its name. If multiple ghosts with the same UUID are running, the visible ghost is notified; if none is visible, the first ghost in the running-ghost list is notified.
\![raiseother,Emily/Phase4.5,OnRoastedPotate,sweet potato]Emily/Phase4.5が同時起動していれば、Emily/Phase4.5にOnRoastedPotateを通知。Reference0には「sweet potato」が入っている。
Notifies other running ghosts of an event after a specified delay in milliseconds.
For "whether to repeat", 0 causes the event to recur at the specified interval, while 1 or greater causes it to occur only once.
The sixth and subsequent arguments are references.
Events with different names can be scheduled independently, but repeatedly scheduling an event with the same name overwrites the previous schedule.
Running Sakura Script with the same event name and a time of 0 cancels the schedule.
If the ghost name is __SYSTEM_ALL_GHOST__, all running ghosts are notified.
Multiple ghost names can be specified, separated by byte value 1.
[SSP 2.9.35] The UUID of a running ghost can also be specified instead of its name (as with raiseother). The destination is resolved each time the event is sent, not when the timer is set.
\![timerraiseother,30000,0,Emily/Phase4.5,OnRoastedPotate,sweet potato]Emily/Phase4.5が同時起動していれば、Emily/Phase4.5に30秒(30000ミリ秒)おきに繰り返しOnRoastedPotateを通知。Reference0には「sweet potato」が入っている。\![timerraiseother,0,1,Emily/Phase4.5,OnRoastedPotate]ここで繰り返し通知をキャンセル。
Sends the specified event to a plugin.
Set the plugin name to random to select one at random.
[SSP 2.9.35] The plugin's UUID can also be specified. It is matched if there is no match against an ID or name.
Set it to lastinstalled to start the last installed plugin.
\![raiseplugin,スタンプ帳,OnStampAdd,[実行したゴーストのフォルダ]/ghost/master/stamp.png,マイスタンプ,スタンプを押したよ。よろしくね。]プラグイン「スタンプ帳」に、[実行したゴーストのフォルダ]/ghost/master/stamp.pngの画像とメッセージを登録する。
Sends the specified event to a plugin after a specified delay in milliseconds.
For "whether to repeat", 0 causes the event to recur at the specified interval, while 1 or greater causes it to occur only once.
Events with different names can be scheduled independently, but repeatedly scheduling an event with the same name overwrites the previous schedule.
Running Sakura Script with the same event name and a time of 0 cancels the schedule.
[SSP 2.9.35] The plugin's UUID can also be specified (as with raiseplugin). The destination is resolved each time the event is sent, not when the timer is set.
\![timerraiseplugin,60000,0,実体化,OnMenuExec]プラグイン「実体化」を60秒(60000ミリ秒)おきに繰り返し実行。\![timerraiseplugin,0,0,実体化,OnMenuExec]ここで繰り返し実行をキャンセル。
As with raise, the only difference is that even if this notification event returns a value, it is not reflected in SSP.
\![notify,OnNotifyTest,test]OnNotifyTestが通知され、Reference0に「test」が入っている。OnNotifyTestでトークを書いてもSSPに反映されない。
Like timerraise, except that any values returned by this notification event are not applied to SSP.
\![notify,OnNotifyTest,test]OnNotifyTestが通知され、Reference0に「test」が入っている。OnNotifyTestでトークを書いてもSSPに反映されない。
This is the same as raiseother, except that any value returned by the notification event is not reflected in SSP. A UUID can also be specified instead of a ghost name, as with raiseother.
\![notifyother,Emily/Phase4.5,OnRoastedPotate,sweet potato]Emily/Phase4.5が同時起動していれば、Emily/Phase4.5にOnRoastedPotateを通知。Reference0には「sweet potato」が入っている。もしこの通知イベントでEmily/Phase4.5が何かトークをしても、バルーンには何も表示されない。
This is the same as timerraiseother, except that any value returned by the notification event is not reflected in SSP. A UUID can also be specified instead of the ghost name, as with timerraiseother.
\![notifyother,Emily/Phase4.5,OnRoastedPotate,sweet potato]Emily/Phase4.5が同時起動していれば、Emily/Phase4.5にOnRoastedPotateを通知。Reference0には「sweet potato」が入っている。もしこの通知イベントでEmily/Phase4.5が何かトークをしても、バルーンには何も表示されない。
This is the same as raiseplugin, except that any value returned by the notification event is not reflected in SSP. A UUID can also be specified, as with raiseplugin.
\![notifyplugin,スタンプ帳,OnStampAdd,[実行したゴーストのフォルダ]/ghost/master/stamp.png,マイスタンプ,スタンプを押したよ。よろしくね。]プラグイン「スタンプ帳」の登録イベントをnotifyで呼び出す。プラグイン実行で処理は行われるが、ゴースト側への返答は無視される。
Same as timerraiseplugin, except that any value returned by this notification event is not reflected in SSP. A UUID can also be specified.
\![notifyplugin,スタンプ帳,OnStampAdd,[実行したゴーストのフォルダ]/ghost/master/stamp.png,マイスタンプ,スタンプを押したよ。よろしくね。]プラグイン「スタンプ帳」の登録イベントをnotifyで呼び出す。プラグイン実行で処理は行われるが、ゴースト側への返答は無視される。
Play a WAV file in the current ghost's folder.
The baseware plays a WAV, MP3, or WMA file. The path can be relative to [the folder of the executing ghost]/ghost/master or absolute.
Ignored if the file does not exist.
\_v[se/test.wav]。[実行したゴーストのフォルダ]/ghost/master/seフォルダにあるtest.wavを再生する。
Wait for playback of the file specified by \_v to finish.
Ignored if playback has already finished or the file does not exist.
\_v[test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\_V再生が終了するまで待ってからこの文章を表示する。
Has the same function as \_v, but allows options.
\![sound,play,test.mp4,--sound-only=true,--window=true][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.mp4動画を再生する。ただしシークバー強制表示、音声のみ。
Preload the sound before playback so that it starts playing immediately when play is specified. The syntax is the same as for play.
SSP plays an audio CD. Ignored if no audio CD is loaded.
While playback is in progress, \_V is ignored. Specifying another track with \![sound,cdplay,トラックNo.] during playback is also ignored. Stop playback with \![sound,stop] before specifying the next track.
\![sound,play,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。
Play the file in a loop. It is not included in the target of \_V.
To stop playback, execute \![sound,stop].
\![sound,loop,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\![sound,stop]ループ再生を停止する。
Has the same function as \_V.
\![sound,play,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\![sound,wait]再生が終了するまで待ってからこの文章を表示する。
Pauses playback. If the filename is omitted, pauses all sounds currently playing.
\![sound,loop,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\![sound,pause]再生を一時停止してこの文章を表示する。
Resumes playback. If the filename is omitted, resumes all sounds currently playing.
\![sound,loop,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\![sound,pause]再生を一時停止してこの文章を表示する。\![sound,resume]中断した箇所から再生を開始する。
Stops playback completely. Unlike pause, this releases the audio data and stops playback completely. In some cases, another audio file cannot be played unless this command is used to stop playback.
If the filename is omitted, stops all sounds currently playing.
\![sound,loop,test.wav][実行したゴーストのフォルダ]/ghost/masterフォルダにあるtest.wavを再生する。\![sound,stop]再生を完全に停止する。
\C, it interrupts any script that is playing or waiting to play (including scripts returned by other events). Because notifications are frequent, they may cancel scripts returned by events such as per-second events before their tags are executed. Specify this option to avoid that.:. Example: \![sound,play,bgm.wav,--eq=-12:-12:-6:0:0:0:6:12:12:12]\![sound,…]).--eq= alone (with an empty value) resets all bands to 0dB. If the number of values is not 5, 10, 15, or 31, or any value cannot be read as a number, the entire setting is ignored and the current settings are retained.\![sound,option,…]. Changes are smoothed over about 10 milliseconds, so no clicks occur. The setting applies to that sound and is not retained when the same file is played again after playback ends.| Number | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Center | 63 | 250 | 1000 | 4000 | 16000 |
| Range | 32~125 | 125~500 | 500~2000 | 2000~8000 | 8000~32000 |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Center | 32 | 64 | 125 | 250 | 500 | 1000 | 2000 | 4000 | 8000 | 16000 |
| Range | 23~45 | 45~89 | 89~177 | 177~354 | 354~707 | 707~1414 | 1414~2828 | 2828~5657 | 5657~11314 | 11314~22627 |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Center | 25 | 40 | 63 | 100 | 160 | 250 | 400 | 630 | 1000 | 1600 | 2500 | 4000 | 6300 | 10000 | 16000 |
| Range | 20~32 | 32~50 | 50~79 | 79~126 | 126~200 | 200~316 | 316~502 | 502~794 | 794~1265 | 1265~2000 | 2000~3162 | 3162~5020 | 5020~7937 | 7937~12649 | 12649~20239 |
| Number | Center | Range | Number | Center | Range | Number | Center | Range |
|---|---|---|---|---|---|---|---|---|
| 0 | 20 | 18~22 | 11 | 250 | 224~281 | 22 | 3150 | 2806~3550 |
| 1 | 25 | 22~28 | 12 | 315 | 281~355 | 23 | 4000 | 3550~4472 |
| 2 | 31.5 | 28~36 | 13 | 400 | 355~447 | 24 | 5000 | 4472~5612 |
| 3 | 40 | 36~45 | 14 | 500 | 447~561 | 25 | 6300 | 5612~7099 |
| 4 | 50 | 45~56 | 15 | 630 | 561~710 | 26 | 8000 | 7099~8944 |
| 5 | 63 | 56~71 | 16 | 800 | 710~894 | 27 | 10000 | 8944~11180 |
| 6 | 80 | 71~89 | 17 | 1000 | 894~1118 | 28 | 12500 | 11180~14142 |
| 7 | 100 | 89~112 | 18 | 1250 | 1118~1414 | 29 | 16000 | 14142~17889 |
| 8 | 125 | 112~141 | 19 | 1600 | 1414~1789 | 30 | 20000 | 17889~22361 |
| 9 | 160 | 141~179 | 20 | 2000 | 1789~2236 | |||
| 10 | 200 | 179~224 | 21 | 2500 | 2236~2806 |
Jump to the specified ID.
Jump to a URL beginning with http://~.
Execute a file with the extension associated with the OS using file:///~. In addition to an absolute path, a path relative to [the folder of the executing ghost]/ghost/master can be used as the file name.
※SSP only: use mailto:~ to compose a new email addressed to the specified recipient.
\j[http://ssp.shillest.net/]ばぐとら研究所をブラウザを立ち上げて表示する。
\j[file:///descript.txt][実行したゴーストのフォルダ]/ghost/masterフォルダにあるdescript.txtを開く。
Open the browser configured in the baseware.
This is the browser specified under "External Applications -> Browser Settings" in the baseware settings from the owner-draw menu.
\![open,browser,http://ssp.shillest.net/]ばぐとら研究所をSSP本体設定で指定されたブラウザを立ち上げて表示する。
Opens the mailer configured in the baseware.
This is specified under "External Applications -> Mailer Settings" in the baseware's owner draw menu settings.
\![open,mailer,test@example.com]送信先アドレスにtest@example.comが入ったメーラーを開く。
Open the address bar. This allows the same operation as dragging and dropping a URL.
Edits the specified file using the editor configured in the baseware.
This is the editor specified under "External Applications -> Editor Settings" in the baseware's owner draw menu settings.
When opened with "display line", the cursor is moved to the specified line in advance.
If no editor is specified, the behavior is the same as right-clicking in Explorer and selecting "Edit". In this case, "display line" is ignored.
Opens the file manager configured in the baseware, with the specified file.
This is specified under "External Applications -> File Manager Settings" in the baseware's owner draw menu settings.
If no file manager is specified, a specified folder is opened, or a specified file is selected in Explorer.
Specify \![open,explorer,種類(ghost/shell/balloon/headline/plugin),名前] to select the folder to open by type and name.
Example: \![open,explorer,ghost,Emily/Phase4]
[Legacy] Open the TeachBox.
Open TeachBox. OnTeachStart is notified when the command runs; OnTeach is notified when the OK button in TeachBox is pressed, and OnTeachInputCancel is notified when it is closed.
\![open,teachbox]TeachBoxを開く。
Close the TeachBox.
Note that this does not trigger OnTeachInputCancel.
\![close,teachbox]TeachBoxを閉じる。開いてない場合は無視される。
[Legacy] Open the CommunicateBox.
Open the CommunicateBox.
After input is confirmed, OnCommunicate is triggered. When it is closed, OnCommunicateInputCancel is triggered.
Only in SSP, default text can be specified after the command (in the form \![open,communicatebox,テキスト]).
Only in SSP, ※options can be specified in the form --option=○○. This is optional.
\![open,communicatebox,テスト]CommunicateBoxを開く。最初から「テスト」の文字が入っている。
\![open,communicatebox,--text=テスト]上記と同じ(オプション指定の書き方)
Close the CommunicateBox.
Note that this does not trigger OnCommunicateInputCancel.
\![close,communicatebox]CommunicateBoxを閉じる。開いてない場合は無視される。
Open an InputBox.
When confirmed (by pressing the OK button), the SHIORI event OnUserInput is raised.
If the display time elapses (times out), or if the box is closed with the close button, OnUserInputCancel is raised.
If there is no response to OnUserInputCancel and the display time has elapsed, OnUserInput is raised with "timeout" as the input text for compatibility.
Input used to block all other operations while being entered, but this is not the case in SSP.
The ID is stored in OnUserInput, which is raised upon confirmation. If the ID begins with "On", an event named after the ID is raised. See ※ID.
Specify the display time in milliseconds. If omitted or set to a value of 0 or less, the display time is unlimited.
The text is the text displayed in the box immediately after it opens (not available in CROW); it is optional.
In SSP only, options can be specified in the form --option=○○. See ※Options. This is optional.
\![open,inputbox,インプットテスト,10000,テスト入力]「テスト入力」と初期入力されたInputBoxを開く。OKボタンを押すか、10秒経過で自動的に閉じる。
\![open,inputbox,インプットテスト,--timeout=10000,--text=テスト入力] 上記と同じ(新オプション指定)
\![open,inputbox,OnNameInput,--placeholder=あなたの名前] 空欄に「あなたの名前」と薄く表示されたInputBoxを開く。[2.9.10]
Open an InputBox that masks the characters. Other behavior is the same as inputbox.
\![open,passwordinput,パスワードテスト,-1,--option==noclose]入力が●で伏せ字になるInputBoxを開く。OKボタンを押しても、時間経過でも自動的に閉じない。閉じるボタンを押すと閉じる。
\![open,passwordinput,パスワードテスト,--timeout=-1,--option==noclose] 上記と同じ(新オプション指定)
Open a year/month/day input InputBox.
Specify the display duration in milliseconds.
The year, month, and day are the initial values.
When input is confirmed, the SHIORI event OnUserInput is triggered, and Reference1 contains "year,month,day" as a comma-separated string.
If the display duration expires (times out), or the box is closed with the close button, OnUserInputCancel is triggered.
Options can be specified in the form --option=○○; see ※options.
Other behavior is the same as for inputbox.
\![open,dateinput,日付入力テスト,30000,2012,12,23]初期値が2012年12月23日の年月日入力InputBoxを開く。30秒でタイムアウトする。
\![open,dateinput,日付入力テスト,--timeout=30000,--text="2012,12,23"] 上記と同じ(新オプション指定)
Open a slider-based InputBox.
When input is confirmed, the SHIORI event OnUserInput is raised, and the input value is placed in Reference1.
Options can be specified in the form --option=○○ via ※options.
Other behavior is the same as inputbox.
The minimum allowed value is -2147483648, and the maximum is 2147483647.
\![open,sliderinput,スライダーテスト,30000,50,0,100]初期値が50、最小値が0、最大が100のスライダー型InputBoxを開く。30秒でタイムアウトする。
\![open,sliderinput,スライダーテスト,--timeout=30000,--text="50,0,100"] 上記と同じ(新オプション指定)
Open a time-input InputBox.
時,分,秒 are the initial values, using 24-hour time.
The input value is placed in Reference1 of OnUserInput as a comma-separated “hour,minute,second” string.
Options can be specified in the form --option=○○ via ※options.
Other behavior is the same as inputbox.
\![open,timeinput,時間入力テスト,30000,23,45,12]初期値が23時45分12秒の時間入力InputBoxを開く。30秒でタイムアウトする。
\![open,timeinput,時間入力テスト,--timeout=30000,--text="23,45,12"] 上記と同じ(新オプション指定)
Opens an IP address input box.
On Windows, only IPv4 addresses can be accepted due to input box limitations.
Options can be specified in the form --option=○○ ※options.
Other behavior is the same as inputbox.
\![open,ipinput,IP入力テスト,30000,192,168,0,1]
\![open,ipinput,IP入力テスト,--timeout=30000,--text="192,168,0,1"]
Close the InputBox specified by ID (including date, time, slider, and hidden-input boxes). To close all of them, specify __SYSTEM_ALL_INPUT__.
\![close,inputbox,時間入力テスト]IDが「時間入力テスト」のInputBoxを閉じる。\![close,inputbox,__SYSTEM_ALL_INPUT__]その後、全てのInputBoxを閉じる。
Open a multiline input box (textareabox).
When input is confirmed (by pressing the OK button or Ctrl+Enter), the SHIORI event OnTextAreaInput is raised. The Enter key inserts a newline.
If the display time elapses (timeout) or the box is closed with the close button, OnTextAreaInputCancel is raised.
Newlines in the input are passed as characters with byte value 1 (\1) as separators. Likewise, \1 represents newlines in the text (initially displayed content).
ID handling (an event with the ID as its name is raised when it starts with “On”) is the same as for InputBox IDs.
Display time, text, and ※options are specified in the same way as for inputbox, with the following differences.
・--limit= counts newlines as one character.
・--placeholder= (the hint text shown faintly when the field is empty) also uses \1 to represent newlines.
・Input completion (inputbox.autocomplete) is not available.
・If --balloon= is omitted, balloonc5 is used. If the balloon does not have balloonc5, the currently displayed balloon image of the speaking character is used as the background, and the validrect area is used as the input field (the text font, size, and color are also taken from the balloon text). The input field is horizontal even in a vertical-writing balloon.
\![open,textareabox,感想,--timeout=300000] 複数行の入力ボックスを開く。5分でタイムアウトする。
\![open,textareabox,OnDiaryInput,--limit=400] 決定時にOnDiaryInputが発生する。改行込みで400文字まで。
\![open,textareabox,OnDiaryInput,--placeholder=今日の出来事(Ctrl+Enterで決定)] 空欄に案内文を薄く表示する。
Close the multiline input box (textareabox) specified by ID. To close all of them, specify __SYSTEM_ALL_INPUT__.
\![close,inputbox,...] does not close textareaboxes.
Specify in the form ○○. All options are optional.
\![inputbox,入力内容,,,--option=noclose,--option=noclear]).\1 represents a line break.When input is confirmed, OnUserInput is triggered. However, if the ID is a string that starts with "On", an event named after the ID is triggered instead.
For OnUserInput, the specified ID is placed in Reference0 and the input is placed in Reference1. For an event named after the ID, the input is placed in Reference0 instead.
Example
When input is confirmed using \![open,inputbox,インプットテスト,10000,テスト入力].
When input is confirmed using \![open,inputbox,Onインプットテスト,10000,テスト入力].
Regardless of the ID, OnUserInputCancel is triggered when the close button is pressed or the input times out.
Open the settings dialog ("Baseware Settings" in the owner-draw menu).
The dialog ID can specify which screen to show initially (if omitted, the screen opened last time is used).
See Reference0 of the SHIORI event ※OnConfigurationDialogHelp.
\![open,configurationdialog,talk]SSP本体設定ダイアログの喋り/バルーンのタブを開く。
Opens the ghost explorer.
It can also be opened from the owner draw menu.
The explorers listed below can also be changed manually by selecting a type from the ghost explorer's Type (T) menu.
\![open,ghostexplorer]ゴーストエクスプローラを開く。
Open the shell explorer. Only the shell of the currently running ghost is displayed.
\![open,shellexplorer]シェルエクスプローラを開く。
Open the balloon explorer.
\![open,balloonexplorer]バルーンエクスプローラを開く。
Opens the headline sensor explorer.
\![open,headlinesensorexplorer]ヘッドラインエクスプローラを開く。
Open the plugin explorer.
\![open,pluginexplorer]プラグインエクスプローラを開く。
Open the calendar skin explorer.
\![open,calendarskinexplorer]カレンダースキンエクスプローラを開く。
Open the calendar plugin (schedule sensor) explorer.
\![open,calendarpluginexplorer]カレンダープラグインエクスプローラを開く。
Display ghost usage statistics.
\![open,rateofusegraph]ゴースト使用率を表示する。
Display balloon usage statistics. In unsupported environments, this has the same effect as running rateofusegraph.
\![open,rateofusegraphballoon]バルーン使用率を表示する。
Display combined ghost usage statistics. Currently, this is supported only by Materia; elsewhere, it has the same effect as running rateofusegraph.
Open the calendar.
\![open,calendar]カレンダーを開く。
Opens SSP Help.
If the dialog ID is the ID name of a settings dialog (see Reference0 of OnConfigurationDialogHelp), help for that settings dialog is displayed. If omitted, the index page is opened.
\![open,help,talk]ブラウザで、https://ukatech.shillest.net/ukadoc-ssp/の喋り/バルーンのページを開く。
Open the instant messenger.
It can be launched from the owner-draw menu via “Functions (F) -> SSP Messenger (M).”
\![open,messenger]インスタントメッセンジャーを開く。
Open readme.txt.
If nothing is specified, the file specified as the readme in [the folder of the ghost that executed this]/ghost/master/descript.txt of the running ghost is opened.
\![open,readme,種類(ghost/shell/balloon/headline/plugin/calendar.skin/calendar.plugin),名前] と指定すると、指定したreadmeが開く。例:\![open,readme,ghost,Emily/Phase4]
calendar.skin is a calendar shell, and calendar.plugin is a calendar plugin (schedule sensor). The space-separated forms "calendar skin" and "calendar plugin" are also accepted.
\![open,readme]readme.txtを開く。
Display the terms dialog using [the folder of the executing ghost]/terms.txt for the currently running ghost.
If terms.txt does not exist, this has no effect (only an error sound is played).
Because this forcibly interrupts the user's actions with a dialog, it should not be used excessively.
\![open,terms]terms.txtを開く。
Executes a file. Specify a relative path from [the folder of the running ghost]/ghost/master/ or an absolute path.
Windows environment variables (such as %SYSTEMROOT%, %SYSTEM%, and %TEMP%) can be used.
If an executable file is specified as the file name, its path is searched for automatically.
\![open,file,shell/master/surface0.png]shell/masterフォルダのsurface0.pngが開かれる。
\![open,file,%ComSpec%]コマンドプロンプトが実行される。
\![open,file,TortoiseProc.exe]TortoiseSVNがインストールされていれば、パスを自動で検索して実行する。
Opens a file selection dialog. Selecting a file in this dialog does not actually open the file.
When confirmed, the SHIORI event OnSystemDialog is raised, with "open" stored in reference0 and the file path stored in Reference2. Each ghost author must implement and run the actual processing here.
When the dialog is closed, the SHIORI event OnSystemDialogCancel is raised.
Specify multiple parameters as described below, separated by commas.
\![open,dialog,open,--title=オープンダイアログ表示テスト,--dir=C:/SSP/ghost/emily4/ghost/master,--filter=辞書ファイル|dic*.txt;*.dic;*.aym;*.kis|全てのファイル|*.*,--id=テストダイアログ]SSPがCドライブ直下に、SSPという名前のフォルダで存在する場合、Emily/Phase4.5の[実行したゴーストのフォルダ]/ghost/masterを初期位置とし、dic~.txtと~.dicと~.aymと~.kisのファイルのみ表示する。
Opens a file save dialog. Saving a file in this dialog does not actually save anything.
When confirmed, the SHIORI event OnSystemDialog is raised, with "save" stored in reference0 and the file path stored in Reference2. Each ghost author must implement and run the actual processing here.
When the dialog is closed, the SHIORI event OnSystemDialogCancel is raised.
Specify multiple parameters as described below, separated by commas.
\![open,dialog,save,--title=セーブダイアログ表示テスト,--dir=__system_mydocument__,--filter=テキストファイル|*.txt;*.dic,--ext=txt,--name=test,--id=テスト保存ダイアログ]マイドキュメントを初期位置として、.txtと.dicのファイルのみを表示し、初期ファイル名「test.txt」の保存ダイアログを開く。
Opens a folder selection dialog. Selecting a folder in this dialog does not actually do anything.
When confirmed, the SHIORI event OnSystemDialog is raised, with "folder" stored in reference0 and the folder path stored in Reference2. Each ghost author must implement and run the actual processing here.
When the dialog is closed, the SHIORI event OnSystemDialogCancel is raised.
Specify multiple parameters as described below, separated by commas.
\![open,dialog,folder,--title=フォルダ選択ダイアログ表示テスト,--id=OnTestFolderDialog]ダイアログで前回開いた場所を初期位置として、フォルダ選択ダイアログを開く。保存ボタンを押すと、指定したID名が「OnTestFolderDialog」でOnで始まっているため、同名のSHIORIイベントOnTestFolderDialogが通知される。
Open the color palette dialog. Selecting a color in this dialog does not perform any action by itself.
When a selection is confirmed, the SHIORI event OnSystemDialog is triggered. The selected color is stored in Reference2 in the format "R,G,B", and "color" is stored in Reference0. Each ghost author must implement and run the actual processing here.
When the dialog is closed, the SHIORI event OnSystemDialogCancel is triggered.
The following parameters can be specified, separated by commas.
\![open,dialog,color,--color=255 0 0,--id=テストカラーダイアログ]初期表示色が赤のカラーパレットダイアログを表示。
Initial folder to display, specified as an absolute path
If omitted, the folder opened in the previous dialog is used.
Specify one of the following in the path to select a special Windows folder:
__system_mydocument__
__system_mypictures__
__system_myvideo__
__system_mymusic__
__system_desktop__
Close the dialog with the specified event ID. To close all dialogs, specify __SYSTEM_ALL_DIALOG__.
\![close,dialog,テストカラーダイアログ]現在表示されているダイアログのうち、idが「テストカラーダイアログ」のものを閉じる。ダイアログが閉じられた場合、OnSystemDialogCancelが通知される。
Open the surface test dialog. This command is ignored unless “Developer Features” is enabled in the main settings.
\![open,surfacetest]サーフェステストダイアログを開く。
Open the AI graph. If the running ghost does not respond to the SHIORI resource getaistate, nothing happens.
\![open,aigraph]AIグラフを開く。
Open the development palette. Nothing happens if developer mode is OFF.
Open the SHIORI Request sending palette. Nothing happens when developer mode is OFF.
Opens the error log window.
Opens the dressup explorer.
Open the image viewer. If (ファイル名) is specified, that file is displayed automatically (optional).
Open the archive viewer. If (file name) is specified, that file is displayed automatically (optional).
Open the backlog (conversation history) window.
Set a value in the property system.
※For details about the property system, see the property system page.
\![set,property,currentghost.shelllist(master).menu,hidden]オーナードローメニューのシェル(S)から、masterシェルを非表示にし手動で変更出来ないようにする。\![set,property,currentghost.shelllist(master).menu,]masterシェルを再度オーナードローメニューに表示する。
Retrieve values from the property system.
The event specified by the event name is raised, and property system values are placed in its references, starting at reference0, one value per reference.
※For details about the property system, see the property system page.
このスクリプトの再生後、SHIORIイベント「SSPからバルーン情報取得」が通知される。Reference0に現在使用中のバルーンの、本体側の表示可能な幅(ピクセル数)、Reference1にその高さが入っている。\![get,property,SSPからバルーン情報取得,currentghost.balloon.scope(0).validwidth.initial,currentghost.balloon.scope(0).validheight.initial]
Performs an HTTP GET request and stores the response in a file.
The file is stored in the [実行したゴーストのフォルダ]/ghost/master/var folder.
\![execute,http-get,http://ssp.shillest.net/ukadoc/manual/list_sakura_script.html]ukadocのさくらスクリプトリスト(このページ)を取得し、varフォルダにlist_sakura_script.htmlを保存する。
Performs an HTTP GET request with parameters and stores the response in a file.
The file is stored in the [folder of the ghost that executed it]/ghost/master/var folder.
\![execute,http-get,http://search.yahoo.co.jp/search,p=SSP 伺か]YAHOOでの「SSP 伺か」の検索結果ページを、そのまま保存する。
Sends an HTTP POST request with parameters and stores the response in a file.
The file is stored in the ghost/master/var folder of the ghost that executed it.
\![execute,http-post,http://jbbs.shitaraba.net/bbs/read.cgi/computer/44300/1432574039/,BBS=44300&KEY=1432574039&DIR=computer&MESSAGE=テストメッセージ]ゴースト回覧板3rdの、テストスレに「テストメッセージ」と本文に入れて送信する。※したらば掲示板がスパム対策を強化したため現在書き込み不可。
※Options performs an HTTP GET request with options and stores the response in a file.
The file is stored in the [folder of the ghost that executed it]/ghost/master/var folder.
\![execute,http-get,http://search.yahoo.co.jp/search,--async=伺か検索,--file=検索結果ファイル.txt,--nodescript,--param=p=SSP 伺か,--timeout=5]YAHOOでの「SSP 伺か」の検索結果ページを、[実行したゴーストのフォルダ]/ghost/master/var/検索結果ファイル.txtに保存する。実行時、オンラインマーカーやダウンロード状況を出さない。5秒応答がなければタイムアウトする。
Make an HTTP POST request with ※options and store the response in a file.
The file is stored in the [folder of the ghost that executed the command]/ghost/master/var folder.
\![execute,http-post,http://jbbs.shitaraba.net/bbs/read.cgi/computer/44300/1432574039/,--async=書き込みテスト,--param=BBS=44300&KEY=1432574039&DIR=computer&MESSAGE=テストメッセージ]ゴースト回覧板3rdの、テストスレに「テストメッセージ」と本文に入れて送信する。5秒応答がなければタイムアウトする。※したらば掲示板がスパム対策を強化したため現在書き込み不可。
Send an HTTP HEAD request with options.
Send an HTTP PUT request with ※options.
Send an HTTP DELETE request with options.
Make an http patch request with ※options.
Send an HTTP OPTIONS request with options.
Make an HTTP GET request with options, parse the response as an RSS/Atom feed, and then notify the results as an event.
The parameters are specified in the same way as for http-post.
The retrieved items are reported through OnExecuteRSSComplete, and failures through OnExecuteRSSFailure.
[2.8.92] You can specify which items to return and how many with the RSS filtering options (--from, --to, and --limit). If unspecified, all items are returned.
\![execute,rss-get,https://example.com/feed.xml,--async=OnMyFeed,--limit=5]最新の5件をOnMyFeedで受け取る。
\![execute,rss-get,https://example.com/feed.xml,--async=OnMyFeed,--from=20261201,--to=20261207]2026年12月1日から7日までの項目だけを受け取る。
Make an HTTP POST request with options, parse the response as an RSS/Atom feed, and then notify the results as an event.
The parsing, notification, and filtering specifications are the same as for rss-get. The parameters are specified in the same way as for http-post.
These options specify which items to return from the retrieved feed with \![execute,rss-get/rss-post].
The syntax is the same as for the iCal filtering options, but the behavior when omitted is different. --expand is ignored.
If none are specified, all items are returned.
Send an HTTP GET request with ※options, parse the response as an iCalendar (RFC 5545) calendar, and then notify the parsed results as events.
The parameter specification is the same as for http-post.
Retrieved events are notified through OnExecuteICalComplete, and failures through OnExecuteICalFailure.
Specify which events to return and how many with the iCal filtering options (--from, --to, --expand, and --limit). If none are specified, all VEVENTs in the file are returned, starting from the first.
The items parsed are X-WR-CALNAME, X-WR-TIMEZONE, and CALSCALE directly under VCALENDAR, as well as VEVENT (and VALARM within it). VEVENTs without SUMMARY are considered invalid and excluded.
A temporary file for parsing is created even if --nofile is specified (the option is ignored).
\![execute,ical-get,https://example.com/calendar.ics,--async=OnMyCalendar,--expand=7]今日から7日ぶんの予定を「発生」単位で展開し、OnMyCalendarで受け取る。
\![execute,ical-get,https://example.com/calendar.ics,--async=OnMyCalendar,--from=20261201,--to=20261231,--limit=50]2026年12月に発生する予定を最大50件、VEVENT単位で受け取る。
Send an HTTP POST request with ※options, parse the response as an iCalendar (RFC 5545) calendar, and then notify the parsed results as events.
The parsing and notification behavior is the same as for ical-get. The parameter specification is the same as for http-post.
In \![execute,ical-get/ical-post], options for specifying which events to return from the retrieved calendar.
[2.8.92] The same options can also be used with rss-get/rss-post, but their behavior when omitted differs (see RSS filtering options). They are ignored for other requests.
Writing any of --from, --to, --expand, or --limit enables “date range mode”, which returns only events that occur within the date range. If only --limit is specified, date range mode starts from the current day.
If none are specified, all VEVENTs in the file are returned as-is, in order from the first (with no date-range filtering or event-count limit).
Register one event in the ghost calendar. Registered events appear in the SSP calendar and, like the user's events, are included in today's events and in OnSchedule5MinutesToGo.
The ghost calendar is stored in a separate file (data/schedule/ghost/schedule.ics) from the user's events and the schedule sensor, and is shared by all ghosts. Events registered by other ghosts can also be overwritten or deleted.
Users can view these events in the calendar but cannot edit them. They can be deleted all at once from the calendar menu: “Delete All” → “Ghost-registered events”.
The result is reported through OnExecuteScheduleComplete, and failures through OnExecuteScheduleFailure. This command cannot be run from scripts sent externally, such as via SSTP.
Options (--summary and --start are required)
--summary=title : Event title (SUMMARY).
--start=date/time : Start date and time. yyyymmdd specifies an all-day event; yyyymmddThhmm or yyyymmddThhmmss specifies a time (local time). The - and : separators are ignored.
--end=date/time : End date and time. The format is the same as for --start. If omitted, the event lasts for one day, starting on the start date.
--uid=UID : Event identifier. Only single-byte alphanumeric characters and symbols, with no spaces, are allowed. Replaces any event with the same UID. If omitted, SSP assigns one and returns it through OnExecuteScheduleComplete.
--description=description : DESCRIPTION.
--location=location : LOCATION.
--url=URL : URL.
--categories=categories : CATEGORIES. Separate multiple values with commas (they are saved as-is as the value of iCal CATEGORIES).
--status=status : STATUS (CONFIRMED / TENTATIVE / CANCELLED).
--type=type : Event type. Included in Reference0 of OnSchedule5MinutesToGo and other events.
--rrule=rule : Recurrence rule (the value portion of RRULE; for example, FREQ=WEEKLY;BYDAY=MO).
--exdate=date : Date to exclude from the recurrence (yyyymmdd). Separate multiple dates with commas.
--notify=minutes : How many minutes in advance to notify. If omitted, SSP settings are used.
--script=script : Sakura Script to attach to the event. It runs when notifying the user and when reading the event.
--event=event ID : If an ID starting with On is specified, the result event uses that ID as its name (on failure, Failure is appended to the ID).
When specifying values that contain commas (such as --rrule, --exdate, and --categories), enclose the entire argument in " ".
\![execute,schedule-add,--uid=myghost-meeting,--summary=打ち合わせ,--start=20261001T1000,--end=20261001T1100,"--rrule=FREQ=WEEKLY;BYDAY=TH",--notify=10,--event=OnMyScheduleAdded]2026年10月1日から毎週木曜10時の予定を登録し、10分前に通知させる。
\![execute,schedule-add,--summary=記念日,--start=20261224,--rrule=FREQ=YEARLY]毎年12月24日の終日予定を登録する。
Delete the event with the specified UID from the ghost calendar. Events in the user's calendar or the schedule sensor cannot be deleted.
The result is reported through OnExecuteScheduleComplete, and failures (including when no matching event exists) through OnExecuteScheduleFailure. This command cannot be run from scripts sent externally, such as via SSTP.
The only option is --event=event ID. See schedule-add.
Read the events registered in the ghost calendar and report them through OnExecuteScheduleGetComplete. The Reference format is the same as for OnExecuteICalComplete.
Only events in the ghost calendar are included; the user's events and schedule sensor events are not included.
Specify which events to return and how many with the iCal filtering options (--from, --to, --expand, and --limit). You can also use --event=event ID.
\![execute,schedule-get,--expand=7,--event=OnMySchedule]今日から7日ぶんのゴースト用の予定を「発生」単位で展開し、OnMyScheduleで受け取る。
Establish a WebSocket connection with options. SHIORI events are issued when the connection is established, when data is received, and when it is disconnected. The parameters are specified in the same way as for rss-get.
Send a text frame to the connected WebSocket session. The URL identifies the target session. If two or more data values are specified, they are joined with CRLF and sent as text. If the session does not exist (before connection or after disconnection), the tag is ignored.
\![send,websocket,ws://example.com/chat,Hello!,World]ws://example.com/chat に "Hello!\r\nWorld" をテキストフレームとして送信する。
Send a binary frame to the connected WebSocket session. The URL identifies the target session. If the session does not exist, the tag is ignored.
\![send,websocket-binary,ws://example.com/stream,SGVsbG8=]ws://example.com/stream に Base64デコードしたバイナリデータをバイナリフレームとして送信する。
Send a Close frame and disconnect normally, in accordance with RFC 6455. The connection is closed after receiving the server's response Close frame. After disconnection, OnExecuteWebSocketClose (Reference2="1000") is raised.
\![close,websocket,ws://example.com/chat]ws://example.com/chat を正常に切断する。
\![close,websocket,ws://example.com/chat,1001]ステータスコード1001 (going away) で切断する。
Forcefully interrupt the connection without sending a Close frame. This interrupts immediately, even during an automatic-reconnection backoff wait. After disconnection, OnExecuteWebSocketClose (Reference2="userbreak") is raised. Use \![close,websocket,...] to end the conversation normally.
Cancel an ongoing HTTP request.
Cancel an ongoing ical-get/ical-post request.
Extract a ZIP file. Using full paths is recommended. Relative paths are interpreted as relative to ghost/master/.
The options are as follows.
For details on events raised after execution, see OnExtractArchiveComplete and OnExtractArchiveFailure.
For security reasons, extraction is restricted to locations under folders managed by SSP (such as the ghost and balloon folders, specified in the "Folders" settings).
Since this restriction may be strengthened as needed, it is safest to limit extraction to locations under the folder containing the ghost's own data.
\![execute,extractarchive,C:/SSP/ghost/test.zip,C:/SSP/ghost/emily4]Cドライブ直下にSSPがインストールされている場合、test.zipをemily4フォルダに解凍する。処理が完了するまでスクリプトの実行は停止する。
\![execute,extractarchive,C:/SSP/ghost/test.zip,C:/SSP/ghost/emily4,--event=OnExtractComplete]非同期で解凍を実行し、完了時にOnExtractCompleteイベントが発生する。
Compresses files into a ZIP archive. Using full paths is recommended. Relative paths are interpreted as relative to ghost/master/.
The available options are as follows.
For specifications related to events raised after processing, see OnCompressArchiveComplete and OnCompressArchiveFailure.
Specify a folder for the directory name. [SSP 2.9.33] If it is not a folder (for example, if it is a file path), compression fails without creating an archive. (If --event= is specified, Reference1 of the failure event (OnCompressArchiveFailure, or the specified identifier with Failure appended) is invalid parameter.)
For security reasons, the destination is restricted to locations under folders managed by SSP (such as the ghost and balloon folders, and locations specified in the "Folder" settings).
This restriction may be strengthened as needed, so it is safest to limit the destination to a folder under the one containing the ghost's own data.
\![execute,compressarchive,C:/SSP/ghost/test.zip,C:/SSP/ghost/emily4]Cドライブ直下にSSPがインストールされている場合、Emily/Phase4.5のフォルダをtest.zipに圧縮してghostフォルダに置く。処理が完了するまでスクリプトの実行は停止する。
\![execute,compressarchive,C:/SSP/ghost/test.zip,C:/SSP/ghost/emily4,--event=OnCompressComplete]非同期で圧縮を実行し、完了時にOnCompressCompleteイベントが発生する。
Output the composited surface images to the specified directory.
If no event ID is specified, script execution stops until processing is complete.
Scope ID: Specify the same ID as the one used for the \s tag. This setting changes scope-dependent processing, such as the dressup state.
Surface list: Use the same format as surface ID specification, or specify one of the following.
__system_surface_all__ : Output all surfaces available to the shell
__system_surface_defined__ : Output all surfaces defined in surfaces.txt only
Note: To specify commas inside Sakura Script bracket parameters, enclose them in " ".
prefix: (Optional) The string to prepend to the output file names. Defaults to surface.
Event ID: (Optional) If specified, output continues while the rest of the Sakura Script runs, and the specified event is raised when output is complete. Reference0 contains the number of files successfully output.
Zero-origin crop: If 1 is specified, always dump from 0,0 regardless of the animation definition, ignoring parts with negative coordinates.
Animation ID: (Optional) If specified, after the normal image for each surface (prefix+surface number.png), play the animation in the same way as \i[ID], and output an image for each pattern as it advances, using sequential, zero-based, four-digit numbers starting from prefix+surface number_0000.png. Only one ID can be specified. For details, see the startup option --dump-animation. Reference0 for the event contains the number of files, including the sequential images.[2.9.05]
For security reasons, output is restricted to locations under folders managed by SSP (such as the ghost and balloon folders, specified in the "Folders" settings).
Since this restriction may be strengthened as needed, it is safest to limit output to locations under the folder containing the ghost's own data.
If the output location is outside the permitted range, nothing is output and an error is logged.
[2.9.08] The following format can also be used. Arguments beginning with -- can be in any order and may be mixed with the specifications above. (Arguments not beginning with -- are treated in order as directory, scope ID, surface list, prefix, event ID, zero-origin crop, and animation ID.)
All arguments except the directory are optional. If the scope ID is omitted, it defaults to 0.
\0のサーフェス0~9をdumpフォルダに出力する。\![execute,dumpsurface,--dir=dump,--scope=0,"--surface=0-9"]
Output the current drawing contents of the balloon for the specified scope as an image in the specified directory.
Unlike a surface, it cannot be redrawn by specifying a state; the contents drawn in the balloon at that point are output as-is. The image is output at its original size, before scaling or applying transparency (including fades).
The image is output even if the balloon is hidden, as long as drawing contents remain.
The output filename is prefix+scope ID+.png (e.g. : balloon0.png).
scope ID : Specify the same ID used for the \s tag.
prefix : (optional) The string to prepend to the output filename. If omitted, balloon is used.
event ID : (optional) Raise the specified event when output completes. The number of files successfully output (0 or 1) is stored in Reference0.
The output destination restrictions are the same as for \![execute,dumpsurface]. If the destination is outside the allowed range, nothing is output and an error is recorded in the log.
[2.9.08] The command can also be specified in the following format. Arguments beginning with -- can be in any order and may be mixed with the specifications using the arguments above (arguments not beginning with -- are treated, in order of appearance, as directory, scope ID, prefix, and event ID).
All arguments except the directory can be omitted; if the scope ID is omitted, it defaults to 0.
\![set,balloonmarker] and the sender display for scripts received via SSTP)\![set,balloonnum]\![lock,balloonrepaint] is active).SSTPマーカーとballoonnumを除いて、\0のバルーンをdumpフォルダに出力する。\![execute,dumpballoon,--dir=dump,--scope=0,"--hide=balloonmarker,balloonnum"]
Install the specified nar file. Specify an absolute path (relative paths are not allowed).
\![execute,install,path,C:/SSP/emily4.nar]C:/SSPにあるemily4.narをインストールする。
Download the file at the specified URL and perform the installation or registration process appropriate to its type.
The file is automatically downloaded to a temporary-file folder, and installation is performed as appropriate.
OnURLQuery is not raised for downloads performed using this tag.
The type is optional. If omitted, it is detected automatically from the Content-Type and file contents.
\![execute,install,url,http://ssp.shillest.net/ghost/emily4.nar,nar]Emily/Phase4.5のnarをダウンロードしてきてインストールする。
Perform the baseware's default action that was skipped because the ghost responded to a drag-and-drop event.
Use this when you want to say something in response to a drop and then leave the rest to the baseware. It can be executed later, such as after an option has been selected, not only within the script that responded to the event.
\![execute,install,url], but the scope number of events such as OnURLDropping that occur afterward is the scope that executed this tag.Events OnPictureViewerOpen, OnMediaPlayerOpen, and OnArchiveViewerOpen also occur for image viewers and other applications opened with this tag. Reference1 (scope number) is the scope that executed this tag.
\0画像を見せてくれるの?\![execute,dropdefault,file,"C:/Users/user/Pictures/photo.png"]OnFileDrop2に応答して喋ったうえで、ドロップされた画像を画像ビューアーで開く。実際にはOnFileDrop2のReference0をそのまま渡す。
\0ダウンロードするね。\![execute,dropdefault,url,http://ssp.shillest.net/ghost/emily4.nar,nar]OnURLQueryに応答して喋ったうえで、本来の処理(この場合はnarのダウンロードとインストール)を続ける。実際にはOnURLQueryのReference0とReference3をそのまま渡す。
Ping the specified host. Supports IPv6.
The parameters are as follows.
For details about events during and after execution, see OnPingProgress and OnPingComplete.
\![execute,ping,--host=ssp.shillest.net,--event=pingテスト]ばぐとら研究所にデフォルト設定でpingを打つ。
Specify a hostname to look up its IP address, or an IP address to look up its hostname. Supports IPv6.
The parameters are as follows.
For details about events during and after execution, see OnNSLookupComplete and OnNSLookupFailure.
\![execute,nslookup,--host=ssp.shillest.net,--event=nslookupテスト]ばぐとら研究所のホスト名指定でIPを調べる。調べた内容は成功時に通知されるOnNSLookupCompleteのReference3に入っている。
Start monitoring the specified file or directory, and notify via OnExecuteFileWatchChange each time it changes. If monitoring cannot be started, or if the monitored directory disappears while being monitored, OnExecuteFileWatchFailure is raised and monitoring ends. This cannot be run from scripts sent externally, such as via SSTP.
The parameters are as follows.
When a file is specified, updates, creation, and deletion are reported. A file that does not yet exist can also be specified; its creation will be reported. However, the directory containing the file must exist.
When a directory is specified, only creation, deletion, renaming, and updating of files and directories immediately within it are reported. The changed file is not identified, and changes inside subdirectories are not reported. The directory must exist when monitoring starts (a path that does not exist is monitored as a file).
Specifying the same path again replaces the previous specification. All monitoring is stopped when the ghost exits.
\![execute,filewatch,config.json,--async=OnConfigChanged]ghost/master/config.jsonが変化するたびに、OnConfigChangedイベントが起きる。
Stop a watch started with \![execute,filewatch]. Specify the same path that was used to start the watch. If no matching watch exists, the command is ignored.
Creates a NAR of the ghost that executed the script.
Output file: Optional. Specify a path relative to the ghost's ghost/master folder, or an absolute path. [2.8.98]
If specified, creates the file there without prompting for the destination. If a file with the same name already exists, it is overwritten. If the destination is inside the ghost's folder, the file itself is not included in the NAR.
Creates an update definition file (updates2.dau/updates.txt) for the ghost that executed the script.
Output file: Optional. Specify a path relative to the ghost's ghost/master folder, or an absolute path. [2.8.98]
If specified, creates only one file at that path. If a file with the same name already exists, it is overwritten. If the filename ends in .dau, it is output in the same format as updates2.dau; otherwise, it is output in the updates.txt format.
In this case, the usual output locations (the ghost root and ghost/master) are neither created nor deleted for updates2.dau/updates.txt. If the destination is inside the ghost's folder, the file itself is not included in the update definition.
Empty the recycle bin. It is not emptied immediately; OnRecycleBinEmpty is notified when deletion is complete.
Start ※PassiveMode.
Active until the ghost ends.
さくらスクリプトの再生後、パッシブモードになる。\![enter,passivemode]ここから、最小化も終了も出来ない。
Exit the mode described above.
\![leave,passivemode]パッシブモード解除。
In passive mode, the following restrictions apply.
These restrictions apply to user operations; actions performed using Sakura Script are still possible.
Start ※InductionMode.
Active until the ghost ends.
\![enter,inductionmode]インダクションモード開始。
Exit the mode described above.
\![leave,inductionmode]インダクションモード解除。
This is passive mode with the following restrictions removed:
Starts selection mode. When executed, transparent areas are also displayed, and you can specify a region by dragging the mouse.
After execution, OnSelectModeBegin is executed. See also OnSelectModeMouseUp, OnSelectModeMouseDown, OnSelectModeCancel, and OnSelectModeComplete.
Currently, only "rect", which indicates rectangular selection mode, can be specified. If no mode is specified, it is treated as if rect were specified.
You can specify the initial selection position after the mode. Enter coordinates or the name of a hit region set to the same size.
The surface is not redrawn while this mode is active. Even if Sakura Script (\s[ID]) or dressup is applied, the display does not change, but the changes are applied and displayed when \![leave,selectmode] is executed.
This remains active until the ghost ends.
\![enter,selectmode,rect,head]セレクトモードを開始する。判定名headの範囲が初期選択されている。
Exit the mode described above. OnSelectModeComplete runs afterward.
If the hit-test region is invalid (not selected), for example, OnSelectModeCancel runs instead.
\![leave,selectmode]セレクトモードを解除する。
Does the same thing as “Show hit regions” in the developer palette. If rect is specified as the third argument, only the region outlines are shown, without displaying collision names.
Remains in effect until the ghost ends.
\![enter,collisionmode]コリジョンモードを開始する。
Exit the mode described above.
\![enter,collisionmode]コリジョンモードを開始する。\![leave,collisionmode]ここで解除する。
[Legacy] Reload the surface. In SSP, this is the same as \![reload,shell].
\![reloadsurface]シェルをリロードする。
Reload all descript.txt files.
\![reload,descript]全descript.txtをリロードする。
Reload the specified descript.txt file.
Multiple files can be specified, separated by half-width spaces.
ghost shell balloon headline plugin language calendar.skin calendar.plugin
calendar.skin is a calendar skin, and calendar.plugin is a schedule sensor (the same category as install.txt type).
The same notation as in install.txt, "calendar skin" and "calendar plugin", is also accepted, but since parameters are separated by half-width spaces, the dotted notation is recommended.
\![reload,descript,shell balloon]シェルとバルーンのdescript.txtをリロードする。
Reload shiori.dll.
\![reload,shiori]shioriをリロードする。結果として辞書ファイルを全て読みなおす。起動中に書き換えた辞書ファイルの内容を適用する場合などに用いる。
Reload makoto.dll.
\![reload,makoto]makotoをリロードする。
Reload the shell.
\![reload,shell]シェルをリロードする。
Reload the balloon.
Reload the entire ghost.
\![reload,ghost]リロードする。自分自身へのゴースト切り替えと、SHIORIイベントが発生しないことを除けばほぼ同じ。
Reload the AI graph only if it is currently displayed. The getaistate SHIORI request is also made again.
Unload shiori.dll and leave it unloaded.
After unloading, load it again at an appropriate time. While it remains unloaded, it cannot respond to anything.
Unload makoto.dll and leave it unloaded.
Load shiori.dll after running unload.
Load makoto.dll after running unload.
Turn SHIORI debug mode in the developer palette on or off.
Create a desktop shortcut for launching the running ghost.
Use \![create,shortcut,startup] to create it in the Startup folder instead.
Embed a UCS-2 code.
\_u[0x22EE]縦三点リーダを表示。\_u[8942]最初のさくらスクリプトの10進数表記。10進数の場合は0xをつけない。
Embed an ASCII code.
\_m[0x41]半角大文字Aを表示。
Entity reference by identifier.
\&[amp]半角アンパサンドを表示。実体参照の書式、&ID;のID部分を記入する。
SSTP only.
Execute
postmessage(hwnd,umsg,wparam,lparam) on the window handle set in advance by the Wnd header.
SSTP経由でこのスクリプトを再生すると、再生したゴーストが終了する。\m[WM_CLOSE,0,0]
SSP replaces environment variables when rendering text in a balloon.
Items beginning with "word-" have multiple candidates, one of which is selected at random.
%username、ちょっと聞いてよ。%msが%mpにある%mhで%meを食べてたら%mtを思いついたんだって。
Current month.
Current day.
Current hour.
Current minute.
Current second.
Username.
The name on the baseware side.
The name on the baseware side, variant 2.
Name of the partner.
The width of the display screen.
The height of the display screen.
OS continuous uptime.
Incorrect continuous uptime. (Includes the unit.)
Incorrect current time.
Word—person.
Word—inorganic object.
Word—group.
Word—company name.
Word—store name.
Word—skill.
Word—food.
Word—place name.
Word: unrestricted.
Word—“~ to ~.”
For installation use. Name of the ghost that last performed an event.
For installation use. Name of the object that last performed an event.
Has the same function as \![*].
The value of the specified property system.
※For details about the property system, see the property system page.