#textdomain wesnoth-ei

#define EI_BIGMAP
    [background_layer]
        image=maps/background.webp
        scale_vertically=yes
        scale_horizontally=no
        keep_aspect_ratio=yes
    [/background_layer]
    [background_layer]
        image=maps/ei.webp
        scale_vertically=yes
        scale_horizontally=no
        keep_aspect_ratio=yes
        base_layer=yes
    [/background_layer]
#enddef

#define EI_TRACK STAGE
    [story]
        [part]
            show_title=yes
            {EI_BIGMAP}
            {STAGE}
        [/part]
    [/story]
#enddef

#undef NEW_JOURNEY

#define NEW_JOURNEY X Y
    [image]
        x,y={X},{Y}
        file=misc/new-journey.png
        delay=300
        centered=yes
    [/image]
#enddef

#define JOURNEY_01_NEW
    {NEW_BATTLE 720 691}
#enddef

#define JOURNEY_01_OLD
    {OLD_BATTLE 720 691}
#enddef

#define JOURNEY_02_NEW
    {JOURNEY_01_OLD}
    {NEW_JOURNEY 736 690}
    {NEW_BATTLE 755 691}
#enddef

#define JOURNEY_02_OLD
    {JOURNEY_01_OLD}
    {OLD_JOURNEY 736 690}
    {OLD_BATTLE 755 691}
#enddef

#define JOURNEY_03_NEW
    {JOURNEY_02_OLD}
    {NEW_JOURNEY 770 687}
    {NEW_JOURNEY 786 681}
    {NEW_JOURNEY 801 676}
    {NEW_JOURNEY 815 668}
    {NEW_BATTLE 835 658}
#enddef

#define JOURNEY_03_OLD
    {JOURNEY_02_OLD}
    {OLD_JOURNEY 770 687}
    {OLD_JOURNEY 786 681}
    {OLD_JOURNEY 801 676}
    {OLD_JOURNEY 815 668}
    {OLD_BATTLE 835 658}
#enddef

#define JOURNEY_04A_NEW
    {JOURNEY_03_OLD}
    {NEW_JOURNEY 821 640}
    {NEW_JOURNEY 812 626}
    {NEW_JOURNEY 805 611}
    {NEW_JOURNEY 799 595}
    {NEW_BATTLE 792 578}
#enddef

#define JOURNEY_04A_OLD
    {JOURNEY_03_OLD}
    {OLD_JOURNEY 821 640}
    {OLD_JOURNEY 812 626}
    {OLD_JOURNEY 805 611}
    {OLD_JOURNEY 799 595}
    {OLD_BATTLE 792 578}
#enddef

#define JOURNEY_04B_NEW
    {JOURNEY_03_OLD}
    {NEW_JOURNEY 851 668}
    {NEW_JOURNEY 870 673}
    {NEW_JOURNEY 889 676}
    {NEW_JOURNEY 907 682}
    {NEW_BATTLE 927 689}
#enddef

#define JOURNEY_04B_OLD
    {JOURNEY_03_OLD}
    {OLD_JOURNEY 851 668}
    {OLD_JOURNEY 870 673}
    {OLD_JOURNEY 889 676}
    {OLD_JOURNEY 907 682}
    {OLD_BATTLE 927 689}
#enddef

#define JOURNEY_04C_NEW
    {JOURNEY_04B_OLD}
    {NEW_JOURNEY 948 690}
    {NEW_JOURNEY 962 697}
    {NEW_JOURNEY 980 701}
    {NEW_JOURNEY 998 701}
    {NEW_JOURNEY 1016 699}
    {NEW_BATTLE 1036 699}
#enddef

#define JOURNEY_04C_OLD
    {JOURNEY_04B_OLD}
    {OLD_JOURNEY 948 690}
    {OLD_JOURNEY 962 697}
    {OLD_JOURNEY 980 701}
    {OLD_JOURNEY 998 701}
    {OLD_JOURNEY 1016 699}
    {OLD_BATTLE 1036 699}
#enddef

