Thread: text game
View Single Post
  #10 (permalink)  
Old November 18th, 2006, 03:02 PM
132591 132591 is offline
Authorized User
 
Join Date: Sep 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also I need help with something else. How would I keep track of a person's points and kills? I cannot simly do this
Code:
class thisroom{
    public:
        int killcount
};
void thisroom::actionsdesc(string act){
    if(act=="kill monster"){
        killcount++;
    }
}
cout <<thisroom::killcount <<endl;
also, how do I set actions that can only take place a fixed amount of times?

"Judge a man by his questions, not by his answers."
-Voltaire
\
Reply With Quote