Files
wagic/projects/mtg/bin/Res/campaigns
wagic.the.homebrew@gmail.com b1079942af Erwan
- Reward system in Story mode (currently, either credits or random set)
- Rules now accept for player 2 to start (see story mode "block" stage)
- Story mode now has an autosave/autoload mechanism. This is for convenience but also to prevent people from abusing the reward mechanism too easily.
- possibility to choose an avatar for both players through the rules (see example in story mode)
2010-05-09 08:14:01 +00:00
..
2010-05-09 08:14:01 +00:00
2010-05-06 13:47:56 +00:00

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

#################################