May be cheaper as part of a pack
Average User Rating
Not rated

Description

Advanced dialog script - a script that allows you to create a multi-page branched dialog with the ability to customize the appearance and control from the keyboard or mouse.

The built-in system of variables allows you to change the text of the dialogue at runtime, as well as hide and display the player's responses, depending on the value of the variable.

The system of conditions and actions of the dialog script can interact with other scripts when defining interaction functions.

The script includes ready-made functions for interacting with the Advanced inventory system, such as:
  • Give \ Take away the item from the player.
  • Display the player's response if the player has a certain amount of the desired item.

 With the Skill tree:
  • Give \ Take away skill points from the player.

And also for interacting with the Simple task list:
  • Set task status.

Script supports the use of dialogs created for the Universal dialog script.

To create dialogs, we recommend using the Dialog Builder 2 program. (Program Dialog Builder 2 is not part of this product and is not required for its performance.)




Abbreviated Usage Documentation

How to use:
1) Create folder ”Dialog” in ”Game Guru\Files\databank”.
2) Put the folder with the dialogue.
3) In GameGuru, place the entity.
4) In the Main field, specify ”stv233\ads\ads.lua”.
5) Name the entity the same as the dialog folder is named.

How to create dialogue:
To create dialogs, we recommend using the Dialog Builder 2 program. (Program Dialog Builder 2 is not part of this product and is not required for its performance.)

To create a dialog manually:
Each dialog is a set of files:

variables - a file containing a list of local variables.
gvariables - a file containing a list of global variables.

Each variable is specified on a separate line according to the following pattern: Type: variableName = value, where the type can be string or number.

Example:
string:startPage=PageOne
number:counter=1


Each dialog can name some special local variables:
"StartPage" - Used to determine which will be displayed first after the player starts the dialogue.
"EntityName" - Used to set the display text of the entity name.
"CameraDistance" - Used to set the distance from the dialogue camera to the entity.
"CameraOffsetX" - Used to set the camera offset by the X coordinate.
"CameraOffsetY" - Used to set the camera offset along the Y coordinate.

Dialog page files:
pageName.dat * - file containing the text of the dialog page.
pageName_r.dat *
- file containing the player's responses.

Each responses given on a separate line.

Example:
What's your name?
Bye


pageName_l.dat * - a file containing links to dialog pages to which the player's responses will be sent.

Each link is set on a new line according to the player's responses. In order for the player's response to close the dialogue, you must specify the link '0'.

Example:
page2Name
0


pageName_c.dat * - a file containing the conditions for displaying the player's responses. 

Each condition is set on a new line according to the player's responses. There are static conditions: true - the player's response is always displayed, false - the player's response is never displayed.
Other conditions are set according to the following pattern: Type: Argument [=,! =,>,>=] Value.

Example:
variable: entityName = Stranger
true


pageName_a.dat - file containing page actions. 

Page actions are activated every time the current page of the dialog is opened. Each action is specified on a separate line according to the following pattern: Type: Argument [+, -, =] Value.

Example:
variable: entityName = Bob
variable: counter + 1


* - required files.

Preparing for a stand-alone project:
Before saving your project as a standard, you need to replace the file  gamedata.lua in the "GameGuru \ Files \ titlesbank" folder with the gamedata.lua file attached to the script in the "GameGuru \ Files \ scriptbank \ stv233 \ ads" folder 

About variables:
Local - variables that are defined for each entity separately, access to them from other entities is not possible.
Global - variables that are available to all entities at the level. Global variables are not saved by game saves.

 -----------------------------------------------------------------------------------------
¦Variable type¦Between entities¦Game saves¦Between levels¦
 -----------------------------------------------------------------------------------------
¦        Local        ¦          NO           ¦        Yes       ¦         NO             ¦
 -------------------------------------------------------- --------------------------------
¦       Global       ¦          Yes           ¦        NO       ¦          Yes            ¦
 -----------------------------------------------------------------------------------------

Keywords

npc talking text dialog conversation dialog script rpg script talking rpg rpg dialogue script

Product Details

Artist: Stv233
Category: GameGuru Scripts
Sub Category: Misc
Sales: 7

Engine Support

GameGuru Classic Yes

File Formats

LUA .lua
PNG .png

Comments

No comments yet

You must Login or Register to leave comments.

Included in

Related Products