|
64.
|
|
|
A python expression is an arbitrary python expression, that may not include a colon. These are used to express the conditions in the if and while statements.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:235
|
|
65.
|
|
|
Common Statement Syntax
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:241
|
|
66.
|
|
|
Most Ren'Py statements share a common syntax. With the exception of the say statement, they begin with a keyword that introduces the statement. This keyword is followed by a parameter, if the statement takes one.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:243
|
|
67.
|
|
|
The parameter is then followed by one or more properties. Properties may be supplied in any order, provided each property is only supplied once. A property starts off with a keyword. For most properties, the property name is followed by one of the syntax elements given above.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:248
|
|
68.
|
|
|
If the statement takes a block, the line ends with a colon (:). Otherwise, the line just ends.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:253
|
|
69.
|
|
|
Python Expression Syntax
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:260
|
|
70.
|
|
|
It may not be necessary to read this section thoroughly right now. Instead, skip ahead, and if you find yourself unable to figure out an example, or want to figure out how things actually work, you can go back and review this.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:264
|
|
71.
|
|
|
Many portions of Ren'Py take python expressions. For example, defining a new Character involves a call to the Character function. While Python expressions are very powerful, only a fraction of that power is necessary to write a basic Ren'Py game.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:270
|
|
72.
|
|
|
Here's a synopsis of python expressions.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:275
|
|
73.
|
|
|
:dfn:`Integer`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/language_basics.rst:279
|