A file for defining various aspects of a shell. In general, all settings are optional; specify only what you need.
For example, this is where you configure animations for each surface (expressions, parts, cels, dressup parts), hit regions, and image compositing.
You can also use this file to assign aliases to surface IDs.
In SSP, you can additionally configure tooltips displayed when the cursor remains over a hit region, as well as cursor changes.
Note that settings for basic shell information, such as the shell name and shell author's name, and settings for displaying the dressup owner draw menu (right-click menu) are configured in descript.txt, not here.
Nearly all settings are optional; configure them as needed.
Settings are written inside braces, each enclosed by "{" and "}", except for charset, which must be written on the first line if used (see the respective sections on this page for details about each brace).
"{" and "}" must each appear alone on a line; for example, you cannot place them after a brace name as in "surface1 {".
ブレス名
{
// 設定内容
}
Lines that are not recognized as a brace name, {}, or a setting are treated as comments. By convention, comment lines begin with "//".
Indentation is allowed on each line.
In SSP only, all text files named "surfaces***.txt" (where *** is any string) are loaded and treated the same as surfaces.txt. If multiple files are to be loaded, they are loaded in filename order.
When providing multiple surfaces***.txt files, the settings in the descript brace (and charset) must be specified in each file (in other words, you can use different settings in each file).
charset,Shift_JIS
descript
{
version,1
}
surface0
{
animation0.interval,sometimes
animation0.pattern0,overlay,101,100,168,67
animation0.pattern1,overlay,100,100,168,67
animation0.pattern2,overlay,101,100,168,67
animation0.pattern3,overlay,-1,100,168,67
}
surface1
{
element0,overlay,body0.png,0,0
element1,overlay,face1.png,0,0
}
surface10
{
collision0,40,56,95,90,Head
sakura.balloon.offsetx,80
sakura.balloon.offsety,-100
kero.balloon.offsetx,-30
kero.balloon.offsety,20
}
// SSPのみで有効な記法 ←このようにコメント行は//から始める
surface.append0-9
{
collision0,188,25,252,63,Head
collision1,190,92,236,118,Face
collision2,180,191,220,222,Bust
collision3,154,311,248,362,Skirt
}
The character encoding to use for display. Shift_JIS is recommended for compatibility with older environments; otherwise, UTF-8 is recommended.
When using SSP and providing multiple surfaces***.txt files, you must configure each file separately (in other words, you can use different settings in each file).
(OS default or SSP -> Internationalization -> Default character encoding -> Text definitions)
When using SSP and providing multiple surfaces***.txt files, you must configure each file separately (in other words, you can use different settings in each file).
descript
{
version,1
collision-sort,ascend
animation-sort,ascend
}
Specifies the version of the SERIKO definition format to use. 0 uses the SERIKO/1.x format (legacy definition); 1 uses the SERIKO/2.0 format.
0
※This information is not used in SSP because it is detected automatically.
The maximum width of the surface, in pixels. Used for overlap detection and similar purposes.
Not defined / In SSP, the maximum width in the actual surface definition
Sorts hit regions by evaluation order. Determines the order in which they are displayed, from front to back.
ascend sorts in ascending order (1,2,3...); descend sorts in descending order (10,9,8...)
none (the one written first is in front, regardless of ID)
Sorts animation IDs by display order. Determines the order in which they are displayed, from front to back.
ascend sorts in ascending order (1,2,3...); descend sorts in descending order (10,9,8...)
descend
surface1
{
element0,overlay,body0.png,0,0
element1,overlay,face0.png,0,0
collision0,188,25,252,63,Head
collision1,190,92,236,118,Face
collision2,180,191,220,222,Bust
collision3,154,311,248,362,Skirt
animation0.interval,sometimes
animation0.pattern0,overlay,101,100,168,67
animation0.pattern1,overlay,100,100,168,67
animation0.pattern2,overlay,101,100,168,67
animation0.pattern3,overlay,-1,100,168,67
}
There is a notation called surace.append for specifying additional definitions in SSP only (appending definitions to those that have already been defined).
For details, see below.
surface.append1-9,20-29
{
// 略(ふつうのsurfaceブレスと同様)
}
In the * part of surface(.append)*, specify the number that serves as the surface ID. Multiple values and ranges can be specified (see below).
For the numeric parts of all other lines, see the descriptions of the respective definitions.
Ukagaka shells have animation functionality. This creates video-like effects by continuously drawing frames, which are still images.
Animations are configured for each surface. The images used for each frame of an animation are also surfaces. If a surface referenced as a frame has its own animation definition, that definition is normally ignored (however, SSP alone has a mechanism called multiple dressup. See the Dressup section).
For each surface, you need to define when the animation itself starts, which surfaces to use for each frame, and how and at what intervals to draw them.
The specifications for animations in surfaces.txt are collectively called SERIKO.
surface0
{
// 瞬き
animation0.interval,rarely
animation0.pattern0,overlay,101,700,200,100
animation0.pattern1,overlay,102,700,200,100
animation0.pattern2,overlay,101,700,200,100
animation0.pattern3,overlay,-1,700,0,0
// トークに合わせて口を動かす
animation10.interval,talk,2
animation10.pattern0,overlay,200,700,200,120
animation10.pattern1,overlay,201,700,200,120
animation10.pattern2,overlay,202,700,200,120
animation10.pattern3,overlay,-1,700,0,0
}
For example, animation definitions in surfaces.txt can look like the above.
The example defines two animations for surface0: “blinking” and “moving the mouth in time with speech.”
Every animation definition includes an interval definition and pattern definitions. There may also be option definitions and, in SSP, animation-specific touch region definitions. These are optional, but an interval definition is required and must appear at the start of each animation definition. At least one pattern definition is also required.
An interval definition specifies when an animation plays. The example above uses three values: “rarely,” “talk,” and “never.” For details, see the Animation Interval section. In brief, the “blinking” animation plays occasionally, while the “moving the mouth in time with speech” animation plays every time the character speaks two characters.
A pattern definition specifies each “frame” of an animation. It sets the drawing method for that frame (see the Drawing Methods section), the wait time before it is displayed, and how far to offset it when drawing relative to the frame below it. Provide as many pattern definitions as the frames require. The number represented by * in pattern* is a sequential number starting at 0.
Every animation is assigned an ID (see the animation*.interval section for specific instructions).
IDs must be unique within a single surface, and animations with the same ID on different surfaces are expected to have the same meaning. For example, suppose there are surface0, where the character is facing forward, and surface1, where the character is facing sideways, and both have an animation for “blinking.” The images used for the frames that actually depict the blink should differ because the character’s pose differs, but both surfaces should still assign the animation the same ID. This association between ID and meaning is especially essential for the dressup feature described below.
In general, all distinct animations are independent and start and end asynchronously.
For example, an animation that blinks and one that moves the mouth in sync with speech should start and end without regard to whether the other is moving; indeed, they behave this way as long as they are defined as animations with different IDs.
On the other hand, mechanisms are also provided for using an animation itself as a trigger to run another animation, through special drawing methods for running other animations, such as start and alternativestart.
It is also possible to run exclusive animations by specifying the exclusive option.
Ukagaka shells have a mechanism called dressup. It allows parts such as outfits to be shown or hidden, or their types to be switched, within a single shell.
Dressup in Ukagaka shells is treated as a type of animation.
However, unlike other animations, it is not played frame by frame. At the start of the animation, all frames (patterns) and the base surface are composited immediately, after which they are treated as a still image. (Therefore, the wait parameter in pattern definitions is ignored.)
This property, where “the drawing behaves as if it were integrated with the base surface,” is well suited to representing things such as clothing.
The start and end of dressup animations are controlled mainly by switching them through the dressup menu in the owner draw menu. In SSP, control from the ghost is also possible using the Sakura Script \![bind] tag.
The owner draw menu settings are configured in descript.txt, not surfaces.txt; see that page.
The specifications for a series of animations in surfaces.txt are called MAYUNA.
surface0
{
// 服1の定義 アニメーションIDは0
animation0.interval,bind
animation0.pattern0,add,500,0,50,100
// 服2の定義 アニメーションIDは1
animation1.interval,bind
animation1.pattern0,add,501,0,50,100
}
//--- 以下着せ替えパーツ定義 ---
// 服1
surface500
{
element0,overlay,dress1.png,0,0
}
// 服2
surface501
{
element0,overlay,dress2.png,0,0
}
For example, dressup definitions in surfaces.txt can look like the above.
The example defines two dressups, “Outfit 1” and “Outfit 2,” for surface0.
As with ordinary animation definitions, interval and pattern definitions are required. Specifying bind in the interval definition indicates that the animation is a dressup definition.
In an animation, pattern definitions are made for each frame. For dressup, however, the specification is a still image, so the required number of parts are composited rather than frames. If the dressup consists of just one part, as in the example, there is only one pattern line. Also, because each part is composited immediately for dressup, the wait parameter is ignored.
The drawing methods for pattern definitions are described below.
In MATERIA (the original Ukagaka), four methods were provided for dressup: “bind,” “add,” “reduce,” and “insert.” Of these, bind is the old specification, and add is its upward-compatible successor.
In SSP, some of the methods provided as ordinary animation drawing methods can also be used for dressup.
For details on the drawing methods and other features available for dressup, see the Drawing methods section.
In SSP, interval combinations can be specified, as described in the Animation intervals section.
When bind is included in a combination, the animation loses the still-image property it normally has when bind is used alone (the wait parameter in pattern definitions is no longer ignored). However, the animation's lifetime does not change. For example, with a combination such as bind+runonce, the display after all patterns have been drawn continues until the base surface changes or the dressup state changes.
Therefore, with interval combinations that include bind, the final line of the pattern definition should not end the animation; instead, it should composite the drawing that is to remain as a still image.
If an animation frame references a surface that has an animation defined for it, that animation is normally ignored.
In SSP, however, only animations whose interval is bind (that is, dressups) are not ignored and are applied.
This makes it possible to define animations whose structure is affected by dressup, with definitions in the animation frames that respond to the dressup.
Dressups can also be nested, but circular references are ignored.
In a late version of the original Ukagaka (MATERIA), the format for SERIKO (animation) settings in surfaces.txt was changed.
The conventional SERIKO/1.x format described in the original specification is sometimes called the old definition, and the new format that was never officially documented (SERIKO/2.0) is sometimes called the new definition.
Separately from this, entirely unrelated to this, SSP and others added their own notations for the sufraces.txt format after MATERIA development ended (for example, surface.append and range specifications such as surface1-9).
Some people or documents may include these in what they call the new definition, but note that at least in UKADOC, the terms new and old definition refer specifically to SERIKO formats, not to such usages.
The new definition has the following four format changes:
In addition, you must add a descript brace and define "version,1".
The following examples show the old and new definitions for the same definition.
// 旧定義
surface1
{
0interval,rarely
0pattern0,0,0,alternativestart,[1,2]
1interval,never
1pattern0,101,70,overlay,200,100
1pattern1,102,70,overlay,200,100
1pattern2,101,70,overlay,200,100
1pattern3,-1,70,overlay,0,0
2interval,never
2pattern0,101,70,overlay,200,100
2pattern1,102,70,overlay,200,100
2pattern2,101,70,overlay,200,100
2pattern3,-1,70,overlay,0,0
2pattern4,101,70,overlay,200,100
2pattern5,102,70,overlay,200,100
2pattern6,101,70,overlay,0,0
2pattern7,-1,70,overlay,0,0
}
// 新定義
surface1
{
animation0.interval,rarely
animation0.pattern0,alternativestart,(1,2)
animation1.interval,never
animation1.pattern0,overlay,101,700,200,100
animation1.pattern1,overlay,102,700,200,100
animation1.pattern2,overlay,101,700,200,100
animation1.pattern3,overlay,-1,700,0,0
animation2.interval,never
animation2.pattern0,overlay,101,700,200,100
animation2.pattern1,overlay,102,700,200,100
animation2.pattern2,overlay,101,700,200,100
animation2.pattern3,overlay,-1,700,0,0
animation2.pattern4,overlay,101,700,200,100
animation2.pattern5,overlay,102,700,200,100
animation2.pattern6,overlay,101,700,200,100
animation2.pattern7,overlay,-1,700,0,0
}
Note that the lines now begin with "animation", the weight values are multiplied by 10, and the drawing method has moved to the beginning of the parameters.
Also, for alternativestart, the brackets have changed from [] to (), and the parameters ignored in the case of alternativestart ("Surface ID" and "weight") can now be omitted entirely, including the "compositing position x,y", because the drawing method has moved to the beginning. In the old definition, dummy values of 0 were written for these parameters.
If you do not consider the points above to be advantages, there may be no particular reason to migrate if you only intend to support SSP.
Note that UKADOC generally uses the new definition when describing SERIKO, so if you want to write definitions in the old format, refer to the above and convert them as appropriate.
The following notations can be used together. All are SSP-specific.
surface1,3,4,6,12
{
// 略
}
Specifying IDs separated by "," allows the same content to be defined for multiple surfaces.
surface1-12
{
// 略
}
Specifying IDs using "-" allows the same content to be defined for multiple surfaces in a consecutive range (surface1 through 12 in this example).
surface1-30,!15,!20-25
{
// 略
}
IDs listed after "!"—either individual IDs or ranges—are excluded from the definition (in this example, this is equivalent to specifying surface1-14,16-19,26-30).
Exclusions using ! take precedence over other specifications regardless of their position (for example, even if 3 is added after ! as in surface1-10,!2-4,3, it is excluded).
The original MATERIA specification only allows enumeration with a surface prefix, as shown below.
surface1,surface3,surface4
{
// 略
}
Definitions made with surface.append are added only to definitions that already exist (through a surface brace or the presence of suface*.png).
Therefore, for example,
surface1,3
{
collision0,188,25,252,63,Head
collision1,180,191,220,222,Bust
}
if you then write the following intending it as an additional definition,
surface1-3
{
animation0.interval,sometimes
animation0.pattern0,overlay,101,100,168,67
animation0.pattern1,overlay,100,100,168,67
animation0.pattern2,overlay,101,100,168,67
animation0.pattern3,overlay,-1,100,168,67
}
an unintended “surface2” is created, and a definition is made.
For this reason, adding a definition with a range without using append can cause errors such as an “unexpected duplicate definition error.” However,
surface.append1-3
{
// 略
}
when written as above, the definitions added with append are applied only to the already-defined “surface1” and “surface3,” and the nonexistent “surface2” is not created internally either.
Note that, because of this relationship, the surface brace must be written before the surface.append brace in the definition file (such as surfaces.txt).
The image representing the basic state of each surface, before animations are composited, is called the base surface.
Animations are normally drawn above the base surface (closer to the viewer).
A surface's base surface is defined by the surface*.png corresponding to its ID and by the element definition in the surface brace corresponding to that ID.
For a surface with a surface*.png, that image is the base surface for surface*. However, if element0 is also defined, the contents of surface*.png are discarded and replaced by the element0 definition (this behavior exists for compatibility).
If definitions for element1 and later are present, they are composited in sequence on top of the previous elements, and the final composite is treated as the base surface.
The side closer to the front of the screen is referred to as the higher layer, and the side farther back as the lower layer.
For elements and dressups (animations whose interval is bind), the one with the smaller elementID or patternID is lower, and the one with the larger ID is higher.
The base surface is generally placed at the bottom of all compositing. However, animations that specify SSP's background option are composited below (behind) the base surface.
The stacking order among animations, including dressups, is normally descending by animation ID, with the larger ID higher (placed closer to the front of the screen). In SSP, however, this can be changed to ascending order by defining animation-sort in the descript brace.
For a given surface, the collision definition that appears first in surfaces.txt is generally higher. In SSP, however, the order can also be set to ascending or descending by collisionID by defining collision-sort in the descript brace.
SSP can also define hit tests that are active only when a specific animation is displayed, using animation*.collision. In this case, after taking the stacking order of each animation into account, the hit tests for each animation and the base surface are evaluated in the usual order.
For example, with animation-sort set to descend, the order from higher to lower is:
(Animations here also include dressups.)
The assignment of surface IDs to particular expressions or content is basically unrestricted.
However, surface0 and surface10 are required as the default surfaces, respectively. Even a ghost without a counterpart must provide a transparent image or similar for surface10 (SSP does not strictly require this; the default surfaces can also be changed through settings such as those in descript).
The following is a rough "de facto standard" for ID assignment. The assignments below are for reference only and are not required, except for 0 and 10; assignments are generally unrestricted.
sakura side
kero side
Note that in MATERIA, the numbers usable for surfaceID are limited to 0 through 8192.
Compositing the base surface.
A mechanism for compositing multiple images and treating the result as a single image serving as the base surface.
If an image named surface*.png corresponding to the surface exists, defining element0 discards the contents of the original surface*.png and replaces them with element0
element1 and later are composited on top of it in sequence.
The * portion (elementID) is a sequential number starting at 0, consistent within the same surface.
See drawing methods below for drawing methods.
If an animated GIF/APNG/animated WebP is specified for surface*.png or an element definition, it will animate automatically without a SERIKO definition (SSP 2.7.38~).
A surface defined with element also behaves like a single image when used as an animation part (SSP 2.3.53~; behavior was undefined before that).
The options are as follows. Multiple options can be specified consecutively, as in "element0,overlay,face.png,0,0,--clipping,10,10,50,50,--alpha,128".
No effect
Defines when an animation starts (its interval).
For intervals, see Animation Intervals below. SSP-only: multiple intervals can be combined by listing them separated by +.
The * (animationID) can be any number. For all surfaces within that scope (\0, \1, ...), animations with the same ID should have the same meaning (for example, “blinking,” “lip-sync,” or “changing into the same outfit”).
The interval definition marks the beginning of the entire animation definition for that ID, and must always be written first in the series of animation definitions.
For the relationship between animation overlap and ID order, see animation-sort.
Old definition: *interval, interval
No behavior
Defines each frame of an animation. Normally, each frame is drawn by compositing it onto the base surface, resetting any previous frames first (strictly speaking, this depends on the drawing method).
The * following animation is the animationID (the same as the * in animation*.interval).
The * following pattern (the pattern ID) is a sequential number starting at 0 within a series of animation*.pattern definitions. In materia, the maximum is 127. Frames are drawn stacked in order from the lowest number.
For drawing methods, see Drawing Methods below.
The weight is the delay before drawing that frame. The unit is milliseconds. SSP also supports a format with the minimum and maximum weights separated by a hyphen (“minimum-maximum”); in this case, a value is selected at random from that range.
The X and Y coordinates specify how far to shift the frame relative to the base (the drawing result up to that frame).
Setting the surface number to -1 stops that animation; setting it to -2 stops all other animations currently running. In either case, the drawing method and X and Y coordinates are ignored.
An alias other than the ID specified in the name definition can also be used as the surface number. (SSP 2.8.25~)
Old definition: *pattern*, surface ID, weight, drawing method, X coordinate, Y coordinate
The available options are as follows. To specify multiple options, append them as shown here: “animation0.pattern0,overlay,101,700,0,0,--alpha,128,--option2,...”.
No behavior
The option to run an animation exclusively.
That is, when an animation with the exclusive option starts, all other animations stop, and no other animations can start until the exclusive animation ends.
The * following animation is the animationID (the same as the * in animation*.interval).
Note that this option is undefined for animations whose interval is bind.
SSP-only: writing animation*.option,exclusive,(1,3,5) limits exclusive control to animations with the specified IDs.
Old definition: *option,exclusive
No behavior
The option to run an animation in the background.
An animation with the background option runs behind the base surface (farther from the viewer).
The * following animation is the animationID (the same as the * in animation*.interval).
No behavior
Continues an animation with the same ID from where it left off, even when the base surface is changed using the \s tag.
Specifically, if the animation has run up to pattern4 before \s is executed, it restarts from pattern4 after \s is executed as well.
This option must be specified on both the source and destination of the \s switch; specifying it on only one side resets the animation.
The animation also resets if the destination animation does not have the pattern ID.
No behavior
The exclusive, background, and shared-index options can be specified together, with multiple options separated by +. Example: exclusive+background
The * following animation is the animationID (the same as the * in animation*.interval).
If you write animation*.option,exclusive+background,(1,3,5), for example, only exclusive is affected.
Note that exclusive is undefined for animations whose interval is bind.
No behavior
Definitions that apply only while an animation is running, for regular collision and collisionex. These are also effective for interval binds.
The * following animation is the animationID (the same as the * in animation*.interval).
The * following collision is a number that does not overlap with any other number in the series of animation*.collision definitions.
No behavior
The animation name. As with animationID, it can be used in the ID fields of the \i[] tag, \![anim] tag, start, stop, and exclusivemode.
Undefined
A hit-test area. The enclosed area becomes the region for the ID.
The * portion (collisionID) is a sequential number that must be unique within the same surface.
See collision-sort for the relationship between overlapping hit-test areas and ID order.
No effect
Irregularly shaped hit-test area.
The * portion (collisionID) is a sequential number that must be unique within the same surface.
The types are as follows.
No effect
The X coordinate of the main character's balloon position for this surface only.
Appending one character indicating direction to offsetx / offsety allows different values to be used depending on where the balloon is displayed (SSP only).
If offsetxb is not specified, offsetxc is used; if that is also not specified, offsetx is used. If offsetxc / offsetxl / offsetxr are not specified, offsetx is used. The X and Y coordinates are determined independently.
The values written here take precedence over values with the same name written in the shell's descript.txt.
The sign convention is the same as for sakura.balloon.offsetx in descript.txt.
When displayed on the left or right: position where the balloon's left or right edge aligns with the surface's right or left edge
When displayed above the head or at the feet: center of the surface
The Y-coordinate of the main character's balloon position, only for this surface.
For how to append a single direction character (l / r / c / b), see sakura.balloon.offsetx.
When displayed to the left or right: aligned with the top edge of the surface
When displayed above: aligned with the top edge of the surface and the bottom edge of the balloon
When displayed below: aligned with the bottom edge of the surface and the top edge of the balloon
The X coordinate of the partner's balloon position for this surface only.
For syntax that appends one character indicating direction (l / r / c / b), see sakura.balloon.offsetx.
When displayed on the left or right: position where the balloon's left or right edge aligns with the surface's right or left edge
When displayed above the head or at the feet: center of the surface
The Y coordinate of the partner's balloon position for this surface only.
For syntax that appends one character indicating direction (l / r / c / b), see sakura.balloon.offsetx.
When displayed on the left or right: position where the balloon's top edge aligns with the surface's top edge
When displayed above the head: position where the balloon's bottom edge aligns with the surface's top edge
When displayed at the feet: position where the balloon's top edge aligns with the surface's bottom edge
The X coordinate of the balloon position for this surface only (for either the main character or the partner).
Can also be written as offset.x.
For a format with a single direction character (l / r / c / b) appended, see sakura.balloon.offsetx.
When displayed to the left or right: a position where the left or right edge of the balloon aligns with the right or left edge of the surface
When displayed above or below: the center of the surface
The Y coordinate of the balloon position for this surface only (for either the main character or the partner).
Can also be written as offset.y.
For a format with a single direction character (l / r / c / b) appended, see sakura.balloon.offsetx.
When displayed to the left or right: a position where the top edge of the balloon aligns with the top edge of the surface
When displayed above: a position where the bottom edge of the balloon aligns with the top edge of the surface
When displayed below: a position where the top edge of the balloon aligns with the bottom edge of the surface
The X coordinate of the surface center.
It is not normally used, but can be retrieved externally through the Sakura API and similar interfaces.
Center of the surface (width ÷ 2)
The Y coordinate of the surface center.
It is not normally used, but can be retrieved externally through the Sakura API and similar interfaces.
Center of the surface (height ÷ 2)
The X coordinate where the mushroom appears.
Center of the surface (width ÷ 2)
The Y coordinate where the mushroom appears.
20 pixels below the top edge of the surface (SSP)
The X coordinate of the reference position used when initially positioning or saving the window position.
This can be used to adjust position shifts when switching to an image with a different surface size.
Center of the surface (width ÷ 2)
The Y coordinate of the reference position used when initially positioning or saving the window position.
This can be used to adjust position shifts when switching to an image with a different surface size.
Bottom edge of the surface
For sitting (the --origin=osuwari option of \![set,alignmenttodesktop,osuwari,…]), the X coordinate of the point aligned with another window or the screen rectangle. This is the distance from the left edge of the surface and scales with the surface.
Same as point.basepos.x (if not specified, the default is the center of the surface (width ÷ 2))
For sitting (the --origin=osuwari option of \![set,alignmenttodesktop,osuwari,…]), the Y coordinate of the point aligned with another window or the screen rectangle. This is the distance from the top edge of the surface and scales with the surface.
Same as point.basepos.y (if not specified, the default is the bottom edge of the surface)
Explicitly specifies the clipping rectangle for the face thumbnail (a reduced image cropped from the character's face, used in windows such as the backlog/speech history window).
When specified, this takes precedence over automatic detection using the face or head hit region (see collision).
Unlike automatic face/head detection, the specified rectangle is used as-is, without being enlarged to add margins.
However, the output is square, so it is adjusted to a square based on the longer side of the specified rectangle and centered on the rectangle.
Unspecified (automatically detected from collision face/head)
The surface name. It is treated in the same way as surface.alias and can be used in place of an ID with the \s[] tag.
Undefined
Specifies the cycle and timing (trigger) at which an animation runs, as specified in animation*.interval.
With SSP, multiple animation interval specifications can be combined by listing them separated by "+". Since this feature was originally designed for use with bind, be cautious when using it without bind, even if it appears to work.
Examples of combined specifications follow.
When other specifications are added to bind using "+", bind interval properties such as "ignoring the pattern definition's weight parameter and combining with the base surface as a still image" no longer apply.
Also, for specifications that require a parameter, such as random, periodic, and talk, write the parameter at the end, including when combining specifications.
The following is incorrect.
animation0.interval,random,5+bind
The following is correct.
animation1.interval,bind+random,5
Interval specifications that have parameters cannot be combined with each other.
Plays with a probability of 1 in 2 per second while on that surface.
Plays with a probability of 1 in 4 per second while on that surface.
Plays with a probability of 1 in the specified number per second while on that surface.
Plays periodically at intervals of the specified number of seconds while on that surface.
Loops while this surface is active.
Plays once when switching to the surface.
Does not run automatically. Specify this for animations that only play when called by another animation's start or alternativestart method, or by commands such as \i[*] in Sakura Script.
Runs when \e is encountered in Sakura Script.
Runs while text is being displayed in a balloon on that surface.
The animation runs each time the specified number of characters arrive.
Runs when a talk event begins for the relevant scope.
Specifically, it runs when text starts being spoken in a balloon. (This includes synchronized display using the \_s tag.)
Note that in scripts where the scope switches frequently over a short period, the animation may not run because it cannot keep up.
Runs when a talk in the relevant scope ends.
Specifically, it runs when the scope is switched by a \0, \1, or \p[2] tag and that scope is exited, provided that starttalk has previously been triggered.
Defines the animation as a dressup for the surface.
The methods for compositing and drawing each frame (part) in animation pattern definitions and element definitions.
Rather than compositing images, various methods serve roles such as replacing the base surface (base), moving the base surface (move), and inserting or executing other animations (insert, start, stop, alternativestart, alternativestop).
In dressup definitions, methods that do not composite images (move, insert, start, stop, alternativestart, alternativestop) are disabled (treated as overlay). However, base is effective only when used in the very first pattern, making it possible to replace the base surface only while that dressup is ON.
The dressup methods add and bind are implemented as synonyms for overlay. In dressup, specifying any of these three methods has the same effect.
In element definitions, methods that do not composite images (base, move, insert, start, stop, alternativestart, alternativestop) are disabled (treated as overlay).
The other dressup methods, add and bind, are also disabled (but in the current SSP implementation, disabled values are interpreted as overlay, so the result is drawing as specified).
This is self-evident, but most drawing methods specified for the first element (element0, or later elements if surface*.png does not exist) are equivalent to base. However, the fact that the transparent color is displayed as-is with the asis method remains effective.
Note that when a surface composited from elements is used as an animation part, the result of the element composition is treated as a single image. However, this implementation was introduced in SSP2.3.53; note that it was undefined before that.
The meaning of compositing methods differs between elements, animations, and dressup.
Element definitions are intended to produce a single still image to serve as the base surface. In an element definition, each successive composite is applied to the result of the previous composites, producing a single still image as the final result.
Dressup definitions, like element definitions, are a mechanism for producing a still image, so the process for resolving drawing methods is quite similar to that of element definitions. In a dressup pattern definition, the first pattern is composited onto the base surface, and each subsequent composite is applied to the result of the previous composites, producing a single still image as the final result. Therefore, dressup behaves as if it were integrated with the base surface.
In contrast, regular animations that are not dressup are a video-like representation, so their process differs greatly from the previous two. Each animation pattern definition defines one frame of the animation, and each is independent. Each pattern definition composites the base surface with a new image to create a new frame, so the composite result from the previous pattern definition (previous frame) does not affect the next frame. Drawing new frames one after another in this way produces a video-like representation.
However, in all cases, compositing methods share the function of combining two images, the “original image” and the “new image.” Therefore, for convenience, in the explanations of drawing methods, ukadoc calls the “original image” the base layer, and the latter, the “new image,” the new layer.
Put another way, each animation pattern definition creates a frame by compositing a new layer onto the base surface as the base layer. In contrast, dressup and element composition produce a single still image as the result of repeatedly compositing a new layer onto the result of the previous composites as the base layer.
The top-left pixel of an image is treated as its transparent color, and areas of the same color are transparent when displayed. This also applies to surfaces used in pattern definitions and images used in element definitions.
The RGB values of the transparent colors in the images composited at this point do not need to be identical.
Each drawing method has its own characteristics in how it handles transparent colors; see the relevant sections.
The behavior when a new layer is composited outside the base layer (due to image size or position) is left to the baseware implementation.
In MATERIA, parts that extend beyond the base layer are simply not displayed.
In CROW, compositing in a way that extends beyond the base layer results in incorrect drawing.
SSP allows a new layer to be composited so that it extends beyond the base layer. In this case, fully transparent areas are added to the base layer just enough to prevent the new layer from extending beyond it.
Conversely, areas outside the new layer are empty areas that are different from fully transparent areas, and compositing does nothing, leaving the contents of the base layer unchanged. This is an important premise to understand, especially for the replace and reduce methods, where fully transparent areas of the new layer affect the composite result.
Completely replaces the base surface with the new layer. Collision information is also updated to match the one defined for the frame's surface.
By stacking patterns using this method, an animation that redraws the entire surface (like a flipbook) can be created.
For a pattern definition that specifies this drawing method, the XY coordinates are ignored.
For dressups and elements, the base method can only be used first (element0, pattern0). In all other cases, it is interpreted as overlay.
Simply overlays the new layer onto the base layer.
Can also be used in dressup and elements (in dressup, add and bind have the same effect).
Overlays the new layer according to the opacity of the base layer.
In semitransparent areas of the base layer, the less opaque the area, the more strongly the new layer is composited; fully opaque areas are composited completely, and fully transparent areas are not composited at all.
This is the counterpart to the interpolate method.
Can also be used in dressup and elements.
The word "fast" in the name is historical; processing is not faster.
Stack the new layer using multiply compositing.
Equivalent to the Multiply layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using multiply compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies multiply compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using screen blending.
This corresponds to the Screen layer blending mode in image-editing software such as Photoshop.
This can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using screen blending according to the opacity of the base layer.
Its behavior is the same as overlay-fast: the outline does not change, but screen blending is applied to the current surface instead of overwriting it.
This can also be used with dressup and element.
The “fast” in the name is historical; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using overlay compositing.
Equivalent to the Overlay layer blend mode in image-editing software such as Photoshop.
It is unrelated to the overlay method; dark areas use multiply compositing, while light areas use screen compositing.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using overlay compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies overlay compositing to the current surface instead of overwriting it.
It is unrelated to the overlay method; dark areas use multiply compositing, while light areas use screen compositing.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using additive blending.
Equivalent to the Add layer blending mode in image editing software such as Photoshop.
Can also be used with dressups and elements.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using additive blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and its outline does not change, but it performs additive blending on the current surface instead of overwriting it.
Can also be used with dressups and elements.
The word "fast" in the name is historical; the processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using additive (glow) blending.
Equivalent to the Add Glow layer blending mode in image editing software such as CLIP STUDIO PAINT.
Can also be used with dressups and elements.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using additive (glow) blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and its outline does not change, but it performs additive (glow) blending on the current surface instead of overwriting it.
Can also be used with dressups and elements.
The word "fast" in the name is historical; the processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using soft light blending.
This corresponds to the Soft Light layer blending mode in image-editing software such as Photoshop.
This can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using soft light blending according to the opacity of the base layer.
Its behavior is the same as overlay-fast: the outline does not change, but soft light blending is applied to the current surface instead of overwriting it.
This can also be used with dressup and element.
The “fast” in the name is historical; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Hard Light blending.
This corresponds to the Hard Light layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Hard Light blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Hard Light blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color Dodge blending.
This corresponds to the Color Dodge layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color Dodge blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Color Dodge blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color Dodge (Glow) blending.
This corresponds to the Color Dodge (Glow) layer blending mode in image-editing software such as CLIP STUDIO PAINT (the processing is based on Color Dodge (Glow)).
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color Dodge (Glow) blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Color Dodge (Glow) blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color blending.
This corresponds to the Color layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Color blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Color blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using luminosity compositing.
Equivalent to the Luminosity layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using luminosity compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies luminosity compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using hue compositing.
Equivalent to the Hue layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using hue compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies hue compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using saturation blending.
This corresponds to the Saturation layer blending mode in image-editing software such as Photoshop.
This can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using saturation blending according to the opacity of the base layer.
Its behavior is the same as overlay-fast: the outline does not change, but saturation blending is applied to the current surface instead of overwriting it.
This can also be used with dressup and element.
The “fast” in the name is historical; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using vivid light blending.
This corresponds to the Vivid Light layer blending mode in image-editing software such as Photoshop.
This can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using vivid light blending according to the opacity of the base layer.
Its behavior is the same as overlay-fast: the outline does not change, but vivid light blending is applied to the current surface instead of overwriting it.
This can also be used with dressup and element.
The “fast” in the name is historical; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using linear light compositing.
Equivalent to the Linear Light layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using linear light compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies linear light compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using pin light compositing.
Equivalent to the Pin Light layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using pin light compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies pin light compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using hard mix compositing.
Equivalent to the Hard Mix layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Hard Mix blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Hard Mix blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Darken blending.
This corresponds to the Darken layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Darken blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Darken blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using lighten compositing.
Equivalent to the Lighten layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using lighten compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies lighten compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Darker Color blending.
This corresponds to the Darker Color layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Darker Color blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Darker Color blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using lighter color compositing.
Equivalent to the Lighter Color layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using lighter color compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies lighter color compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using color burn blending.
Equivalent to the Color Burn layer blending mode in image editing software such as Photoshop.
Can also be used with dressups and elements.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlays the new layer using color burn blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and its outline does not change, but it performs color burn blending on the current surface instead of overwriting it.
Can also be used with dressups and elements.
The word "fast" in the name is historical; the processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using linear burn compositing.
Equivalent to the Linear Burn layer blend mode in image-editing software such as Photoshop.
Can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Stack the new layer using linear burn compositing, based on the opacity of the base layer.
Its behavior is the same as overlay-fast and does not change the outline, but it applies linear burn compositing to the current surface instead of overwriting it.
Can also be used with dressup and element.
The word "fast" in the name is due to historical circumstances; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Difference blending.
This corresponds to the Difference layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Difference blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Difference blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Exclusion blending.
This corresponds to the Exclusion layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Exclusion blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Exclusion blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using subtract blending.
This corresponds to the Subtract layer blending mode in image-editing software such as Photoshop.
This can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using subtract blending according to the opacity of the base layer.
Its behavior is the same as overlay-fast: the outline does not change, but subtract blending is applied to the current surface instead of overwriting it.
This can also be used with dressup and element.
The “fast” in the name is historical; processing is not faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Divide blending.
This corresponds to the Divide layer blending mode in image-editing software such as Photoshop.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Divide blending, according to the opacity of the base layer.
Its behavior is the same as overlay-fast, and the outline remains unchanged, but instead of overwriting, it applies Divide blending to the current surface.
It can also be used with dressup and element.
The "fast" in the name is historical; it does not mean that processing is faster.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Overlay the new layer using Dither blending.
It can also be used with dressup and element.
It is recommended to set seriko.use_self_alpha,full in the shell's descript.txt.
Automatically infers the drawing method from layer information, only when used in an element definition with the source option.
Replaces part of the base layer with the new layer.
Even transparent-color areas and semitransparent areas with transparency information overwrite the base layer without preserving its information.
Areas outside the new layer are empty areas, not areas with 100% transparency. No compositing occurs in these areas, and the drawing of the base layer simply remains unchanged.
Can also be used in dressup and elements.
Overlay the new layer according to the transparency of the base layer.
In semitransparent areas of the base layer, the more transparent a part is, the more strongly the new layer is composited; fully transparent areas composite it completely, while opaque areas do not composite it at all.
This method is the counterpart to the overlayfast method.
This can also be used with dressup and element.
Similar to overlay, but overlays the new layer while ignoring its transparency (the transparent color and, if pna or seriko.use_self_alpha is set, the image's own alpha channel).
Can also be used with dressups and elements.
The display result is undefined when an element-composited surface is combined as an animation part of another surface using the asis method. On Windows, however, transparent areas will normally appear black (#000000), regardless of the image's original transparent color.
Offsets the display position of the base layer by the specified coordinates from its original position.
Changes to the display position using move are instantaneous, not continuous.
The positive direction of the x-axis is right, and the positive direction of the y-axis is down.
The surface ID is ignored in a pattern definition that specifies this drawing method.
Cannot be used in dressup or elements.
Note: The move behavior can be disabled in the user settings.
Enlarges or shrinks the character window by the specified magnification.
Only this drawing method allows decimal values for the X and Y coordinates (e.g. 92.5).
The magnification is calculated as follows.
User-specified magnification x \![scaling] tag-specified magnification x scaling animation specification 1 currently in progress x scaling animation specification 2 currently in progress ...
Note 1: Window scaling is very costly, so do not overuse it.
Note 2: Unless there is a special reason, not returning to 100% at the end of an animation may cause bugs.
Note 3: If the feature that disables move is enabled, scaling will also stop working.
Uses the new layer as a dressup part.
This was the only method available when a dressup part could only be a simple overlay of a single surface; add is now its compatible equivalent.
The processing is equivalent to overlay.
Use in non-dressup animations or elements is undefined.
Overlays the new layer on the base layer as a dressup part.
The processing is equivalent to overlay.
Use in non-dressup animations or elements is undefined.
Composites the transparency of the base layer and new layer. Think of it as "cutting out" the base layer using the new layer's transparency information.
The opacity of the base layer and the new layer is multiplied (valid transparent colors are treated as fully transparent areas).
For example, an area with 40% opacity in the base layer and 60% opacity in the new layer becomes an area with 24% opacity = 76% transparency after compositing.
Information other than transparency (RGB values) is simply ignored.
Areas outside the new layer are treated as transparent.
This method was provided for dressup, but can also be used in animations that are not dressup and in elements.
Import the specified APNG, animated GIF, or animated WebP so that it can be played with an initial wait time of weight msec and display position (X,Y).
The imported animation is composited using the overlay method.
This animation runs alongside and can coexist with existing animation definitions.
Only frames and wait times are imported; the “number of repetitions” defined in the original file is ignored.
Inserts the dressup group for the specified ID (the number in animation*'s *) at that position.
This method is intended for dressup; its use with non-dressup animations or elements is undefined.
For example, if dressup A has a structure in which it is partly in front of and partly behind another dressup B, inserting dressup B with insert between the frames of A that go behind B and the frames that go in front of B allows the front-to-back relationship to be displayed naturally. In this case, the display remains complete regardless of whether dressup B is visible or hidden.
Insertion into an insert destination (nesting) is also possible.
However, this only reserves the display order of dressups A and B; it does not forcibly display dressup B.
Whether dressup B is actually displayed depends on whether dressup B is enabled or disabled.
Play the animation for the specified ID (the number of the * in animation*).
In pattern definitions that specify this drawing method, the surface ID, weight, and XY coordinates are ignored.
Cannot be used with dressup or element.
Stops the animation with the specified ID (the number represented by the * in animation*).
In pattern definitions that specify this drawing method, the surface ID, weight, and XY coordinates are ignored.
Cannot be used with dressup or element.
Plays the animation of one of the specified IDs (the number in animation*).\
In pattern definitions that specify this drawing method, the surface ID, weight, and XY coordinates are ignored.
In SSP, it is also read when parentheses are [] and the separator is "." instead of ",".
Cannot be used with dressup or element.
Previous definition:alternativestart,[ID1,ID2...]
Stop the animation for any one of the specified IDs (the numbers for animation*'s *).
In pattern definitions that specify this drawing method, the surface ID, weight, and XY coordinates are ignored.
In SSP, this is also loaded when the brackets are [] and the separator is "." instead of ",".
Cannot be used with dressup or element.
Plays all animations for the specified IDs (the numbers in place of * in animation*).
The surface ID, weight, and XY coordinates are ignored in a pattern definition that specifies this drawing method.
In SSP, square brackets [] and a period "." instead of a comma "," as a separator are also accepted.
Cannot be used in dressup or elements.
Stops all animations for the specified IDs (the numbers in place of * in animation*).
The surface ID, weight, and XY coordinates are ignored in a pattern definition that specifies this drawing method.
In SSP, square brackets [] and a period "." instead of a comma "," as a separator are also accepted.
Cannot be used in dressup or elements.
sakura.surface.alias
{
素,[0]
照れ,[1,101,201]
驚き,[2]
}
For the partner, change the setting to kero.surface.alias or char*.surface.alias (char* is SSP-only).
Up to MATERIA period453, alias braces were specified in a dedicated file named alias.txt rather than in surfaces.txt.
The definitions have since been integrated into surfaces.txt, but compatibility is maintained in both CROW and SSP, so it is also possible to provide a separate alias.txt.
Assigns arbitrary alias IDs to surface IDs.
For example, setting 驚き,[2] makes \s[驚き] mean the same as \s[2].
You can also specify multiple surfaces separated by commas, such as 1,[1,11,21],
in which case \s[1] randomly selects from 1, 11, and 21.
No behavior
sakura.cursor
{
mouseup0,Head,system:hand
mousedown0,Head,system:finger
mouseup1,Bust,system:hand
mousedown1,Bust,system:grip
}
Settings for the other character use kero.cursor and char*.cursor
Sets the cursor file to display when the mouse is over a hit region.
The * must be a number not already used by another mouseup definition in the same scope.
The hit region name is the name set in the collision definition.
Specify a cursor file name (cur/ani) as the file name. Instead of a file name, you can use one of the system cursor specifications described below.
system:finger (system:hand only when the hit region name is bust)
Sets the cursor file to display when a mouse button is pressed over a hitbox.
The * portion is a number that does not duplicate another mousedown definition in the same scope.
The hitbox name is the name set in the collision definition.
Specify a cursor file name (cur/ani) as the file name. Instead of a file name, you can use the system cursor specification described below.
system:finger (system:grip only when the hitbox name is bust)
Sets the cursor file to display when the right mouse button is pressed over a hit region.
The * must be a number not already used by another mouserightdown definition in the same scope.
The hit region name is the name set in the collision definition.
Specify a cursor file name (cur/ani) as the file name. Instead of a file name, you can use one of the system cursor specifications described below.
system:finger
Sets the cursor file to display when the mouse wheel is rotated over a hit region.
The * must be a number not already used by another mousewheel definition in the same scope.
The hit region name is the name set in the collision definition.
Specify a cursor file name (cur/ani) as the file name. Instead of a file name, you can use one of the system cursor specifications described below.
system:arrow
Sets the cursor file to display when the mouse is left still over a hit region for a while.
The * must be a number not already used by another mousehover definition in the same scope.
The hit region name is the name set in the collision definition.
Specify a cursor file name (cur/ani) as the file name. Instead of a file name, you can use one of the system cursor specifications described below.
system:arrow
You can specify these instead of a cursor file to display a variation of the currently used cursor.
Arrow
Cross
Forbidden
Hand
Grabbing hand
Pointing hand
Clock
I
Move
?
sakura.tooltips
{
Bust,怒ります。
Head,つつかれると痛いです。
Shoulder,つつくとコミュニケートボックスを表示します。
}
For the partner's settings, use kero.tooltips and char*.tooltips
Sets the tooltip text to display when the pointer is over the hit-test area.
No behavior
sakura.collisionoption
{
nodrag0,Knob
nodrag1,Bust
nocontextmenu0,Bust
}
For the partner character, use kero.collisionoption or char*.collisionoption.
This brace specifies collision names for which the baseware's default response to mouse operations is disabled.
Because it looks up collisions by name, it applies to names assigned by collision, collisionex, or animation*.collision. Settings apply per name, not per surface. To vary them by surface, use different names.
Do not overuse this feature, as it restricts user operations.
For each specified collision, use mouseup*, mousedown*, mouserightdown*, or similar settings in the cursor brace to specify a cursor that tells users the operation is unavailable.
Prevents window dragging from starting when the left button is pressed over the specified collision.
The * part is a number that must be unique among nodrag definitions in the same scope.
The collision name is the name set in the collision definition. It is case-insensitive.
Do not overuse this feature, as it restricts user operations. Use the cursor brace to specify a cursor that tells users the operation is unavailable.
Not specified (window dragging starts)