Expand|Select|Wrap|Line Numbers
- bool LevelUp()
- {
- if(PlayersLevel=1)
- {
- if (PlayersExp < 5)
- {
- }
- if (PlayersExp > 4)
- {
- cout<<"You have now reached Level 2\n\n";
- PlayersLevel==2;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=1
- if(PlayersLevel=2)
- {
- if (PlayersExp < 10)
- {
- }
- if (PlayersExp > 9)
- {
- cout<<"You have now reached Level 3\n\n";
- PlayersLevel==3;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=3)
- {
- if (PlayersExp < 15)
- {
- }
- if (PlayersExp > 14)
- {
- cout<<"You have now reached Level 4\n\n";
- PlayersLevel=4;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=4)
- {
- if (PlayersExp < 20)
- {
- }
- if (PlayersExp > 19)
- {
- cout<<"You have now reached Level 5\n\n";
- PlayersLevel==5;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=5)
- {
- if (PlayersExp < 30)
- {
- }
- if (PlayersExp > 29)
- {
- cout<<"You have now reached Level 6\n\n";
- PlayersLevel==6;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=6)
- {
- if (PlayersExp < 40)
- {
- }
- if (PlayersExp > 39)
- {
- cout<<"You have now reached Level 7\n\n";
- PlayersLevel==7;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=7)
- {
- if (PlayersExp < 55)
- {
- }
- if (PlayersExp > 54)
- {
- cout<<"You have now reached Level 8\n\n";
- PlayersLevel==8;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=8)
- {
- if (PlayersExp < 75)
- {
- }
- if (PlayersExp > 74)
- {
- cout<<"You have now reached Level 9\n\n";
- PlayersLevel==9;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=9)
- {
- if (PlayersExp < 100)
- {
- }
- if (PlayersExp > 99)
- {
- cout<<"You have now reached Level 10\n\n";
- PlayersLevel==10;
- AddPlayerPower();
- CheckLevelUp();
- RentRoom();
- }
- }//End If PlayersLevel=2
- }
- bool CheckLevelUp()
- {
- if(PlayersLevel=1)
- {
- if (PlayersExp < 5)
- {
- }
- if (PlayersExp > 4)
- {
- cout<<"\nYou should sleep so you can put together what you have learned.\n\n";
- }
- }//End If PlayersLevel=1
- if(PlayersLevel=2)
- {
- if (PlayersExp < 10)
- {
- }
- if (PlayersExp > 9)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=3)
- {
- if (PlayersExp < 15)
- {
- }
- if (PlayersExp > 14)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=4)
- {
- if (PlayersExp < 20)
- {
- }
- if (PlayersExp > 19)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=5)
- {
- if (PlayersExp < 30)
- {
- }
- if (PlayersExp > 29)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=6)
- {
- if (PlayersExp < 40)
- {
- }
- if (PlayersExp > 39)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=7)
- {
- if (PlayersExp < 55)
- {
- }
- if (PlayersExp > 54)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=8)
- {
- if (PlayersExp < 75)
- {
- }
- if (PlayersExp > 74)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- if(PlayersLevel=9)
- {
- if (PlayersExp < 100)
- {
- }
- if (PlayersExp > 99)
- {
- cout<<"You should sleep on what you've learned.\n\n";
- }
- }//End If PlayersLevel=2
- }
when im level 2....
and i dont have enough exp to level up...
and i run the level up thing...
it runs AddPlayerPower();
and it says you should sleep to put together what youve learned even though i dont have enough exp
my guess it is when i say PlayerLevel= or somthing like that but im not sure.
thanks