#textdomain wesnoth-low
#ifdef MULTIPLAYER
[multiplayer]
    {NO_MAP_DATA}

    turns=1

    #TODO diffentiate difficult levels.
    id=Chapter_One_End
    name= _ "End of Chapter One"
    next_scenario=null
    allow_new_game=no

    #Side setup in order to save the variables
    [side]
        side=1
        {KALENZ}
        {MULTIPLAYER_GOLD_04}
    [/side]

    [side]
        side=2
        {LANDAR}
        {MULTIPLAYER_GOLD_04}
    [/side]

    [story]
        [part]
            story= _ "This is the end of Chapter One."
            show_title=yes
        [/part]
        [part]
            story= _ "Chapter two can be started from the multiplayer lobby in order to continue the campaign. Your recall list is saved persistently and will be reloaded then."
        [/part]
    [/story]

    [event]
        name=prestart

        [endlevel]
            result=victory
            linger_mode=no
            bonus=no
            {NEW_GOLD_CARRYOVER 100}
            carryover_report=no
        [/endlevel]
    [/event]

    [event]
        name=victory

        #Save the player's sides into global variables.
        {STORE_SIDE 1}
        {GLOBAL_VARIABLE LoW_Chapter_One party_store kalenz global}
        {CLEAR_VARIABLE party_store}
        [store_gold]
            side=1
            variable=gold_store
        [/store_gold]
        {GLOBAL_VARIABLE LoW_Chapter_One gold_store kalenz_gold global}

        {STORE_SIDE 2}
        {GLOBAL_VARIABLE LoW_Chapter_One party_store landar global}
        {CLEAR_VARIABLE party_store}
        [store_gold]
            side=2
            variable=gold_store
        [/store_gold]
        {GLOBAL_VARIABLE LoW_Chapter_One gold_store landar_gold global}
    [/event]
[/multiplayer]
#endif

##u#n#def MULTIPLAYER_GOLD_04
