2017年2月6日星期一

Script Guide_1 dialog and aside

All the scenario files can be found in the scenario directory, saved as txt file.
the scenario files usually saved as .txt file, while you can also save them with any extension.
It is highly recommended to Encode them in unicode
no matter which extension they have, edit them with text editors.

😃 try editplus or notpad++

you can place comment after  “//”
blank lines will not be read.

---------------------------

[text]--Subtitle or aside 


the script [text] goes with one five or six parameters , you need click to read the next line of script, or use an automation parameter to read the next line automatically .

[text Type| posX| posY| Width| Text| Automation ]

Type:
new: all the text exist will be clean and the new text will be placed at the beginning
add: new text will add after the old ones
clear:  clean all the text
posX: the position where the text field display horizontal 
posY: the position where the text field display vertical 
Width: the width of the text field
Text: some text you want to show in the screen
Automation :  write an “auto” to make the next line of text show itself automatically. Not a necessary parameter.

Example: A Simple text Game

[text new|0|20|100|Hello!]
[text new|0|20|200|welcome to sakusaku engine!|auto]
[text add|0|20|100|It is a very simple text game]
[text add|0|20|100|after this line, all the text will be removed]
[text clear]



[dialog]--the words what your character say 

The script [dialog] goes with two or three parameters , you need click to read the next line of script, or use an automation parameter to read the next line automatically .

[dialog Name | Text | Automation ]

Name: The name of the character who is talking.
Text: Some words the character says.
Automation: write an “auto” to make the next line of text show itself automatically. Not a necessary parameter.

[dialogadd Text]
The script [dialogadd] goes only one parameter, the Text you want to add a new line after the last words the character said.

Example: A Simple dialog

[dialog Bunny |Hello there!]
[dialogadd I am a cute animal in this forest!]

➤➤➤➤➤➤➤➤➤➤➤➤➤➤➤
The script [dialog] and [text] support some HTML tags.
<u>under line</u><br>line break


 The last example look the same as this
[dialog Bunny |Hello there! <br> I am a cute animal in this forest!]

The script [dialog] and [text] also support color tags and a herf tag.

[dialog Bunny |I have <font  color="#ff0000">Red</font> eyes]
[dialog Bunny |Click <A HREF="http://somehere.com">Here</A> to see my photo]

while the HTML tags can be used ,you need to write the angle brackets with &lt; and &gt;
➤➤➤➤➤➤➤➤➤➤➤➤➤➤➤

[clr]--clean and hide the dialog

The script [clr] hides the dialog frame and remove all the dialog text
click to read the next line of script.

[msghide]/[msgshow]--hide but not clean them

Different with the script [clr], just hide or show the dialog frame while do not r remove the dialog textclick to read the next line of script.

[msghide]: hide the dialog frame
[msgshow] :show the dialog frame



[img]--give the dialog a picture

A visual novel is not only a novel.Show pictures when your characters talking. 
The script [img] goes with four or five parameters, read the next line of script automatically.


[img Filename| posX| posY| Layer| Time] 

Filename: The filename of the imagine, all the file can be found in the role directory. IF the filename parameter is empty or an “unload”, the layer will be cleaned
posX: the position where the imagine display horizontal. Change the position to make the layer move.
posY: the position where the imagine display vertical . Change the position to make the layer move.

Layer: the name of the layer where the imagine placed on.
Time: if you want the imagine fade in/out or move in some time longer. Not a necessary parameter.

Example: A Simple imagine show

[img avatar.png|0|240|LayerC]
[dialog Bunny |Hello there!]
[img avata2.png|50|240|LayerC|1000]
[dialog Bunny |I have <font  color="#ff0000">Red</font> eyes]
[img unload|100|240|LayerC]

The script [img] supports some swf files; you can show small animations with this.


[clearimg]--clean all the layer

The script [clearimg] will clean all the imagines in all layers. It is a faster way to remove all the imagines on the screen instead of unloading them one by one. Read the next line of script automatically.




标签: ,

0 条评论:

发表评论

订阅 博文评论 [Atom]

<< 主页