Hello, I have been creating a text-based strategy game set in the Medieval era. What I have so far is a menu, story, and a type of rating system. The game grants you with a certain amount of gold to buy your units with, and uses a type of rating system to score the units. Such as Strength, Defense, Damage. It incorparates the strengths and weaknesses of the units into the battles. But I am not sure if this would be the best way to do it. I am rating the defense and such on a scale of 1-10. Then I take the average of each units rating. I use this to fight the battles with. Ex. If 50 Cavalry units have an average of 7 per unit. And the 60 Pikemen have an average of 8 per unit, the pikemen would clearly win. Is this a good way of doing things?

06-27-2005

confuted

That's up to you, as the person who's coding the thing. It isn't some set rule.

06-29-2005

swgh

I am half way through a text game called Crystal of Myth, I am using DevC++ for it, as using my other compiler which is Microsoft Beta 2005 will no run as it is too updated!! lol, I get loads of silly errors such as Sleep(2000); is not defined and in DevC++ it defines it without error, strange I know..

anyway, in this game I am using the same sort of logic as you, and it is a good logic to use, but you must make sure that you decalre all your values as int and if you are using a player name system, use string get.line() as you get the entire name.

So far I have used 5000 lines of code and have spread it across 5 diffrent files, using the link feature to call each file when needed. Concidering I have only been learning C++ from January 05, It's not bad in my oppionin. I will post it on the game board when I finish it, but I will of course run through the whole thing first and eradicate errors and indent it a little better before I post it. Good luck in your game

06-29-2005

Sentral

Thanks for the support. I am currently swithing my game, to something more futuristic. I wasn't feeling the Medieval Strategy game, if you know what I mean :D . So I am planning on doing something more like Half-Life. It should be quite cool. It is going to startout in the console window, then I am going to move it up a notch each time. Since Half-Life is one of my inspirations, why not make a cheap replica. :)

07-01-2005

Renegade

is this text based game in a regular window, or in iostream dos window?

07-01-2005

Quantum1024

Quote:

Originally Posted by swgh

I am half way through a text game called Crystal of Myth, I am using DevC++ for it, as using my other compiler which is Microsoft Beta 2005 will no run as it is too updated!! lol, I get loads of silly errors such as Sleep(2000); is not defined and in DevC++ it defines it without error, strange I know..

If you want to use the beta of visual c++ you'll need to download the platform SDK and make sure Visual c++ is looking in the correct places for the includes and libraries. Devc++ is fine though.

07-01-2005

Sentral

My game is in the console window (DOS style window). I hope to eventually make it in a Win32 type window. With a scroll bar and buttons. Then eventually make it in 2D graphics.