Skip to content

Commit bc0a5f7

Browse files
Prelease update of README
Documentation update
1 parent 227ddf6 commit bc0a5f7

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

README.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,30 @@ Unfortunately, the number of known commands aren't big (but not of the structure
5757
Well, let's show you a basic known commands with the arguments:
5858

5959
- 3 (0x03): JUMP_UNLESS.
60-
Arguments: [???]
60+
Arguments: [label]. (In the original script offset from the beginning of command block).
6161
- 5 (0x05): JUMP.
62-
Arguments: [offset from the beginning of command block].
62+
Arguments: [label]. (In the original script offset from the beginning of command block).
6363
- 13 (0x0D): PAUSE.
6464
Arguments: [time in seconds].
65-
- 20 (0x14): IMAGE_DEF.
65+
- 14 (0x0C): CALL_SCRIPT.
66+
Arguments: [script number, ???].
67+
- 20 (0x14): IMAGE_GET.
6668
Arguments: [image index (from the name), ???].
67-
- 26 (0x1A): SCENE_SET.
69+
- 26 (0x1A): IMAGE_SET.
6870
Arguments: [].
6971
- 28 (0x1C): BLEND_IMG.
7072
Arguments: [???, type1, type2].
73+
- 30 (0x1E): IMAGE_DEF.
74+
Arguments: [???, ???, ???, ???, ???, ???].
7175
- 81 (0x51): MESSAGE.
72-
Arguments: [???, voice index (from the name), ???, ???, -1, ???].
73-
In a .gsc itself is not a -1, but a message number.
76+
Arguments: [???, voice index (from the name), ???, -1, -1, ???].
77+
In a .gsc itself is not a -1, but a string numbers.
78+
- 82 (0x52): APPEND_MESSAGE.
79+
Arguments: [???, ???, ???, ???, -1, ???].
80+
In a .gsc itself is not a -1, but a string numbers.
81+
- 121 (0x79): GET_DIRECTORY.
82+
Arguments: [???, -1].
83+
In a .gsc itself is not a -1, but a string numbers.
7484
- 200 (0xC8): READ_SCENARIO.
7585
Arguments: [???, ???, ???, ???, ???, ???, ???, ???, ???, ???, ???].
7686
- 255 (0xFF): SPRITE.
@@ -91,20 +101,30 @@ Arguments: [???, ???].
91101
Итак, приведём базовые известные команды с аргументами:
92102

93103
- 3 (0x03): JUMP_UNLESS.
94-
Аргументы: [???]
104+
Аргументы: [метка]. (В оригинальном скрипте смещение относительно начала секции команд).
95105
- 5 (0x05): JUMP.
96-
Аргументы: [смещение от начала блока команд].
106+
Аргументы: [метка]. (В оригинальном скрипте смещение относительно начала секции команд).
97107
- 13 (0x0D): PAUSE.
98108
Аргументы: [время в секундах].
99-
- 20 (0x14): IMAGE_DEF.
109+
- 14 (0x0C): CALL_SCRIPT.
110+
Аргументы: [номер скрипта, ???].
111+
- 20 (0x14): IMAGE_GET.
100112
Аргументы: [индекс картинки (из имени), ???].
101-
- 26 (0x1A): SCENE_SET.
113+
- 26 (0x1A): IMAGE_SET.
102114
Аргументы: [].
103115
- 28 (0x1C): BLEND_IMG.
104116
Аргументы: [???, тип1, тип2].
117+
- 30 (0x1E): IMAGE_DEF.
118+
Аргументы: [???, ???, ???, ???, ???, ???].
105119
- 81 (0x51): MESSAGE.
106-
Аргументы: [???, индекс гласа (из имени), ???, ???, -1, ???].
107-
В самом .gsc вместо "-1" номер сообщения!
120+
Аргументы: [???, индекс гласа (из имени), ???, -1, -1, ???].
121+
В самом .gsc вместо "-1" номера строк!
122+
- 82 (0x52): APPEND_MESSAGE.
123+
Аргументы: [???, ???, ???, ???, -1, ???].
124+
В самом .gsc вместо "-1" номера строк!
125+
- 121 (0x79): GET_DIRECTORY.
126+
Аргументы: [???, -1].
127+
В самом .gsc вместо "-1" номера строк!
108128
- 200 (0xC8): READ_SCENARIO.
109129
Аргументы: [???, ???, ???, ???, ???, ???, ???, ???, ???, ???, ???].
110130
- 255 (0xFF): SPRITE.
@@ -127,6 +147,7 @@ For those who desire for scripts to edit it's very important. The syntax is rath
127147
- "<" is the string's beginning is for one-string comment.
128148
- "#" in the string's beginning is for defination of command.
129149
- "[..., ..., ...]" is for function argument's splitted with "," form. It goes strictly on the next line after the command defination.
150+
- "@" is a label, to which some arguments are connecting.
130151
- An "-1" argument means it connected with next string index.
131152
- ">" is for string beginning.
132153
After its goes mark of primar index of string or -1. If it's -1, the string is connected. Connected strings always goes after the defination of connected arguments.
@@ -139,6 +160,7 @@ DO NOTE: NOT AN ALL OF CONNECTED INDEXES WAS FOUND!**
139160
- "<" в начале строки обозначает однострочный комментарий.
140161
- "#" в начале строки есть определение команды.
141162
- "[..., ..., ...]" есть форма описания аргументов функции (разделяются запятой) и следует сразу после определения команды.
163+
- "@" есть метка, на кою ссылаются некоторые команды.
142164
- Аргумент "-1" значит, что он связан с индексом следующей строки.
143165
- ">" обозначает строк начало.
144166
После сего идёт либо показатель изначального индекса строки, либо -1. -1 значит, что строка связанная. Связанные строки всегда следуют после задачи связанных аргументов.

0 commit comments

Comments
 (0)