|
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
|
|
32.
|
|
|
Other Named Stores
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:174
|
|
33.
|
|
|
Named stores provide a way of organizing python code into modules. By placing code in modules, you can minimize the chance of name conflicts.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:176
|
|
34.
|
|
|
Named stores can be accessed by supplying the ``in`` clause to ``python`` or ``init python``, code can run accessed in a named store. Each store corresponds to a python module. The default store is ``store``, while a named store is accessed as ``store``.`name`. These python modules can be imported using the python import statement, while names in the modules can be imported using the python from statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:180
|
|
35.
|
|
|
For example::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:188
|
|
36.
|
|
|
Named stores participate in save, load, and rollback in the same way that the default store does.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/python.rst:207
|