About that type of game... If I want to make a realistic rpg game with everything but the graphics, should I use the old D&D hit'n miss system, or should I stick with always hitting and just doing...
Type: Posts; User: Dkunsberg
About that type of game... If I want to make a realistic rpg game with everything but the graphics, should I use the old D&D hit'n miss system, or should I stick with always hitting and just doing...
Yeah, but, the way I see it, my code is perfectly legit. What is causing it to screw up like this? My code works fine but still it is screwed up, sometime i should definititly be able to hit my...
Finally! got it!
here it is (for what its worth)
please see if this helps you.
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
:)
Yes! but it doesn't, and that is why I am so ****ing messed up!
This has been the problem, and as you can see I edited it while you were typing up your message. I don't get why! There is no...
Okay right now I have:
const int N = 21;
strike=rand()%N+attack;
cout << strike<< endl;
cin.get();
if (strike>enemyac)
{
//etc not the problem now
}
I'm sure you'll probably get the same amount of replies here as you would on any other C board, but, if I am correct, you might want to post this on the board for C, this is a board for C++ and most...
I think that I have found the source of my problems, if you look on the previous page at the source code I posted, you can see that I wanted to generate a random number between 0-20+ my attack bonus....
first of all, all of what you guys said I either know or have tried. First, I did display my attack and I did get random numbers between 1-20, as I expected, but no matter how high I hit I always...
Great Thanks!!
//New Problems now, Fortunately, there are only two left!
cin >> Problems;
switch (Problems)
{
case 1:
cout << "my first problem now is that I nor my enemy can hit each other, and the program...
cool! Thanks alot! Two things- first, for srand (time(NULL)) I need #include <ctime> right, if not, what do I use.
also, no, apperently, with my old random number generater, it seemingly only did...
OK, for starters, Thanks, The subtraction thing works well. I have another problem instead. As you see in my "while" loop the fighting should continue until one of us goes to or below Zero, correct,...
hmm maybe.... I have been thinking, wat if i used the rand()%11 thing to create a function for each weapon I used, thereby being able to change the dice roll as the weapon is upgraded or increased
Hey, you know, if you just want to pause the screen like you did, you can use this:
cin.get();
that will allow you to pause and then after you press enter it continues, but if you are planning to...
Ya know what? I'm gonna write down my code, if you need info from other parts of the code, tell me and I'll give it to you.
Here:
Void Fight (int estrike, int btd, int enemyhp, int hp, int...
oh, and how do you tag code?
Thats just the thing I am trying to do, my **** **** *** *** *** **** *** @)(!)*!ing laptop won't even recognise a CD when its in it, So frustrating!
i hope to have it up soon..
thanks
Yeah, apperently thats what I got, because I used a RAND_MAX type way of doing it and the stuff with Srand is the seed. Unfortunately, no matter how much I comnprehended that version of creating...
:confused: Hmm, I'll look at it, though I'm not sure I totally understand it,
if you have any other suggestions, please tell me, Thanks! :D
What is the diff between Dev-cpp and (good ol') regular C++
oh, I just reread the post, if you can't make sense of this without seeing my code I will get it up Asap. Sorry
I need help creating random numbers, as the title tells (sort of). I am really quite new to C++ and would like some answers for making the numbers. My problem is simple. I am making an sort of...