If you're friend needs examples of stuff, he probably isn't good enough to tackle the massive task of building a combat system, and skills, and spells.
Of course:
[code]
int damage()
{
return (1+(int) (10.0*rand()/(RAND_MAX+1.0)));
}
[/quote]
Could be called an example of a combat system, but I think you're looking for something a *little* more complicated?
Looking at an example is not they way to do that, that one begins with a pencil, a piece of paper, a lot of caffeine and a lot of free time.
|