#define JOURNEY_05_NEW
    [if]
        [variable]
            name=fork_04a
            equals=yes
        [/variable]
        [then]
            {JOURNEY_04A_OLD}
            {NEW_JOURNEY 779 566}
            {NEW_JOURNEY 769 558}
            {NEW_JOURNEY 759 548}
            {NEW_JOURNEY 750 537}
        [/then]
        [else]
            [if]
                [variable]
                    name=fork_04c
                    equals=no
                [/variable]
                [then]
                    {JOURNEY_04B_OLD}
                    {NEW_JOURNEY 914 669}
                    {NEW_JOURNEY 905 655}
                    {NEW_JOURNEY 902 639}
                    {NEW_JOURNEY 900 622}
                    {NEW_JOURNEY 898 604}
                    {NEW_JOURNEY 894 588}
                    {NEW_JOURNEY 891 570}
                [/then]
                [else]
                    {JOURNEY_04C_OLD}
                    {NEW_JOURNEY 1022 688}
                    {NEW_JOURNEY 1005 681}
                    {NEW_JOURNEY 995 667}
                    {NEW_JOURNEY 991 649}
                    {NEW_JOURNEY 984 632}
                    {NEW_JOURNEY 971 615}
                    {NEW_JOURNEY 956 601}
                    {NEW_JOURNEY 939 589}
                    {NEW_JOURNEY 922 575}
                    {NEW_JOURNEY 904 563}
                [/else]
            [/if]
            {NEW_JOURNEY 887 552}
            {NEW_JOURNEY 874 540}
            {NEW_JOURNEY 857 533}
            {NEW_JOURNEY 839 529}
            {NEW_JOURNEY 820 531}
            {NEW_JOURNEY 803 535}
            {NEW_JOURNEY 785 533}
            {NEW_JOURNEY 766 527}
        [/else]
    [/if]
    {NEW_BATTLE 746 523}
#enddef

#define JOURNEY_05_OLD
    [if]
        [variable]
            name=fork_04a
            equals=yes
        [/variable]
        [then]
            {JOURNEY_04A_OLD}
            {OLD_JOURNEY 779 566}
            {OLD_JOURNEY 769 558}
            {OLD_JOURNEY 759 548}
            {OLD_JOURNEY 750 537}
        [/then]
        [else]
            [if]
                [variable]
                    name=fork_04c
                    equals=no
                [/variable]
                [then]
                    {JOURNEY_04B_OLD}
                    {OLD_JOURNEY 914 669}
                    {OLD_JOURNEY 905 655}
                    {OLD_JOURNEY 902 639}
                    {OLD_JOURNEY 900 622}
                    {OLD_JOURNEY 898 604}
                    {OLD_JOURNEY 894 588}
                    {OLD_JOURNEY 891 570}
                [/then]
                [else]
                    {JOURNEY_04C_OLD}
                    {OLD_JOURNEY 1022 688}
                    {OLD_JOURNEY 1005 681}
                    {OLD_JOURNEY 995 667}
                    {OLD_JOURNEY 991 649}
                    {OLD_JOURNEY 984 632}
                    {OLD_JOURNEY 971 615}
                    {OLD_JOURNEY 956 601}
                    {OLD_JOURNEY 939 589}
                    {OLD_JOURNEY 922 575}
                    {OLD_JOURNEY 904 563}
                [/else]
            [/if]
            {OLD_JOURNEY 887 552}
            {OLD_JOURNEY 874 540}
            {OLD_JOURNEY 857 533}
            {OLD_JOURNEY 839 529}
            {OLD_JOURNEY 820 531}
            {OLD_JOURNEY 803 535}
            {OLD_JOURNEY 785 533}
            {OLD_JOURNEY 766 527}
        [/else]
    [/if]
    {OLD_BATTLE 746 523}
#enddef

#define JOURNEY_06A_NEW
    {JOURNEY_05_OLD}
    {NEW_JOURNEY 750 500}
    {NEW_JOURNEY 761 490}
    {NEW_JOURNEY 777 490}
    {NEW_JOURNEY 792 490}
    {NEW_JOURNEY 806 490}
    {NEW_JOURNEY 820 485}
    {NEW_BATTLE 835 480}
#enddef

#define JOURNEY_06A_OLD
    {JOURNEY_05_OLD}
    {OLD_JOURNEY 750 500}
    {OLD_JOURNEY 761 490}
    {OLD_JOURNEY 777 490}
    {OLD_JOURNEY 792 490}
    {OLD_JOURNEY 806 490}
    {OLD_JOURNEY 820 485}
    {OLD_BATTLE 835 480}
#enddef

#define JOURNEY_06B_NEW
    {JOURNEY_05_OLD}
    {NEW_JOURNEY 730 513}
    {NEW_BATTLE 715 510}
#enddef

#define JOURNEY_06B_OLD
    {JOURNEY_05_OLD}
    {OLD_JOURNEY 730 513}
    {OLD_BATTLE 715 510}
