const int CR_XP = 12; const int CR_LVL = 13; const int L1String = 101 const int L1String = 102 const int L1String = 103 const int L1String = 104 const int L1String = 105 const int L1String = 106 const int L1String = 107 const int L1String = 108 const int L1String = 109 const int L1String = 110 const int L1String = 111 const int L1String = 112 const int L1String = 113 const int L1String = 114 const int L1String = 115 const int L1String = 116 const int L1String = 117 const int L1String = 118 const int L1String = 119 const int L1String = 120 level = 0 while true{ while ( LevelNext = 0 ) { if ( Game->Counter[CR_XP] > 0 ) && ( Game->Counter[CR_XP] < 100 ){ Game->Counter[CR_LVL] = 0; } if ( Game->Counter[CR_XP] >= 100 ) && ( Game->Counter[CR_XP] < 150 ){ Game->Counter[CR_LVL] = 1; //Game->Counter[CR_LVL]++; Level1(); } if ( Game->Counter[CR_XP] >= 150 ) && ( Game->Counter[CR_XP] < 225 ){ Game->Counter[CR_LVL] = 2; Level2(); } if ( Game->Counter[CR_XP] >= 225 ) && ( Game->Counter[CR_XP] < 338 ){ Game->Counter[CR_LVL] = 3; Level3(); } if ( Game->Counter[CR_XP] >= 338 ) && ( Game->Counter[CR_XP] < 507 ){ Game->Counter[CR_LVL] = 4; Level4(); } if ( Game->Counter[CR_XP] >= 507 ) && ( Game->Counter[CR_XP] < 760 ){ Game->Counter[CR_LVL] = 5; Level5(); } if ( XGame->Counter[CR_XP] >= 760 ) && (Game->Counter[CR_XP]< 1140 ){ Game->Counter[CR_LVL] = 6; Level6(); } if ( Game->Counter[CR_XP] >= 1140 ) && ( XGame->Counter[CR_XP] < 1710 ){ Game->Counter[CR_LVL] = 7; Level7(); } if ( Game->Counter[CR_XP] >= 1710 ) && ( Game->Counter[CR_XP] < 2565 ){ Game->Counter[CR_LVL] = 8; Level8(); } if ( Game->Counter[CR_XP] >= 2565 ) && ( Game->Counter[CR_XP] < 3848 ){ Game->Counter[CR_LVL] = 9; Level9(); } if ( Game->Counter[CR_XP] >= 3848 ) && ( Game->Counter[CR_XP] < 5772 ){ Game->Counter[CR_LVL] = 10; Level10(); } if ( Game->Counter[CR_XP] >= 5772 ) && ( Game->Counter[CR_XP] < 8658 ){ Game->Counter[CR_LVL] = 11; Level11(); } if ( Game->Counter[CR_XP] >= 8658 ) && ( Game->Counter[CR_XP] < 12987 ){ Game->Counter[CR_LVL] = 12; Level12(); } if ( Game->Counter[CR_XP] >= 12987 ) && ( Game->Counter[CR_XP] < 19481 ){ Game->Counter[CR_LVL] = 13; Level13(); } if ( Game->Counter[CR_XP] >= 19481 ) && ( Game->Counter[CR_XP] < 29222 ){ Game->Counter[CR_LVL] = 14; Level14(); } if ( Game->Counter[CR_XP] >= 29222 ) && ( Game->Counter[CR_XP] < 43833 ){ Game->Counter[CR_LVL] = 15; Level15(); } if ( Game->Counter[CR_XP] >= 43833 ) && ( Game->Counter[CR_XP] < 65750 ){ Game->Counter[CR_LVL] = 16; Level16(); } if ( Game->Counter[CR_XP] >= 65750 ) && ( Game->Counter[CR_XP] < 98625 ){ Game->Counter[CR_LVL] = 17; Level17(); } if ( Game->Counter[CR_XP] >= 98625 ) && ( Game->Counter[CR_XP] < 147938 ){ Game->Counter[CR_LVL] = 18; Level18(); } if ( Game->Counter[CR_XP] >= 147938 ) && ( Game->Counter[CR_XP] < 221907 ){ Game->Counter[CR_LVL] = 19; Level19(); } if ( Game->Counter[CR_XP] >= 221907 ){ Game->Counter[CR_LVL] = 20; Level20(); } } void Level1(int x) { Screen->Message[L1String]; Link->MP += 256; //Increases MP by value of D3 Link->MaxMP += 256; //Increases Max MP by value of D2 int LevelNext = 2 }