- bug fix in JGE++ audio (improve HBL compatibility)
- Added new rewards in story mode: random card, card (either by "name" or id), specific set
- Story mode: added possibility to choose music, and bg for duel.
-- See "01. Where it all begins" for examples of new features
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-07-19 13:44:26 +00:00
parent acf06d0181
commit 1332842025
22 changed files with 205 additions and 63 deletions
+15 -2
View File
@@ -3,6 +3,9 @@ Documentation for the Basic campaign system in Wagic
Each subfolder that contains a "story.xml" is considered as a "story". Stories appear in the menu and represent
a series of dialogs and duels.
*: 0 to n
?: 0 to 1
#################################
1.Structure of story.xml:
#################################
@@ -20,6 +23,7 @@ Elements of the page node
===========================================
type (dialog,duel,end)
music ? (path to a music file)
===========================================
@@ -30,6 +34,7 @@ title *
img *
text *
answer *
reward *
title, img, text, answer have the following common attributes:
x (optional - default 0)
@@ -53,14 +58,22 @@ answer specific attributes:
goto
id of a page to go to
reward attributes:
type
unlockset , card, credits
value
number of credits, or name/id of the card (random if undef), or name of the set (random if undef)
Additionally, the fowllowing variables can be used in the reward text : ${SET}, ${CARD}
===========================================
Additional Elmts of the "page" node if type == dialog
Additional Elmts of the "page" node if type == duel
===========================================
onwin
id of a page to go to if duel lost
onlose
id of a page to go to if duel won
bg
path to a background file