#enddef

#define JOURNEY_07A_NEW
    {JOURNEY_06A_OLD}
    {NEW_JOURNEY 840 470}
    {NEW_JOURNEY 845 460}
    {NEW_BATTLE 850 450}
#enddef

#define JOURNEY_07A_OLD
    {JOURNEY_06A_OLD}
    {OLD_JOURNEY 840 470}
    {OLD_JOURNEY 845 460}
    {OLD_BATTLE 850 450}
#enddef

#define JOURNEY_07B_NEW
    {JOURNEY_06B_OLD}
    {NEW_JOURNEY 720 493}
    {NEW_JOURNEY 725 481}
    {NEW_BATTLE 735 465}
#enddef

#define JOURNEY_07B_OLD
    {JOURNEY_06B_OLD}
    {OLD_JOURNEY 720 493}
    {OLD_JOURNEY 725 481}
    {OLD_BATTLE 735 465}
#enddef

#define JOURNEY_08_NEW
    [if]
        [variable]
            name=fork_06b
            equals=yes
        [/variable]
        [then]
            {JOURNEY_07B_OLD}
            {NEW_JOURNEY 747 456}
            {NEW_JOURNEY 760 445}
            {NEW_JOURNEY 775 440}
            {NEW_JOURNEY 790 435}
            {NEW_JOURNEY 805 430}
            {NEW_JOURNEY 820 425}
            {NEW_JOURNEY 835 420}
            {NEW_JOURNEY 850 415}
            {NEW_JOURNEY 865 412}
            {NEW_BATTLE 880 410}
        [/then]
        [else]
            {JOURNEY_07A_OLD}
            {NEW_JOURNEY 859 438}
            {NEW_JOURNEY 865 429}
            {NEW_JOURNEY 871 420}
            {NEW_BATTLE 880 410}
        [/else]
    [/if]
#enddef

#define JOURNEY_08_OLD
    [if]
        [variable]
            name=fork_06b
            equals=yes
        [/variable]
        [then]
            {JOURNEY_07B_OLD}
            {OLD_JOURNEY 747 456}
            {OLD_JOURNEY 760 445}
            {OLD_JOURNEY 775 440}
            {OLD_JOURNEY 790 435}
            {OLD_JOURNEY 805 430}
            {OLD_JOURNEY 820 425}
            {OLD_JOURNEY 835 420}
            {OLD_JOURNEY 850 415}
            {OLD_JOURNEY 865 412}
            {OLD_BATTLE 880 410}
        [/then]
        [else]
            {JOURNEY_07A_OLD}
            {OLD_JOURNEY 859 438}
            {OLD_JOURNEY 865 429}
            {OLD_JOURNEY 871 420}
            {OLD_BATTLE 880 410}
        [/else]
    [/if]
#enddef

#define JOURNEY_09_NEW
    {JOURNEY_08_OLD}
    {NEW_JOURNEY 893 404}
    {NEW_JOURNEY 903 402}
    {NEW_JOURNEY 913 400}
    {NEW_BATTLE 930 395}
#enddef

#define JOURNEY_09_OLD
    {JOURNEY_08_OLD}
    {OLD_JOURNEY 893 404}
    {OLD_JOURNEY 903 402}
    {OLD_JOURNEY 913 400}
    {OLD_BATTLE 930 395}
#enddef

#define JOURNEY_10_NEW
    {JOURNEY_09_OLD}
    {NEW_BATTLE 930 380}
#enddef

#define JOURNEY_10_OLD
    {JOURNEY_09_OLD}
    {OLD_BATTLE 930 380}
#enddef

#define JOURNEY_11_NEW
    {JOURNEY_10_OLD}
    {NEW_JOURNEY 927 373}
    {NEW_BATTLE 922 363}
#enddef

#define JOURNEY_11_OLD
    {JOURNEY_10_OLD}
    {OLD_JOURNEY 927 373}
    {OLD_BATTLE 922 363}
#enddef

#define JOURNEY_12_NEW
    {JOURNEY_11_OLD}
    {NEW_JOURNEY 910 362}
    {NEW_JOURNEY 900 367}
    {NEW_JOURNEY 890 372}
    {NEW_JOURNEY 880 377}
    {NEW_JOURNEY 870 380}
    {NEW_BATTLE 860 383}
#enddef

#define JOURNEY_12_OLD
    {JOURNEY_11_OLD}
    {OLD_JOURNEY 910 362}
    {OLD_JOURNEY 900 367}
    {OLD_JOURNEY 890 372}
    {OLD_JOURNEY 880 377}
    {OLD_JOURNEY 870 380}
    {OLD_BATTLE 860 383}
