Search:

Type: Posts; User: Dkunsberg

Search: Search took 0.00 seconds.

  1. Thread: Hi guys

    by Dkunsberg
    Replies
    14
    Views
    2,095

    About that type of game... If I want to make a...

    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...
  2. Replies
    31
    Views
    3,203

    Yeah, but, the way I see it, my code is perfectly...

    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...
  3. Replies
    31
    Views
    3,203

    Finally! got it! here it is (for what its worth)...

    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;
  4. Replies
    31
    Views
    3,203

    :) Yes! but it doesn't, and that is why I am so...

    :)
    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...
  5. Replies
    31
    Views
    3,203

    Okay right now I have: const int N = 21;...

    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
    }
  6. Replies
    8
    Views
    1,125

    I'm sure you'll probably get the same amount of...

    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...
  7. Replies
    31
    Views
    3,203

    I think that I have found the source of my...

    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....
  8. Replies
    31
    Views
    3,203

    first of all, all of what you guys said I either...

    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...
  9. Replies
    31
    Views
    3,203

    Great Thanks!!

    Great Thanks!!
  10. Replies
    31
    Views
    3,203

    //New Problems now, Fortunately, there are only...

    //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...
  11. Replies
    31
    Views
    3,203

    cool! Thanks alot! Two things- first, for srand...

    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...
  12. Replies
    31
    Views
    3,203

    OK, for starters, Thanks, The subtraction thing...

    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,...
  13. Replies
    31
    Views
    3,203

    hmm maybe.... I have been thinking, wat if i...

    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
  14. Thread: I did it!!!!

    by Dkunsberg
    Replies
    6
    Views
    1,096

    Hey, you know, if you just want to pause the...

    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...
  15. Replies
    31
    Views
    3,203

    Ya know what? I'm gonna write down my code, if...

    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...
  16. Replies
    31
    Views
    3,203

    oh, and how do you tag code?

    oh, and how do you tag code?
  17. Replies
    31
    Views
    3,203

    Thats just the thing I am trying to do, my ****...

    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
  18. Replies
    31
    Views
    3,203

    Yeah, apperently thats what I got, because I used...

    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...
  19. Replies
    31
    Views
    3,203

    :confused: Hmm, I'll look at it, though I'm not...

    :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
  20. Replies
    4
    Views
    899

    What is the diff between Dev-cpp and (good ol')...

    What is the diff between Dev-cpp and (good ol') regular C++
  21. Replies
    31
    Views
    3,203

    oh, I just reread the post, if you can't make...

    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
  22. Replies
    31
    Views
    3,203

    Gen. Rand. numb.s

    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...
Results 1 to 22 of 22