Advertisement
CaptainLepidus

Defending Tranquility

Oct 1st, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     w = 6;
  3.     h = 12;
  4.     for(i=0;i<w;i=i+1)
  5.     for(j=0;j<h;j=j+1)
  6.     {
  7.         tile[ i , j ] = 0;
  8.     }
  9.     if global.help == 0
  10.     {
  11.         mes = show_message_ext( 'Achievement Unlocked: Play the game without reading the help file.' , 'Read it Now' , '' , 'Continue' );
  12.         if mes == 1
  13.         {
  14.             show_info();
  15.         }
  16.         global.help = 1;
  17.     }
  18.     unitsMax = 0;
  19.     addUnits( sprSwordman , 'Swordman' , 32 , -1 , 5 , 2 ,  1 );
  20.     addUnits( sprBowman , 'Archer' , 32 , 48 , 3 , 1 , 2 );
  21.     addUnits( sprFireMage , 'Fire Mage' , 32 , 64 , 3 , 0 , 3 );
  22.     addUnits( sprAxeman , 'Axeman' , 32 , -1 , 3 , 3 , 1 );
  23.     addUnits( sprSpearman, 'Spearman' , 38 , -1 , 4 , 2 , 1 );
  24.     addUnits( sprArcher , 'Archer' , 32 , 48 , 3 , 1 , 2 );
  25.     unitMax = 0;
  26.     switch global.mission
  27.     {
  28.         case 0:
  29.         name = "Krongar's Uprising";
  30.        desc = "Our time is at hand. Destroy Lirna.";
  31.        team[ 0 ] = 'Krongar';
  32.        team[ 1 ] = 'Lirna';
  33.        tile[ 2 , 0 ] = 2;
  34.        tile[ 2 , 1 ] = 2;
  35.        tile[ 2 , 2 ] = 2;
  36.        tile[ 2 , 3 ] = 2;
  37.        
  38.        tile[ 2 , 8 ] = 2;
  39.        tile[ 2 , 9 ] = 2;
  40.        tile[ 2 , 10 ] = 2;
  41.        tile[ 2 , 11 ] = 2;
  42.        addUnit( 3 , 3 , 3 , 0 );
  43.        addUnit( 3 , 3 , 7 , 0 );
  44.        addUnit( 2 , 3 , 5 , 0 );
  45.        addUnit( 0 , 1 , 3 , 1 );
  46.        addUnit( 1 , 1 , 5 , 1 );
  47.        addUnit( 1 , 0 , 4 , 1 );
  48.        break;
  49.        case 1:
  50.        name = "Lirna's Counterattack";
  51.         desc = "Wreak vengeance upon the traitors.";
  52.         team[ 0 ] = 'Lirna';
  53.         team[ 1 ]= 'Krongar';
  54.         for(i=0;i<w;i=i+1)
  55.         for(j=0;j<h;j=j+1)
  56.         {
  57.             tile[ i , j ] = 3;
  58.         }
  59.         addUnit( 0 , 2 , 2 , 0 );
  60.         addUnit( 1 , 2 , 3 , 0 );
  61.         addUnit( 0 , 2 , 4 , 0 );
  62.         addUnit( 1 , 2 , 5 , 0 );
  63.         addUnit( 0 , 2 , 6 , 0 );
  64.         addUnit( 1 , 2 , 7 , 0 );
  65.         addUnit( 0 , 2 , 8 , 0 );
  66.         addUnit( 2 , 4 , 5 , 1 );
  67.         addUnit( 3 , 4 , 4 , 1 );
  68.         addUnit( 3 , 4 , 6 , 1 );
  69.         break;
  70.         case 2:
  71.         name = "Ishtar's Ambush";
  72.        desc = "Krongar's men have camped in your territory. Kill them.";
  73.         team[ 0 ] = 'Ishtar';
  74.         team[ 1 ] = 'Krongar';
  75.         tile[ 2 , 0 ] = 1;
  76.         tile[ 2 , 1 ] = 1;
  77.         tile[ 2 , 2 ] = 1;
  78.         tile[ 2 , 3 ] = 1;
  79.         //tile[ 2 , 4 ] = 1;
  80.         //tile[ 2 , 5 ] = 1;
  81.         //tile[ 2 , 6 ] = 1;
  82.         tile[ 4 , 1 ] = 2;
  83.         tile[ 4 , 2 ] = 2;
  84.         tile[ 4 , 3 ] = 2;
  85.         tile[ 4 , 4 ] = 2;
  86.         tile[ 4 , 5 ] = 2;
  87.         tile[ 3 , 6 ] = 2;
  88.         tile[ 1 , 1 ] = 2;
  89.         tile[ 1 , 2 ] = 2;
  90.         tile[ 1 , 3 ] = 2;
  91.         tile[ 1 , 4 ] = 2;
  92.         tile[ 1 , 5 ] = 2;
  93.         tile[ 2 , 6 ] = 2;
  94.         addUnit( 4 , 1 , 6 , 0 );
  95.         addUnit( 5 , 3 , 7 , 0 );
  96.         addUnit( 4 , 2 , 8 , 0 );
  97.         addUnit( 3 , 3 , 1 , 1 );
  98.         addUnit( 2 , 3 , 2 , 1 );
  99.         //addUnit( 3 , 3 , 5 , 1 );
  100.         break;
  101.         case 3:
  102.         name = "An Uneasy Alliance";
  103.         desc = "Lirna and Ishtar unite against Krongar.";
  104.         team[ 0 ] = 'Alliance';
  105.         team[ 1 ] = 'Krongar';
  106.         addUnit( 0 , 0 , 0 , 0 );
  107.         addUnit( 0 , 0 , 1 , 1 );
  108.         break;
  109.         case 4:
  110.         name = "Last Stand";
  111.         desc = "The enemy draws near. For Krongar!";
  112.         team[ 0 ] = 'Krongar';
  113.         team[ 1 ] = 'Alliance';
  114.         addUnit( 0 , 0 , 0 , 0 );
  115.         addUnit( 3 , 4 , 0 , 1 );
  116.         addUnit( 3 , 4 , 1 , 1 );
  117.         addUnit( 3 , 4 , 2 , 1 );
  118.         addUnit( 2 , 4 , 3 , 1 );
  119.  
  120.     }
  121.     sx = -1;
  122.     sy = -1;
  123.     sprite_index = sprTile;
  124.     image_speed = 0;
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement