Difference between revisions of "How to write a dialogue"

From Halfway
Jump to: navigation, search
 
Line 3: Line 3:
 
Writing dialogs is rather easy in Halfway. They are all saved in txt files that then are loaded into the game via [[Dialog_Action|triggers]] [[Object_Edit_Mode#Atributes|attributes]]. All text files need to be saved into the ./text folder but you can use any subfolder you want.
 
Writing dialogs is rather easy in Halfway. They are all saved in txt files that then are loaded into the game via [[Dialog_Action|triggers]] [[Object_Edit_Mode#Atributes|attributes]]. All text files need to be saved into the ./text folder but you can use any subfolder you want.
  
 +
==== Folder====
 +
 +
./textfiles/xxx
 +
 +
Where xxx is a needed subfolder for your dialogs. txt files saved in the textfiles root folder will make the editor crash.
 
==== Syntax ====
 
==== Syntax ====
  
Line 19: Line 24:
  
 
* No file can have the same name, even if they are in separate folders. This will confuse the game and you will get strange errors.
 
* No file can have the same name, even if they are in separate folders. This will confuse the game and you will get strange errors.
 +
* They all need to be placed in a sub folders of ./textfiles/ or else the editor will crash. Example ./textfiles/m01/yourdialog.txt

Latest revision as of 13:54, 10 October 2014

Dialogue Creation

Writing dialogs is rather easy in Halfway. They are all saved in txt files that then are loaded into the game via triggers attributes. All text files need to be saved into the ./text folder but you can use any subfolder you want.

Folder

./textfiles/xxx

Where xxx is a needed subfolder for your dialogs. txt files saved in the textfiles root folder will make the editor crash.

Syntax

Every dialog line has to start with this set of characters:

X#L#

Where as the X can be a number from 0 to 7, an ! or a ? the # is for separation and for the engine to recognize a new dialog line is starting and the L stands for left aligned. R for right aligned is not supported anymore with the current UI.

! is to be used if the character who does the interaction is the one to be talking.

?' is used for the Character you are talking to. This is mainly used when placing characters or terminals in the level and it uses the character set in the object attribute.


Important Knowhow

  • No file can have the same name, even if they are in separate folders. This will confuse the game and you will get strange errors.
  • They all need to be placed in a sub folders of ./textfiles/ or else the editor will crash. Example ./textfiles/m01/yourdialog.txt