-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
RS_MessageSystem.js
6518 lines (5986 loc) · 231 KB
/
RS_MessageSystem.js
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//================================================================
// RS_MessageSystem.js
// ---------------------------------------------------------------
// The MIT License
// Copyright (c) 2015 biud436
// ---------------------------------------------------------------
// Free for commercial and non commercial use.
//================================================================
/*:
* RS_MessageSystem.js
* @plugindesc (v0.1.9) Hangul Message System <RS_MessageSystem>
* @author biud436
*
* @param Font Size
* @type number
* @desc Specifies the text size as integer type.
* (default : 28)
* @default 28
*
* @param numVisibleRows
* @type number
* @desc Sets the number of rows to indicate in a message window.
* @default 4
* @min 1
* @param gradientColor1
* @desc Sets needed gradient color for the start point of the gradient text.
* @default #FFFFFF
*
* @param gradientColor2
* @desc Sets needed gradient color for the middle point of the gradient text.
* @default #F29661
*
* @param gradientColor3
* @desc Sets needed gradient color for the ended point of the gradient text.
* @default #CC3D3D
*
* @param Text Speed
* @type number
* @desc Sets the default text speed
* @default 0
* @min 0
*
* @param Text Min Size
* @type number
* @desc limits the text size by specifying the minimum text size when using the text code called '\}'.
* @default 24
*
* @param Text Max Size
* @type number
* @desc limits the text size by specifying the maximum text size when using the text code called '\{'.
* @default 96
*
* @param Text Start X
* @type number
* @desc The starting x position of the text in case of using a large face bitmap.
* @default 6
*
* @param Bust Option
*
* @param Big Face OX
* @parent Bust Option
* @type number
* @desc Sets the large face bitmap's offset x
* @default 0
*
* @param Big Face OY
* @parent Bust Option
* @type number
* @desc Sets the large face bitmap's offset y
* @default 0
*
* @param face Opacity
* @parent Bust Option
* @text Big Face Opacity
* @type number
* @desc Set the opacity of the large face.
* (0 - 255)
* @default 255
*
* @param Show Big Face Back
* @text Face Z-Index
* @parent Bust Option
* @type boolean
* @desc if true, the bust image'll show behind the background of the message window.
* @default false
* @on true
* @off false
*
* @param face Direction
* @parent Bust Option
* @text Face Position
* @type select
* @desc Specify the position of the normal face image.
* @default 0
* @option Left
* @value 0
* @option Right
* @value 2
*
* @param Face Smooth
* @text Face Smooth
* @type boolean
* @parent Bust Option
* @desc if true, the face bitmap shows up the smoothly.
* @default true
* @on true
* @off false
*
* @param Tab Size
* @type number
* @desc Sets the maximum width for tabs.
* @default 4
*
* @param back Opacity
* @type number
* @desc Sets the opacity of the message window for backgrounds.
* @default 192
*
* @param default Opacity
* @type number
* @desc Sets the default opacity of the message window.
* @default 255
*
* @param contents Opacity
* @type number
* @desc Sets the opacity of the message window for all contents.
* @default 255
*
* @param translucent Opacity
* @type number
* @desc Sets the translucent opacity of the message window.
* @default 160
*
* @param default outline width
* @type number
* @desc Specifies the maximum width for text borders.
* @default 2
*
* @param default outline Color
* @desc Specifies the color for text borders.
* @default rgba(0, 0, 0, 1.0)
*
* @param Default Windowskin
* @desc Specifies a window skin to message window
* @require 1
* @default Window
* @dir img/system/
* @type file
*
* @param System Font Settings
*
* @param systemFont
* @parent System Font Settings
* @text System Font
* @type struct<SystemFont>
* @desc The font is setting up as the system font.
* @default {"settings":"[\"{\\\"languageCode\\\":\\\"ko\\\",\\\"fontName\\\":\\\"나눔고딕, Dotum, AppleGothic, sans-serif\\\"}\",\"{\\\"languageCode\\\":\\\"zh\\\",\\\"fontName\\\":\\\"SimHei, Heiti TC, sans-serif\\\"}\"]"}
*
* @param Custom Font
*
* @param Using Custom Font
* @parent Custom Font
* @type boolean
* @desc Do you wish to use a custom font?
* @default false
*
* @param Custom Font Name
* @parent Custom Font
* @desc Specifies the name for fonts
* @default NanumBrush
*
* @param Custom Font Src
* @parent Custom Font
* @desc Specifies the file path for fonts
* @default fonts/NanumBrush.ttf
*
* @param Choice Window
*
* @param Choice Style
* @parent Choice Window
* @type select
* @desc Can change as the desired choice window style
* @default default
* @option RMXP Style
* @value RMXP
* @option Default Style
* @value default
*
* @param Default Choice Position
* @parent Choice Window
* @type select
* @desc Set the position of the choice window.
* @default right
* @option Right (Default)
* @value right
* @option Middle (Center)
* @value middle
* @option Left
* @value left
*
* @param Name Window
*
* @param Name Windowskin
* @parent Name Window
* @desc Specifies a window skin for a name window
* @require 1
* @default Window
* @dir img/system/
* @type file
*
* @param Name Window X
* @parent Name Window
* @type number
* @desc Sets the name window's offset x by dx.
* @default 0
*
* @param Name Window Y
* @parent Name Window
* @type number
* @desc Sets the name window's offset y by dy.
* @default 0
*
* @param Name Window Inner Padding
* @parent Name Window
* @type number
* @desc Sets the name window's inner padding
* @default 10
*
* @param Name Window Position
* @parent Name Window
* @type select
* @desc The name window's position sets up as certain position in message window
* @default left
* @option Top of left (default)
* @value left
* @option Top of right
* @value right
*
* @param Text Color
* @type struct<TextColor>[]
* @desc This allows you to add desired text color.
* @default ["{\"Color Name\":\"c_lviolet \",\"Red\":\"200\",\"Green\":\"191\",\"Blue\":\"231\",\"Alpha\":\"1.0\"}"]
*
* @param Text Code
* @type struct<TextCode>
* @desc Can change with desired text codes
* @default {"Korean":"[\"색\",\"속도\",\"테두리색\",\"테두리크기\",\"들여쓰기\",\"굵게!\",\"이탤릭!\",\"이름\",\"그레디언트\",\"파티원\",\"주인공\",\"변수\",\"아이콘\",\"확대!\",\"축소!\",\"골드\",\"말풍선\",\"정렬자\",\"숫자\",\"크기\",\"탭!\",\"캐리지리턴!\",\"효과음\",\"그림표시\",\"그림제거\",\"아이템\",\"무기구\",\"방어구\",\"직업\",\"적군\",\"상태\",\"스킬\",\"얼굴\",\"아군\",\"적그룹\",\"[.]\",\"[|]\",\"[!]\",\"[<]\",\"[>]\",\"[\\\\^]\",\"AS굵게!\",\"AE굵게!\",\"AS이탤릭!\",\"AE이탤릭!\",\"LEFT\",\"CENTER\",\"RIGHT\",\"B\",\"B\",\"I\",\"I\",\"AEND\",\"배경색\",\"FD\"]","Chinese":"[\"色\",\"速度\",\"轮廓颜色\",\"轮廓宽度\",\"缩进\",\"加粗!\",\"倾斜!\",\"名字\",\"渐变颜色\",\"队伍成员\",\"角色\",\"变量\",\"图标\",\"增大!\",\"减少!\",\"金币\",\"对话框\",\"对齐\",\"数\",\"大小\",\"TAB!\",\"CR!\",\"音效播放\",\"显示图像\",\"隐藏图像\",\"道具\",\"武器\",\"装甲\",\"职业\",\"敌人\",\"状态\",\"技能\",\"脸\",\"我军\",\"敌人组\",\"[.]\",\"[|]\",\"[!]\",\"[<]\",\"[>]\",\"[\\\\^]\",\"AS加粗!\",\"AE加粗!\",\"AS倾斜!\",\"AE倾斜!\",\"左\",\"中間\",\"右\",\"B\",\"B\",\"I\",\"I\",\"AEND\",\"HC\",\"FD\"]","English":"[\"COLOR\",\"TEXT_SPEED\",\"OUTLINE_COLOR\",\"OUTLINE_WIDTH\",\"INDENT\",\"BOLD!\",\"ITALIC!\",\"NAME\",\"GRADIENT\",\"PARTY_MEMBER\",\"PLAYER\",\"VAR\",\"ICON\",\"INCREASE!\",\"DECREASE!\",\"GOLD\",\"BALLOON\",\"ALIGN\",\"NUM\",\"TEXT_SIZE\",\"TAB!\",\"CR!\",\"PLAY_SE\",\"SHOW_PICTURE\",\"HIDE_PICTURE\",\"ITEM\",\"WEAPON\",\"ARMOR\",\"CLASSES\",\"ENEMY\",\"STATE\",\"SKILL\",\"FACE\",\"FRIENDLY_TROOPS\",\"ENEMY_TROOPS\",\"[.]\",\"[|]\",\"[!]\",\"[<]\",\"[>]\",\"[\\\\^]\",\"ASBOLD!\",\"AEBOLD!\",\"ASITALIC!\",\"AEITALIC!\",\"LEFT\",\"CENTER\",\"RIGHT\",\"B\",\"B\",\"I\",\"I\",\"AEND\",\"HC\",\"FD\"]","Japanese":"[\"色\",\"テキストスピード\",\"輪郭の色\",\"輪郭のサイズ\",\"インデント\",\"太字!\",\"斜体!\",\"名前\",\"グラデーション\",\"パーティーメンバー\",\"アクタ\",\"変数\",\"アイコン\",\"INCREASE!\",\"DECREASE!\",\"通貨単位表示\",\"フキダシ\",\"整列\",\"数字\",\"テキストのサイズ\",\"TAB!\",\"CR!\",\"効果音\",\"ピクチャの表示\",\"ピクチャの消去\",\"アイテム\",\"武器\",\"防具\",\"職業\",\"敵キャラ\",\"ステート\",\"スキル\",\"顔\",\"FRIENDLY_TROOPS\",\"ENEMY_TROOPS\",\"[.]\",\"[|]\",\"[!]\",\"[<]\",\"[>]\",\"[\\\\^]\",\"AS太字!\",\"AE太字!\",\"AS斜体!\",\"AE斜体!\",\"LEFT\",\"CENTER\",\"RIGHT\",\"B\",\"B\",\"I\",\"I\",\"AEND\",\"HC\",\"FD\"]"}
*
* @param Sound Effects
*
* @param Text Sound ON/OFF
* @parent Sound Effects
* @type boolean
* @default true
*
* @param Text Sound
* @parent Sound Effects
* @type file
* @dir audio/se/
* @desc Plays back the text sound when processing for each text.
* @default Cursor1
* @require 1
*
* @param Text Sound Execution Condition
* @parent Sound Effects
* @type note
* @desc Make the probability to play the text sound.
* @default "Math.randomInt(100) < 45"
*
* @param Text Sound Pool Size
* @parent Sound Effects
* @type number
* @desc Specify the size of the text sound pool.
* @default 2
* @min 1
*
* @param Text Sound Interval
* @parent Sound Effects
* @type number
* @desc Specify the text sound interval.
* @default 2
* @min 1
*
* @param Text Sound Volume
* @parent Sound Effects
* @type note
* @desc Make the volume of the text sound by the random value that is float between 0.0 and 1.0
* @default "0.4"
*
* @param Language Code
* @type select
* @desc Specify the language code of the text codes.
* @default en
* @option English
* @value en
* @option Korean
* @value ko
* @option Japanese
* @value ja
* @option Chinese
* @value zh
*
* @param preload windowskin
* @require 1
* @dir img/system/
* @type file[]
* @desc preload windowskin files
* @default
*
* @param Window Width
* @text Window Width
* @type string
* @desc Specify the window width
* (Graphics.boxWidth is the same as the screen width)
* @default Graphics.boxWidth
*
* @param Gradient Style
* @text Gradient Style
* @type select
* @desc Specify the gradient style.
* @default linear-horizontal
* @option linear-horizontal
* @value linear-horizontal
* @option axial-horizontal
* @value axial-horizontal
* @option linear-vertical
* @value linear-vertical
* @option axial-vertical
* @value axial-vertical
* @option radial
* @value radial
*
* @param Paragraph Minifier
* @text Automatic New Line
* @type boolean
* @desc Specify whether the word wrap is used.
* (The default value is to false)
* @default false
* @on true
* @off false
*
* @help
* //! ===================================================================
* //! Introduction
* //! ===================================================================
* This plugin allows you to use text codes in English, Korean, Chinese, Japanese.
*
* To send me general feedback, simply send an e-mail to biud436(gmail.com)
* and mention the plugin name via the subject of your message.
*
* But, This plugin also provide the text codes in English instead of Korean.
* To use the text codes in English,
* You must set with 'en' in the plugin parameter named 'Language Code'
*
* English Text Codes :
*
* \COLOR[html_color_name]
* \TEXT_SPEED[value]
* \OUTLINE_COLOR[color_name]
* \OUTLINE_WIDTH[value]
* \INDENT[value]
* \BOLD!
* \ITALIC!
* \NAME<event_name>
* \GRADIENT<text>
* \PARTY_MEMBER[nth]
* \PLAYER[nth]
* \VAR[nth]
* \ICON[nth]
* \INCREASE!
* \DECREASE!
* \GOLD
* \BALLOON[event_id]
* \BALLOON[0]
* \BALLOON[-1]
* \ALIGN[1]
* \ALIGN[2]
* \NUM[number]
* \TEXT_SIZE[number]
* \TAB!
* \CR!
* \PLAY_SE<se_name>
* \SHOW_PICTURE<nth, picture_name, origin_number, x, y>
* \HIDE_PICTURE[nth]
* \ITEM[nth]
* \WEAPON[nth]
* \ARMOR[nth]
* \CLASSES[nth]
* \ENEMY[nth]
* \STATE[nth]
* \SKILL[nth]
* \FACE<face_name,face_index>
* \FRIENDLY_TROOPS[nth]
* \ENEMY_TROOPS[nth]
* <B></B>
* <I></I>
* <LEFT></LEFT>
* <CENTER></CENTER>
* <RIGHT></RIGHT>
* \HC[color_name]
* \FD[face_position]
*
* //? ===================================================================
* //? Opening the name window
* //? ===================================================================
* The name window is executed once before all the text codes start.
* and automatically transforms the name window to fit the width of the text area.
*
* To open the name window, do as follows.
* You put the name text between Less-than sign and Greater-than sign.
*
* \NAME<text>
*
* You can add a certain command by attaching a colon(:) at the end of the name text.
* To change the position of the name window, as follows.
*
* \NAME<text:left>
* \NAME<text:right>
* \NAME<text:center>
*
* To change the opacity of the name window, as follows.
*
* \NAME<text:opacity0>
* \NAME<text:defaultOpacity>
*
* To set the name window above the speech balloon, as follows
*
* \BALLOON[0]\NAME<eric>\COLOR[red]hello?
*
* To change the text color in the name window, as follows
*
* \NAME<\COLOR[red]eric>
*
* //? ===================================================================
* //? Opening the speech balloon window
* //? ===================================================================
* The speech balloon window is executed once before all the text codes start.
* and transforms the message window to fit with a target sprite and changes the position of it, too.
*
* To create a new speech balloon window and indicate, do as follows.
*
* You put the index between square brackets.
* if the index sets to 0, it'll set to a current event.
* if the index sets to -1, it'll set to a player.
*
* \BALLOON[event_id]
* \BALLOON[0] ** current event
* \BALLOON[-1] ** player
*
* In the battle, To indicate the window in above the battler, do as follows.
* it can obtain the nth battler of the party members and indicate the message window.
*
* \FRIENDLY_TROOPS[nth]
* \FRIENDLY_TROOPS[1] is the same as \BALLOON[1] and it can obtain the second FRIENDLY battler.
* \FRIENDLY_TROOPS[2] is the same as \BALLOON[2]
*
* This can obtain the nth battler of the enemy troops and indicate the message window.
*
* \ENEMY_TROOPS[nth]
* \ENEMY_TROOPS[1] is the same as \BALLOON[-1]
* \ENEMY_TROOPS[2] is the same as \BALLOON[-2]
*
* Note that it will appear as the normal message window if the battler is in a dead state or does not exist.
*
* \BALLOON[1] // party member 1
* \BALLOON[2] // party member 2
* \BALLOON[3] // party member 3
* \BALLOON[4] // party member 4
* \BALLOON[5] // if the party member 5 is not existed, the target sets as party member 4.
* \BALLOON[-1] // enemy 1
* \BALLOON[-2] // enemy 2
*
* In the battle, it must put a negative or positive numbers between square brackets.
* if you put to 0, it indicates as the normal message window.
*
* \BALLOON[0] // normal message window
*
* //? ===================================================================
* //? Changing the text speed.
* //? ===================================================================
* This text code is applied once in the one page so in the other page has been invalid.
*
* To change the text speed in the message window, as follows.
*
* \TEXT_SPEED[frame]
*
* You put the speed value between square brackets.
* if the value is to 0, The text will be drawn without delay.
* if the value is to 1, The text will be drawn every 1 frame.
*
* Note that it will be reset with initial value when starting the next page.
*
* //? ===================================================================
* //? Making the bold and the italic text.
* //? ===================================================================
* To change the font setting, it is possible to do bold and italic
* settings by using a html tag such as <B></B><I></I>.
*
* For Example, you could use the following things.
*
* \BALLOON[0]\NAME<Wanderers>Hello. <B>Eric.</B> <I>Welcome to the game.</I>
*
* //? ===================================================================
* //? Indenting the text
* //? ===================================================================
* To indent the text in the current page, as follows.
* you can put the number for indent between square brackets.
*
* \INDENT[value]
*
* For instance, you are possible to use as follows.
*
* \indent[10]Leaves change their color in the fall
*
* Notice that the indent settings resets with initial value in the next page starts up.
*
* //? ===================================================================
* //? A Text Alingment
* //? ===================================================================
* You can use a html tag such as <CENTER>, <LEFT>, <RIGHT> in the message window.
* For instance, You can use as follows.
*
* <CENTER>The god appeared in the from of a fairy</CENTER>
* <RIGHT>The robbers hid in the bushes and fell on me from four sides.</RIGHT>
*
* //? ===================================================================
* //? Setting the standing CG.
* //? ===================================================================
* This plugin allows you to show up the large face image on the message window.
*
* To set the large face image that means the standing CG,
* You must place Big_*.png that starts with prefix called Big_ from the img/faces folder
* on your root project folder.
*
* so it will be going to create using img/faces/Big_*.png
*
* and then you select the face index that can set the position of it.
*
* The face image has an index, as follows:
*
* 0 1 2 3
* 4 5 6 7
*
* For instance,
* if the face index is to 0, the face image will show up on the left of message window.
* if the face index is to 1 or more, the face image will show up on the right of message window.
*
* To change a standing CG after the message window starts up, you can use this text code.
*
* \FACE<face_name,face_index>
*
* You put the face name and face index between Less-than sign and Greater-than sign, as follows
*
* \FACE<Big_ScaredActor,0>
*
* But, this text code should be used for a special purpose.
* You should preload the face image because loading image is the asynchronous.
* Otherwise, You will not be going to show anything.
*
* //? ===================================================================
* //? Changing the position of face image.
* //? ===================================================================
* To change the face image to the right side of message window, as follows.
*
* You can use the text code called \FD[2] or
* use the plugin command called 'Message facePos 2'
*
* To show up the face image again to the left side on the message window,
* You can use the text code called \FD[0] or use the plugin command called 'Message facePos 0'
*
* //? ===================================================================
* //? Dealing with colors
* //? ===================================================================
* You can various color code such as web hex code or built-in color.
* it can use them everywhere that can use text codes.
*
* \COLOR[c_red]
* \COLOR[c_silver]
* \COLOR[c_normal]
* \COLOR[#ffffff]
* \COLOR[aqua]
* \COLOR[rgb(255, 0, 0)]
*
* \OUTLINE_COLOR[color_name]
*
* To change the background color of your text area, do as follows.
* \HC[color_name]
*
* To use web colors, you must pass hex format like as #RRGGBB.
* For example, the lime color is to \COLOR[#00FF00] or \COLOR[lime]
*
* //! ===================================================================
* //! Plugin Commands
* //! ===================================================================
*
* Changes the text speed. The n is the delay frame of each character:
*
* Message textSpeed [n]
*
* Message fontSize [n]
*
* Changes the offset position of the message window. the n is the number value:
*
* Message offsetX [n]
* Message offsetY [n]
*
* Message minFontSize [n]
* Message maxFontSize [n]
*
* Changes the number of lines in which it appears on the message window.
* Notice that the number of lines must restore as default value after changing lines:
*
* Message line [n]
*
* Message textStartX [n]
*
* Changes the offset or the padding of the name window in which it appears above the message window.
* Message name x [n]
* Message name y [n]
* Message name padding [n]
*
* Changes the windowskin in which it appears on the name window.
* Notice that you need to preload the window skin before starting the name window.
* if not, it can fail to correctly get the text color table inside the window skin.
* Message name windowskin [...]
*
* Changes the offset of the large face image in which it appears on the screen.
* Message faceOX [n]
* Message faceOY [n]
*
* Changes the large face image's z-index in which it appears on the message window.
* if the z-index is to 0, the face image will show up in front of the message window.
* if it is to -1, the face image will show up behind the background image of the message window.
*
* Message faceZ -1
* Message faceZ [n]
*
* Changes the position of the normal face image in which it appears on the message window.
* By default, the face image will be located at the left side of the message window.
* if you use this plugin command, you can change the position of the face image.
* if the value is to 2, it will be located at the right side of the message window.
* if the value is t0 0, it will be located at the left side of the message window.
*
* Message facePos [n]
*
* Changes the size of the tab, which adds a space when you are used the text code called '\TAB!'
* Message setTabSize [n]
*
* Message backgroundOpacity [n]
* Message contentsOpacity [n]
*
* Changes the windowskin in which it appears on the message window.
* Notice that you need to preload the window skin before starting the message window.
* if not, it can fail to correctly get the text color table inside the window skin.
*
* Message windowskin [...]
*
* Changes the word wrap settings.
* if true, it will be going to remove a custom line break in all of lines and it fills the texts finely.
*
* Message minifier true
* Message minifier false
*
* The face image displays always smoothy on the message window.
* if you want to display the face image smoothly, you can use this plugin command.
* if not, you can pass parameter named 'false' to this plugin command.
*
* Message faceSmooth true
* Message faceSmooth false
*
* ======================================================================================================
* Change Log
* =======================================================================================================
* 2024.03.09 (v0.1.9) :
* - Fixed readability issues with some code.
* 2024.01.16 (v0.1.7) :
* - fixed the issue that is not compatible with SRD_TranslationEngine.js
* 2022.01.25 (v0.1.67) :
* - added a new feature that can set the anti-aliasing(smooth) or aliasing of bust shot.
* 2021.06.29 (v0.1.66) :
* - Fixed the bug that is incorrect function name called "self.loadWindowSkin"
*
*/
/*~struct~TextCode:
*
* @param Korean
* @type string[]
* @desc Can specify the desired text code as Korean.
* (This will be used when the system language is in Korean)
* @default ["색","속도","테두리색","테두리크기","들여쓰기","굵게!","이탤릭!","이름","그레디언트","파티원","주인공","변수","아이콘","확대!","축소!","골드","말풍선","정렬자","숫자","크기","탭!","캐리지리턴!","효과음","그림표시","그림제거","아이템","무기구","방어구","직업","적군","상태","스킬","얼굴","아군","적그룹","[.]","[|]","[!]","[<]","[>]","[\\^]","AS굵게!","AE굵게!","AS이탤릭!","AE이탤릭!","LEFT","CENTER","RIGHT","B","B","I","I","AEND","배경색","FD"]
*
* @param Chinese
* @type string[]
* @desc Can specify the desired text code as Chinese
* (This will be used when the system language is in Chinese)
* @default ["色","速度","轮廓颜色","轮廓宽度","缩进","加粗!","倾斜!","名字","渐变颜色","队伍成员","角色","变量","图标","增大!","减少!","金币","对话框","对齐","数","大小","TAB!","CR!","音效播放","显示图像","隐藏图像","道具","武器","装甲","职业","敌人","状态","技能","脸","我军","敌人组","[.]","[|]","[!]","[<]","[>]","[\\^]","AS加粗!","AE加粗!","AS倾斜!","AE倾斜!","左","中間","右","B","B","I","I","AEND", "HC", "FD"]
*
* @param English
* @type string[]
* @desc Can specify the desired text code as English
* (This will be used when the system language is to English)
* @default ["COLOR","TEXT_SPEED","OUTLINE_COLOR","OUTLINE_WIDTH","INDENT","BOLD!","ITALIC!","NAME","GRADIENT","PARTY_MEMBER","PLAYER","VAR","ICON","INCREASE!","DECREASE!","GOLD","BALLOON","ALIGN","NUM","TEXT_SIZE","TAB!","CR!","PLAY_SE","SHOW_PICTURE","HIDE_PICTURE","ITEM","WEAPON","ARMOR","CLASSES","ENEMY","STATE","SKILL","FACE","FRIENDLY_TROOPS","ENEMY_TROOPS","[.]","[|]","[!]","[<]","[>]","[\\^]","ASBOLD!","AEBOLD!","ASITALIC!","AEITALIC!","LEFT","CENTER","RIGHT","B","B","I","I","AEND", "HC", "FD"]
*
* @param Japanese
* @type string[]
* @desc To work this, Note that you can set the system lanuage is to Japanese.
* @default ["色","テキストスピード","輪郭の色","輪郭のサイズ","インデント","太字!","斜体!","名前","グラデーション","パーティーメンバー","アクタ","変数","アイコン","INCREASE!","DECREASE!","通貨単位表示","フキダシ","整列","数字","テキストのサイズ","TAB!","CR!","効果音","ピクチャの表示","ピクチャの消去","アイテム","武器","防具","職業","敵キャラ","ステート","スキル","顔","FRIENDLY_TROOPS","ENEMY_TROOPS","[.]","[|]","[!]","[<]","[>]","[\\^]","AS太字!","AE太字!","AS斜体!","AE斜体!","LEFT","CENTER","RIGHT","B","B","I","I","AEND", "HC", "FD"]
*
*/
/*~struct~TextColor:
*
* @param Color Name
* @desc Specify desired color name
* @default
*
* @param Red
* @type number
* @desc 0 ~ 255
* @min 0
* @max 255
* @default 0
*
* @param Green
* @type number
* @desc 0 ~ 255
* @min 0
* @max 255
* @default 0
*
* @param Blue
* @type number
* @desc 0 ~ 255
* @min 0
* @max 255
* @default 0
*
* @param Alpha
* @type number
* @desc 0.0 ~ 1.0
* @min 0
* @max 1
* @decimals 1
* @default 1.0
*
*/
/*~struct~SystemFont:
*
* @param settings
* @text Settings
* @type struct<SystemFontDescriptor>[]
* @desc Set the font for each language.
* @default ["{\"languageCode\":\"ko\",\"fontName\":\"나눔고딕, Dotum, AppleGothic, sans-serif\"}","{\"languageCode\":\"zh\",\"fontName\":\"SimHei, Heiti TC, sans-serif\"}"]
*
*/
/*~struct~SystemFontDescriptor:
*
* @param languageCode
* @text Language Code
* @desc Please enter the language code.
* @default en
*
* @param fontName
* @text Font Name
* @desc Specify multiple fonts. (Separated by commas)
* @default GameFont
*
*/
/*:ko
* RS_MessageSystem.js
* @plugindesc (v0.1.9) 한글 메시지 시스템 <RS_MessageSystem>
* @author 러닝은빛(biud436)
*
* @param 글꼴 크기
* @type number
* @desc 글꼴의 크기를 정수로 지정하세요
* 기본 값 : 28
* @default 28
*
* @param 라인 갯수
* @type number
* @desc 라인 갯수
* @default 4
* @min 1
*
* @param 그레디언트 시작 색상
* @desc 그레디언트 시작 색상
* @default #FFFFFF
*
* @param 그레디언트 중간 색상
* @desc 그레디언트 중간 색상
* @default #F29661
*
* @param 그레디언트 끝 색상
* @desc 그레디언트 끝 색상
* @default #CC3D3D
*
* @param 기본 텍스트 출력 속도
* @type number
* @desc 기본 값 : 0 프레임
* @default 0
*
* @param 폰트 최소 크기
* @type number
* @desc \}로 텍스트 크기를 한 단계 줄일 때 최소 크기를 제한합니다
* @default 24
*
* @param 폰트 최대 크기
* @type number
* @desc \{로 텍스트 크기를 한 단계 키울 때 최대 크기를 제한합니다
* @default 96
*
* @param 큰 페이스칩
*
* @param 텍스트 시작 X
* @parent 큰 페이스칩
* @type number
* @desc 큰 페이스칩이 설정되어있을 때 텍스트 시작 좌표를 정수로 기입하세요.
* @default 6
*
* @param 큰 페이스칩 OX
* @parent 큰 페이스칩
* @type number
* @desc 큰 페이스칩의 오프셋 X
* @default 0
* @min -1280
*
* @param 큰 페이스칩 OY
* @parent 큰 페이스칩
* @type number
* @desc 큰 페이스칩의 오프셋 Y
* @default 0
* @min -1280
*
* @param face Opacity
* @text 큰 페이스칩 투명도
* @parent 큰 페이스칩
* @type number
* @desc 큰 페이스칩의 투명도를 조절합니다.
* (0 - 255)
* @default 255
*
* @param 대화창 뒤에 얼굴 표시
* @type boolean
* @parent 큰 페이스칩
* @desc 큰 페이스칩을 메시지창의 뒷면에 표시합니다.
* 예 - true 아니오 - false
* @default false
* @on 대화창 뒤에
* @off 대화창을 가림
*
* @param face Direction
* @text 얼굴 이미지의 위치
* @type select
* @parent 큰 페이스칩
* @desc 일반 얼굴 이미지의 위치를 설정합니다.
* @default 0
* @option 왼쪽
* @value 0
* @option 오른쪽
* @value 2
*
* @param Face Smooth
* @text 얼굴 부드럽게 표시
* @type boolean
* @parent 큰 페이스칩
* @desc 얼굴 이미지를 부드럽게 표시합니다.
* @default true
* @on 부드럽게 표시
* @off 그대로 표시
*
* @param 탭 크기
* @type number
* @desc 탭 크기
* @default 4
*
* @param 배경 그림의 투명도
* @type number
* @desc 대화창 배경의 투명도입니다
* @default 192
* @min 0
* @max 255
*
* @param 기본 투명도
* @type number
* @desc 대화창의 기본적인 투명도 값입니다
* @default 255
* @min 0
* @max 255
*
* @param 내용의 투명도
* @type number
* @desc 대화창 컨텐츠의 투명도 값입니다
* @default 255
* @min 0
* @max 255
*
* @param 반투명도
* @type number
* @desc 대화창의 반투명도를 조절합니다.
* @default 160
* @min 0
* @max 255
*
* @param 테두리 크기
* @type number
* @desc 텍스트의 테두리 크기를 정수로 지정하세요
* @default 2
* @min 0
*
* @param 테두리 색상
* @desc 텍스트의 테두리 색상을 웹컬러 규격으로 지정하세요
* @default rgba(0, 0, 0, 1.0)
*
* @param 기본 윈도우스킨
* @desc 기본 윈도우의 윈도우 스킨을 지정하세요
* @require 1
* @default Window
* @dir img/system/
* @type file
*
* @param System Font Settings
* @text 시스템 폰트 설정
*
* @param systemFont
* @parent System Font Settings
* @text 시스템 폰트
* @type struct<SystemFont>
* @desc 사용자 컴퓨터에 설치된 폰트로 구성합니다.
* @default {"settings":"[\"{\\\"languageCode\\\":\\\"ko\\\",\\\"fontName\\\":\\\"나눔고딕, Dotum, AppleGothic, sans-serif\\\"}\",\"{\\\"languageCode\\\":\\\"zh\\\",\\\"fontName\\\":\\\"SimHei, Heiti TC, sans-serif\\\"}\"]"}
*
* @param 커스텀 폰트
*
* @param 사용자 지정 폰트 사용 여부
* @parent 커스텀 폰트
* @type boolean
* @desc 사용자 지정 폰트를 사용하시겠습니까?
* 예 - true 아니오 - false
* @default false
* @on 사용
* @off 사용하지 않음
*
* @param 사용자 지정 폰트명
* @parent 커스텀 폰트
* @desc Font의 이름을 작성하세요
* @default NanumBrush
*
* @param 사용자 지정 폰트 경로
* @parent 커스텀 폰트
* @desc 사용자 지정 Font의 경로를 지정하세요
* @default fonts/NanumBrush.ttf
*
* @param 선택지 표시
*
* @param 선택지 스타일
* @parent 선택지 표시
* @type select
* @desc 선택지 창의 스타일을 설정할 수 있습니다
* (숫자 입력은 XP 스타일로 나오지 않습니다.)
* @default default
* @option RMXP 스타일
* @value RMXP
* @option 기본 스타일 (MV, VXA)
* @value default
*
* @param Default Choice Position
* @parent 선택지 표시
* @type select
* @desc 선택지의 위치를 설정할 수 있습니다.
* @default right
* @option 우측 (기본)
* @value right
* @option 중앙
* @value middle
* @option 왼쪽
* @value left
*
* @param 이름 윈도우
*
* @param 이름 윈도우스킨
* @parent 이름 윈도우
* @desc 이름 윈도우의 윈도우 스킨을 지정하세요
* @require 1
* @default Window
* @dir img/system/
* @type file
*
* @param 이름 윈도우 X
* @parent 이름 윈도우
* @type number
* @desc 대화창의 좌표를 기준으로 오프셋 됩니다
* @default 0
*
* @param 이름 윈도우 Y
* @parent 이름 윈도우
* @type number
* @desc 대화창의 좌표를 기준으로 오프셋 됩니다
* @default 0
*
* @param 이름 윈도우 안쪽 여백
* @parent 이름 윈도우