#enddef

#define JOURNEY_13_NEW
    {JOURNEY_12_OLD}
    {NEW_JOURNEY 845 383}
    {NEW_JOURNEY 833 387}
    {NEW_JOURNEY 821 391}
    {NEW_JOURNEY 810 400}
    {NEW_JOURNEY 800 410}
    {NEW_JOURNEY 789 419}
    {NEW_JOURNEY 778 428}
    {NEW_JOURNEY 767 437}
    {NEW_JOURNEY 756 446}
    {NEW_JOURNEY 745 455}
    {NEW_BATTLE 735 465}
#enddef

#define JOURNEY_13_OLD
    {JOURNEY_12_OLD}
    {OLD_JOURNEY 845 383}
    {OLD_JOURNEY 833 387}
    {OLD_JOURNEY 821 391}
    {OLD_JOURNEY 810 400}
    {OLD_JOURNEY 800 410}
    {OLD_JOURNEY 789 419}
    {OLD_JOURNEY 778 428}
    {OLD_JOURNEY 767 437}
    {OLD_JOURNEY 756 446}
    {OLD_JOURNEY 745 455}
    {OLD_BATTLE 735 465}
#enddef

#define JOURNEY_14_NEW
    {JOURNEY_13_OLD}
    {NEW_JOURNEY 730 475}
    {NEW_JOURNEY 725 485}
    {NEW_JOURNEY 715 490}
    {NEW_JOURNEY 700 492}
    {NEW_JOURNEY 685 494}
    {NEW_JOURNEY 670 492}
    {NEW_JOURNEY 657 491}
    {NEW_JOURNEY 644 490}
    {NEW_JOURNEY 630 490}
    {NEW_JOURNEY 615 490}
    {NEW_JOURNEY 600 491}
    {NEW_BATTLE 585 492}
#enddef

#define JOURNEY_14_OLD
    {JOURNEY_13_OLD}
    {OLD_JOURNEY 730 475}
    {OLD_JOURNEY 725 485}
    {OLD_JOURNEY 715 490}
    {OLD_JOURNEY 700 492}
    {OLD_JOURNEY 685 494}
    {OLD_JOURNEY 670 492}
    {OLD_JOURNEY 657 491}
    {OLD_JOURNEY 644 490}
    {OLD_JOURNEY 630 490}
    {OLD_JOURNEY 615 490}
    {OLD_JOURNEY 600 491}
    {OLD_BATTLE 585 492}
#enddef

#define JOURNEY_15_NEW
    {JOURNEY_14_OLD}
    {NEW_JOURNEY 570 495}
    {NEW_JOURNEY 560 500}
    {NEW_JOURNEY 552 510}
    {NEW_JOURNEY 546 520}
    {NEW_JOURNEY 540 532}
    {NEW_JOURNEY 532 540}
    {NEW_JOURNEY 523 548}
    {NEW_JOURNEY 517 560}
    {NEW_JOURNEY 513 570}
    {NEW_BATTLE 510 583}
#enddef

#define JOURNEY_15_OLD
    {JOURNEY_14_OLD}
    {OLD_JOURNEY 570 495}
    {OLD_JOURNEY 560 500}
    {OLD_JOURNEY 553 510}
    {OLD_JOURNEY 548 520}
    {OLD_JOURNEY 543 530}
    {OLD_JOURNEY 532 540}
    {OLD_JOURNEY 521 550}
    {OLD_JOURNEY 516 560}
    {OLD_JOURNEY 512 570}
    {OLD_BATTLE 510 583}
#enddef

#define JOURNEY_16_NEW
    {JOURNEY_15_OLD}
    {NEW_JOURNEY 505 597}
    {NEW_REST 501 614}
#enddef

#define JOURNEY_16_OLD
    {JOURNEY_15_OLD}
    {OLD_JOURNEY 505 597}
    #{OLD_REST 501 614} # this would show under the next battle marker...
#enddef

#define JOURNEY_17_NEW
    {JOURNEY_16_OLD}
    {NEW_BATTLE 501 614}
#enddef

#define JOURNEY_17_OLD
    {JOURNEY_16_OLD}
    {OLD_BATTLE 501 614}
#enddef

#define JOURNEY_18_NEW
    {JOURNEY_17_OLD}
    {NEW_BATTLE 501 614}
#enddef
