mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
35e2d40641
- Implement page string names for dialog lumps - Create special new GZDoom name space for ZSDF - add usdf_gzdoom spec document - fixed: restored original behavior with negative conversation id's for the original strife dialog lumps - reposition the binary strife fix in a more appropriate location - add compatibility fix for negative numbers in responses in USDF/ZSDF (don't know if it's actually necessary)
63 lines
2.2 KiB
Text
63 lines
2.2 KiB
Text
===============================================================================
|
|
GZDoom Strife Dialog Format v1.0
|
|
based on ZDoom Strife Dialog Format ZDoom v1.1 - 23.08.2010
|
|
|
|
Copyright (c) 2019 Rachael Alexanderson
|
|
uses ZDoom Strife Dialog Format ZDoom v1.1 as a template,
|
|
original document Copyright (c) 2010 Christoph Oelckers.
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.2
|
|
or any later version published by the Free Software Foundation;
|
|
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
|
|
|
|
===============================================================================
|
|
|
|
=======================================
|
|
I. Grammar / Syntax
|
|
=======================================
|
|
|
|
No changes.
|
|
|
|
=======================================
|
|
II. Implementation Semantics
|
|
=======================================
|
|
|
|
No changes.
|
|
|
|
=======================================
|
|
III. Changes to ZSDF spec
|
|
=======================================
|
|
|
|
GZDoom Strife Dialogue format implements the ZSDF base specification as described with
|
|
the improvement of being able to name pages using strings.
|
|
|
|
GZDoom-format dialogues need to start with this line:
|
|
|
|
namespace = "GZDoom";
|
|
|
|
|
|
---------------------
|
|
III.A : Conversations
|
|
---------------------
|
|
|
|
This block only lists the newly added fields. Currently GZDoom only modifies the following
|
|
fields and adds the "pagename" field to the specification:
|
|
|
|
conversation // Starts a dialog.
|
|
{
|
|
page
|
|
{
|
|
pagename = <string>; // names the current page, for linking using links or responses
|
|
link = <string|int>; // if int, uses the old system of linking page by number
|
|
// if string, will parse item links to a named page
|
|
|
|
choice
|
|
{
|
|
next = <string|int>; // same as link above, can either go to a name or id
|
|
}
|
|
}
|
|
}
|
|
|
|
===============================================================================
|
|
EOF
|
|
===============================================================================
|