Files
wagic/projects/mtg/bin/Res/campaigns/README.txt
T
wagic.the.homebrew@gmail.com 0149512412 Erwan
- fixed bugs introduced in revision 2034 (Giant Growth)
- Extended Story mode xml: much easier to write basic thing, font selection, possibility to position answers, answers now in correct order
- moved story in the menu because it is not major for now
2010-05-06 13:47:56 +00:00

69 lines
1.7 KiB
Plaintext

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.
#################################
1.Structure of story.xml:
#################################
===========================================
Elements of the root node
===========================================
page *
attributes:
id (compulsory)
===========================================
Elements of the page node
===========================================
type (dialog,duel,end)
===========================================
Additional Elmts of the "page" node if type == dialog
===========================================
title *
img *
text *
answer *
title, img, text, answer have the following common attributes:
x (optional - default 0)
0 means auto
0 < x < 1 means percentage of screen width
other value = absolute position
y (optional - default 0)
-1 means: go to previous line
0 means: auto
0 < y < 1 means: percentage of screen height
other value = absolute position
font (optional - default 0)
0, 1, or 2
align (optional - default left)
left, center, right
font and align not supported by title, which is equivalent to <text font="1" align="center">
answer specific attributes:
goto
id of a page to go to
===========================================
Additional Elmts of the "page" node if type == dialog
===========================================
onwin
id of a page to go to if duel lost
onlose
id of a page to go to if duel won
#################################
2.Duel mode
#################################