|
30.
|
|
|
:dfn:`Indentation` is the name we give to the space at the start of each logical line that's used to line up Ren'Py statements. In Ren'Py, indentation must consist only of spaces.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:131
|
|
31.
|
|
|
Indentation is used to group statements into :dfn:`blocks`. A block is a group of lines, and often a group of statements. The rules for dividing a file into blocks are:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:135
|
|
32.
|
|
|
A block is open at the start of a file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:139
|
|
33.
|
|
|
A new block is started whenever a logical line is indented past the previous logical line.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:141
|
|
34.
|
|
|
All logical lines inside a block must have the same indentation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:144
|
|
35.
|
|
|
A block ends when a logical line is encountered with less indentation than the lines in the block.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:146
|
|
36.
|
|
|
Indentation is very important to Ren'Py, and cause syntax or logical errors when it's incorrect. At the same time, the use of indentation to convey block structure provides us a way of indicating that structure without overwhelming the script text.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:149
|
|
37.
|
|
|
Elements of Statements
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:168
|
|
38.
|
|
|
Ren'Py statements are made of a few basic parts.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:170
|
|
39.
|
|
|
:dfn:`Keyword`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:179
|