|
22.
|
|
|
Define Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:125
|
|
23.
|
|
|
The define statement sets a single variable in the default store to a value at init time. For example::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:127
|
|
24.
|
|
|
is equivalent to::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:132
|
|
25.
|
|
|
One advantage of using the define statement is that it records the filename and line number at which the assignment occured, and makes that available to the navigation feature of the launcher.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:137
|
|
26.
|
|
|
Names in the Store
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:142
|
|
27.
|
|
|
The default place that Ren'Py stores Python variables is called the store. It's important to make sure that the names you use in the store do not conflict.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:144
|
|
28.
|
|
|
The define statement assigns a value to a variable, even when it's used to define a character. This means that it's not possible to use the same name for a character and a flag.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:148
|
|
29.
|
|
|
The following faulty code::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:152
|
|
30.
|
|
|
will not work, because the variable `e` is being used as both a character and a flag. Other things that are usually placed into the store are transitions and transforms.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:165
|
|
31.
|
|
|
Names beginning with underscore (\_) are reserved for Ren'Py's internal use. In addition, there is an :ref:`Index of Reserved Names <reserved-names>`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:169
|