-
Notifications
You must be signed in to change notification settings - Fork 0
/
Effects.xml
203 lines (183 loc) · 18.1 KB
/
Effects.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0" encoding="UTF-8"?>
<!--
This section explains how the file can be written.
header:<header_name name="preset_name or preset_names separated by comma">content or contents separated by comma</header_name>
Notes:"header_name" can be "variables", "colors", "paths" or "template". And you can define several "preset_name"s and "content"s only for "template" property.
You must keep "preset_names" and "contents" balanced. In "preset_names" and "contents", spaces before and after comma are ignored.
Content:<piece_type_name property_name="property_value"...>some text</piece_type_name>
<set num="some number" (enable_if="some condition")>[some Effect definitions]</set>
Property names list:{num, enable_if[optional], with, effect, style(for "Label"), x(for "Label"), y(for "Label"), start_time,
end_time(except for "PieceFrameEffect" and "Sound"), rate(for "FadeInEffect", "FadeOutEffect" and "RandomVibrationEffect"),s
amplitude_x(for "RandomVibrationEffect"), amplitude_y(for "RandomVibrationEffect"), frame(for "PieceFrameEffect")
}
Property explanation: num; The pattern number. You can define as many effects as you want for each type of pieces.
enable_if; This property enables the effect only when the condition is met. Condition can be written in the way like mathematical expressions.
And like in some programming languages such as PHP, variables are represented by a dollar sign followed by the name of the variable.
Variables can be defined by yourself with "variables" tags. In addition, the following keywords are preserved for predefined variables.
"now" (followed by a comma and "year", "month", "date", "day" and "hour"), "field" (followed by a comma and "width" and "height"),
"average_coords" (followed by a comma and "x" and "y"), "score", the piece_type name (followed by a comma and a frame name defined in the header/template tag).
with; This property represents that the effect tied with this property will be applied only when a coupling with this type happens.
effect; Effect type. Currently, "Label", "FadeInEffect", "FadeOutEffect", "RandomVibrationEffect" and "Sound" are available.
And the "+" sign enables you to define several effects in a tag.
style; The CSS style applied to the object. It can be written in the same way as CSS.
x; The x coordinates.
y; The y coordinates.
start_time; The time at which the effect happens or start affecting. The value represents the frame counts after the effect is added to EffectManager.
end_time; The time at which the effect ends or end affecting. The value also represents the frame counts after the effect is added to EffectManager.
rate; The rate at which an object fades in or out at one time. Values over 1 or less than 0 are meaningless.
amplitude_x; The amplitude of x. Which means the object will vibrate between (current x coordinates - amplitude_x) and (current x coordinates + amplitude_x).
amplitude_y; The amplitude of y. Which means the object will vibrate between (current y coordinates - amplitude_y) and (current y coordinates + amplitude_y).
color; The color of the text. You can write it in either way below.
"#xxxxxx"(where x is a hexadecimal digit), "rgb(x, y, z)"(where 0 <= x, y, z < 256), "[preset_name defined in header/color section]".
Notes: The text field is only available in "Label". Effect type names are case-sensitive. Brackets can be used for the "frame" field in PieceFrameEffect as syntax sugar.
Brackets mean, in that context, that the argument is a member of the object that the tag refers to. For example, in "<akari effect="PieceFrameEffect" frame="[some_name]">"
the frame field will be interpreted as "$akari.some_name".
-->
<Effects>
<header>
<variables>font_small : medium 'うずらフォント', 'MS ゴシック'; default_font : large 'うずらフォント', 'MS ゴシック'; font_large : x-large 'うずらフォント', 'MS ゴシック';
font_very_large : xx-large 'うずらフォント', 'MS ゴシック'; font_bold : bold large 'うずらフォント', 'MS ゴシック';
</variables>
<colors tags="akari, ayano, chinatsu, chitose, himawari, kyoko, sakurako, yui, COUPLING">rgb(233, 109, 140); rgb(138, 73, 108); rgb(252, 209, 219); rgb(222, 217, 240); rgb(103, 122, 157);
rgb(234, 223, 186); rgb(232, 205, 182); rgb(84, 61, 70); rgb(255, 131, 39)</colors>
<paths names="BANG1, BANG2, BANG3, BANG4, BANG5, BANG6, BANG7, BANG8, AKKARIN, SHINING, VERY_SHINING">sounds/bang1.ogg; sounds/bang2.ogg; sounds/bang3.ogg; sounds/bang4.ogg; sounds/bang5.ogg; sounds/bang6.ogg;
sounds/bang7.ogg; sounds/bang8.ogg; sounds/akkarin.wav; sounds/shining.ogg; sounds/very_shining.ogg</paths>
<template name="akari" style="background-color: #ffffff; border: outset 3px $akari.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; transparent : 4; confused : 5;
crying : 6; shocked : 7; forced_smile : 8; blank : 9; panicked : 10; smiling : 11</template>
<template name="chinatsu" style="background-color: #ffffff; border: outset 3px $chinatsu.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; happy : 4; enchanted : 5;
shocked : 6; angry : 7; disgusted : 8; tricking : 9; refusing : 10</template>
<template name="yui" style="background-color: #ffffff; border: outset 3px $yui.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; angry : 4; confused : 5; bitter_smile : 6; shocked : 7;
struck_dumb : 8</template>
<template name="kyoko" style="background-color: #ffffff; border: outset 3px $kyoko.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; charming : 4; scared : 5; smiling : 6; astonished : 7;
timid : 8; wanting_to_kiss : 9; weeping : 10</template>
<template name="ayano" style="background-color: #ffffff; border: outset 3px $ayano.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; embarrassed : 4; angry : 5; relaxed : 6; flinched : 7</template>
<template name="chitose" style="background-color: #ffffff; border: outset 3px $chitose.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; gone : 4; smiling : 5</template>
<template name="himawari" style="background-color: #ffffff; border: outset 3px $himawari.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; angry : 4; disgusted : 5; doubting : 6</template>
<template name="sakurako" style="background-color: #ffffff; border: outset 3px $sakurako.color; border-radius: 3px; font: $default_font" x="average with margin" y="average with margin">normal : 0; angry : 4; timid : 5; excited : 6</template>
</header>
<set num="1">
<akari effect="Label + FadeInEffect" x="average" y="average" end_time="30" rate="0.1">\アッカリ~ン/</akari>
<akari effect="FadeOutEffect" rate="0.05" end_time="20"></akari>
<akari effect="PieceFrameEffect + Sound" frame="[transparent]" src="$paths.AKKARIN" start_time="0"></akari>
</set>
<ayano num="1" effect="Label" end_time="30">最後までやらなきゃ罰金バッキンガムよ!</ayano>
<chinatsu num="1" effect="Label" end_time="30">今日はチーナ、みんなのためにがんばっちゃいま~す!</chinatsu>
<chitose num="1" effect="Label" end_time="30">ほなうちは、妄想する準備しとくわ~</chitose>
<himawari num="1" effect="Label" end_time="30">この調子でわたくしと生徒会副会長を目指しましょう!</himawari>
<kyoko num="1" effect="Label" end_time="30">\ラムレーズン!/</kyoko>
<kyoko num="2" effect="Label" end_time="30">\きらきらにゃ~んにゃ~ん/</kyoko>
<sakurako num="1" effect="Label" end_time="30">絶対生徒会副会長の座は向日葵にはやらないもん!</sakurako>
<yui num="1" effect="Label" end_time="30">・・本当に私でよかったの?</yui>
<yui num="2" effect="Label" end_time="30">えっと・・先に帰るね?</yui>
<!-- ちなつとあかり -->
<set num="1">
<akari with="chinatsu" effect="Label + FadeInEffect" end_time="20" rate="0.1">\アッカ・・・</akari>
<chinatsu with="akari" effect="Label" end_time="15">あかりちゃ~ん</chinatsu>
<chinatsu with="akari" effect="Label" start_time="15" end_time="40">またキスの練習しよ~</chinatsu>
<akari with="chinatsu" effect="Label + PieceFrameEffect" frame="[confused]" start_time="20" end_time="40">えええええ!?</akari>
</set>
<set num="2">
<chinatsu with="akari" effect="Label" end_time="30">あかりちゃ〜ん!今日は特別にあかりちゃんのしてほしいことをなんでもしてあげる!</chinatsu>
<akari with="chinatsu" effect="Label" start_time="15" end_time="40">え、で、でも・・・</akari>
<chinatsu with="akari" effect="Label" start_time="30" end_time="50">も〜、ほんとに遠慮なんかしなくてもいいんだよ〜。例えばマッサージとかでも</chinatsu>
<akari with="chinatsu" effect="Label + PieceFrameEffect" frame="[confused]" start_time="40" end_time="60">え、遠慮なんかしてなーー</akari>
<chinatsu with="akari" effect="Label + PieceFrameEffect" frame="[enchanted]" start_time="50" end_time="80">そうだ!耳かきしてあげる!</chinatsu>
<akari with="chinatsu" effect="Label + PieceFrameEffect" style="font: $font_large" frame="[panicked]" start_time="60" end_time="80">え!?ほ、ホントにいいです!</akari>
</set>
<!--***************-->
<!-- 結衣とちなつ -->
<set num="1">
<chinatsu with="yui" effect="Label + PieceFrameEffect" style="font: $font_large" frame="[happy]" start_time="0" end_time="20">きゃ~結衣せんぱぁ~い!</chinatsu>
<chinatsu with="yui" effect="Label" start_time="20" end_time="40">結衣先輩と一緒に消えれるなんてこの上ない幸せですぅ~!</chinatsu>
<chinatsu with="yui" effect="Label + PieceFrameEffect + Sound" style="font: $font_large" frame="[enchanted]" src="$paths.VERY_SHINING" start_time="40" end_time="60">もう私、このまま天からお迎えが来ちゃってもいいかも・・・</chinatsu>
<yui with="chinatsu" effect="Label + PieceFrameEffect" frame="[bitter_smile]" start_time="40" end_time="60">いや、それは私が困るから・・・</yui>
</set>
<!--****************-->
<!-- 結衣と京子 -->
<set num="1">
<kyoko with="yui" effect="Label" end_time="20">どうも~、キョッピー&ユッピーで~す!CMのあと・・・</kyoko>
<kyoko with="yui" effect="Label" start_time="25" end_time="45">もしかしたら何かネタやるかも!</kyoko>
<yui with="kyoko" effect="Label" start_time="30" end_time="45">あの挨拶はなんだったんだよ!っていうかCMってなに?!</yui>
</set>
<!--****************-->
<set num="2">
<kyoko with="yui" effect="Label" end_time="15">\きらきらにゃ~んにゃ~ん/</kyoko>
<yui with="kyoko" effect="Label + PieceFrameEffect" frame="[struck_dumb]" start_time="5" end_time="20">・・いきなりどうした</yui>
<kyoko with="yui" effect="Label" style="font: $font_large" start_time="20" end_time="40">\きらきらにゃ~んにゃ~ん/</kyoko>
<yui with="kyoko" effect="Label + PieceFrameEffect" style="font: $font_very_large" frame="[angry]" start_time="25" end_time="40">少し黙れよ!</yui>
</set>
<!--****************-->
<set num="3" enable_if="12 = $now.month or $now.month < 3">
<kyoko with="yui" effect="Label" end_time="20">いや~、すっかり冬ですな~</kyoko>
<yui with="kyoko" effect="Label" end_time="20">なんだよ、改まっちゃって。京子らしくないな</yui>
<kyoko with="yui" effect="Label" start_time="20" end_time="40">いや~、ずいぶん寒くなったなと思って</kyoko>
<yui with="kyoko" effect="Label" start_time="20" end_time="40">そりゃあ、冬だからな</yui>
<kyoko with="yui" effect="Label + PieceFrameEffect + Sound" frame="[charming]" src="$paths.SHINING" start_time="40" end_time="60">みんな、手うがしようね!</kyoko>
<yui with="kyoko" effect="Label" start_time="40" end_time="60">それが言いたいだけかよ!</yui>
</set>
<!--****************-->
<set num="4" enable_if="$kyoko.y <= $field.height / 3">
<kyoko with="yui" effect="Label + PieceFrameEffect" frame="[scared]" start_time="0" end_time="20">わ〜ん、結衣〜、高いとこ怖いよ〜</kyoko>
<yui with="kyoko" effect="Label" end_time="20">え?お前ってそんなキャラだったっけ・・?</yui>
<kyoko with="yui" effect="Label" start_time="20" end_time="40">わ〜ん、結衣ひどいよぉ〜。あたしだってか弱い女の子なんだよ?</kyoko>
<yui with="kyoko" effect="Label + PieceFrameEffect" style="border-radius: 15px" frame="[confused]" start_time="20" end_time="40">(これってまさか・・昔の京子に戻ってしまったんじゃ・・・)</yui>
<kyoko with="yui" effect="Label + PieceFrameEffect + Sound" frame="[charming]" src="$paths.VERY_SHINING" start_time="60" end_time="80">うっそぴょ〜ん♪</kyoko>
<yui with="kyoko" effect="Label + PieceFrameEffect" style="font: $font_very_large" frame="[angry]" start_time="70" end_time="90">私の心配を返せ!</yui>
</set>
<!--****************-->
<!-- 京子と綾乃 -->
<set num="1">
<ayano with="kyoko" effect="Label" style="font: $font_large" end_time="20">としのーきょーこー!</ayano>
<kyoko with="ayano" effect="Label" start_time="5" end_time="20">なぁに~、あやの~</kyoko>
<ayano with="kyoko" effect="Label + PieceFrameEffect" style="border-radius: 15px" frame="[flinched]" start_time="20" end_time="40">(ととと、歳納京子!?なんでいるのよ・・・)</ayano>
<ayano with="kyoko" effect="Label" style="border-radius: 15px" start_time="40" end_time="60">(誰もいないと思ってたから叫んでしまったわ・・・)</ayano>
<ayano with="kyoko" effect="Label + PieceFrameEffect" frame="[embarrassed]" start_time="60" end_time="80">な、なんでもないわ。今のは忘れて</ayano>
<kyoko with="ayano" effect="Label + PieceFrameEffect" frame="[astonished]" start_time="60" end_time="80">変な綾乃</kyoko>
</set>
<!--****************-->
<!-- 結衣とあかり -->
<set num="1">
<akari with="yui" effect="Label + FadeOutEffect" end_time="20" rate="0.05">\アッカリ~ン/</akari>
<akari with="yui" effect="FadeOutEffect" rate="0.05" end_time="20"></akari>
<akari with="yui" effect="PieceFrameEffect" frame="[transparent]" start_time="0"></akari>
<yui with="akari" effect="Label" end_time="20">あかり~!</yui>
<yui with="akari" effect="Label + PieceFrameEffect" frame="[bitter_smile]" start_time="20" end_time="40">ホント不憫な子・・・</yui>
</set>
<!--****************-->
<!-- 向日葵と櫻子 -->
<set num="1">
<sakurako with="himawari" effect="Label" end_time="20">ああ~、勉強疲れた~。中学生やめたい~</sakurako>
<himawari with="sakurako" effect="Label + PieceFrameEffect" frame="[disgusted]" start_time="20" end_time="40">何言ってるんですの。中学生をやめられるはずないでしょう</himawari>
<sakurako with="himawari" effect="Label + PieceFrameEffect" frame="[timid]" start_time="40" end_time="60">じゃあ早く大人になりたい~</sakurako>
<himawari with="sakurako" effect="Label" start_time="60" end_time="90">あなたみたいなのが大人になったら、社会が迷惑しますわ</himawari>
</set>
<!--****************-->
<!-- 千歳と綾乃 -->
<set num="1">
<ayano with="chitose" effect="Label" end_time="20">千歳~</ayano>
<chitose with="ayano" effect="Label + PieceFrameEffect" frame="[gone]" start_time="0" end_time="20">うふふふふ・・・</chitose>
<ayano with="chitose" effect="Label" style="border-radius: 15px" start_time="20" end_time="40">(あ~あ、また自分の世界に行っちゃってるわ、この子)</ayano>
<ayano with="chitose" effect="Label + PieceFrameEffect" frame="[relaxed]" style="border-radius: 15px" start_time="40" end_time="60">(でも、あなたがそばにいてくれるとなんだか心が落ち着くのよね)</ayano>
<ayano with="chitose" effect="Label" style="border-radius: 15px" start_time="60" end_time="80">(ありがとね、千歳)</ayano>
</set>
<!--****************-->
<!-- 京子とちなつ -->
<set num="1">
<kyoko with="chinatsu" effect="Label + PieceFrameEffect" frame="[wanting_to_kiss]" end_time="20">ちなちゅ〜、ちゅっちゅー!</kyoko>
<chinatsu with="kyoko" effect="Label + PieceFrameEffect" frame="[refusing]" end_time="20">ちょっと、京子先輩!やめてください</chinatsu>
<kyoko with="chinatsu" effect="Label + PieceFrameEffect" frame="[timid]" start_time="20" end_time="40">え~、ちょっとぐらいいいじゃ~ん</kyoko>
<chinatsu with="kyoko" effect="Label + PieceFrameEffect" frame="[angry]" start_time="40" end_time="60">よくないです!</chinatsu>
</set>
<!--****************-->
<!-- 京子とあかり -->
<set num="1">
<akari with="kyoko" effect="Label" end_time="20">\アッカリ~ン/</akari>
<akari with="kyoko" effect="PieceFrameEffect + FadeOutEffect" rate="0.05" frame="[transparent]" start_time="0" end_time="20"></akari>
<kyoko with="akari" effect="Label" end_time="20">あかり~</kyoko>
<kyoko with="akari" effect="Label + PieceFrameEffect" frame="[astonished]" start_time="20" end_time="40">あかり!?あかり~!</kyoko>
<kyoko with="akari" effect="Label + PieceFrameEffect" style="font: $font_small" frame="[weeping]" start_time="40" end_time="60">例えこの世から消えてなくなろうと、私たちは一生忘れたりしないよ、あかり・・・</kyoko>
<akari with="kyoko" effect="Label" style="font: $font_large" start_time="50" end_time="70">京子ちゃん、あかり死んでないよ!死んでないから~!</akari>
<akari with="kyoko" effect="PieceFrameEffect + OpacityChangeEffect" value="1" frame="[crying]" start_time="50"></akari>
</set>
<!--****************-->
</Effects>