How to Make A Visual Novel_3 Variables and Layers
variables
variable:will be save on the script [autosave] or click the save button.all the variables the user want to save should be placed in the node <svar></svar>
<variable
name>value, can be number
or some text</variable name>
example:
<svar>
<V1>0</V1><!-- you can write comment here --><V2>0</V2></svar>
layers
layers: layers to show characters or imagines. all the layer node should be placed in the node <Layer></Layer> .
Sequence as the depth, the last layer node will be on top.
<layername/>
no attributes needed
example:
<Layer t="显示图片的层标签">
<LayerA/></Layer>
<LayerB/>
<LayerC/>
there are some other initialize setting of the game:node <playingat/>
<scenario> the first scenario filename</scenario>
- as the default scenario file,the script [autosave] and the skip button cannot be used.
<readline> the first line number in the scenario file</readline>
- The game will start at this line of script, usually set to 0.
<lastScenario>the
last scenario filename</lastScenario>
- not needed in the init file, but used in save files.
<lastreadline> the
last line number in the scenario file </lastreadline>
- not needed in the init file, but used in save files.
- record the last script line in scenarios while the script [call] is used.
<bgm> path of
the default music</bgm>
- not needed in the init file, but used in save files.
<bg> path of the
default background imagine </bg>
- not needed in the init file, but used in save files.
<playingat>
<scenario>main.txt</scenario>
<lastScenario>main.txt</lastScenario>
<lastreadline>0</lastreadline>
<readline>0</readline>
<bgm></bgm>
<bg></bg>
</playingat>
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页