Text Based Game

Can someone help me make a text based game? I know how to let the user set their name, but I have no idea how to make monsters and stats and have the player battle monsters and increase stats and how to make the damage random, but not to random, like the number become greater depending on stats.
To make monsters why don't you try classes or structs to hold things like their health and damage?

Making the damage random, but increase with stats is fairly simple you need to make the bounds in which the random number is generated vary based on the person's stats.

so, for example:

random number lower bounds = playersdamage * 5
random number upper bounds = playersdamage * 6

I would make the stats scale exponentially rather than linearly like they do in almost all games, but you get the idea.
Oh im gonna need more than one class? damn, i dont know classes yet :/
Topic archived. No new replies allowed.