my text RPG! read!

This is a discussion on my text RPG! read! within the C++ Programming forums, part of the General Programming Boards category; Are the monsters going to be a class called MONSTER? if they were, they could have an object of MEMSPELLS ...

  1. #16
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    Are the monsters going to be a class called MONSTER? if they were, they could have an object of MEMSPELLS and an object of SPELLBOOK or whatever specially in them.you could have a randomization function to randomly pick spells from their memspells struct, and another to remove energy.
    Personally, i would find a howl of pain when the monster got attacked quite satisfying.
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  2. #17
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    here is the zip with the exe. i promise i didnt put any virus on or anything, its just that i dont want to let anyone see my code yet. im sure somebody will download it, its virus free though.

    i stripped it down because a lot of parts are *almost* done but will make it look stupid when i put them in, so here you'll just get to have one fight. im also going to make a menu at the beginning. try it out and tell me what you think so far. when you choose '(f)ind', you will find a weapon in the current room, and put your old one on the ground. you can always switch back.

    EDIT: oh and you can only go south right now, im not sure what will happen if you go somewhere else, but i know i only coded one room to the south so far. and how much damage you deal with magic varies depending on your energy.

    also....try to get 4 or more damage....the monster says a line if you do more than 4 damage.
    Attached Files Attached Files
    Last edited by Leeman_s; 04-21-2002 at 01:24 PM.

  3. #18
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    It just goes into an eternal loop at the put points in stats thing.
    Is it because i have XP maybe?

  4. #19
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    How about an ABC Monster class? You could derive different types of monsters from it. This would also work for spells and characters too; it's what I'm using for my tile based game I just started :/

  5. #20
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    it will continue in the loop until you fill no more and no less than 40 points

  6. #21
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    ok now you can pick up scrolls and hold 3 at a time. i'll post what i have so far tomorrow...im going to bed

  7. #22
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Add a "Points left: " to the loop then...

  8. #23
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Instead of letting the player determine it's exact allocation of points you should have a 'blind allocation' system. The player is asked the level of importance for each category, and depending on the importance set for each category is how many points the category will get for the player. If the user decides that health is #1 then none of the other categories can be selected as #1. Each level of importance would already have a predetermined about of allocated points. #1 = 16, #2 = 12, #3 = 8, #4 = 4.

    An example:

    Health Importance = 2
    Speed = 3
    Strength = 1
    Magic = 4

    Then

    Health = 12 points
    Speed = 8 points
    Strength = 16 points
    Magic = 4 points

    IMO, this is a much more efficient system. It prevents the user from entering numbers such as 0 and the user from exceeding or deceeding 40. Plus it doesn't seem very realistic for the player to determine their exact points in each category.

    One other thing (this is actually directed at all text RPGs) is that their is very little explanation within the game. Possibly giving a little more explanation on certain aspects of the game would be helpful. What is magic for? What does 'speed' affect? Why move in a certain direction? These are all questions that are hard for the player to answer the first time around. Basically streamline an explanation with the interface of the game, while still keeping a good gameplay. Don't give away gameplay aspects; only give away explanations to aspects of the game that need explanations, such as the items mentioned above. Do you understand what I mean?

    All of that wasn't to say that your game isn't and doesn't have potential, though. You stated that you wanted to make an excellent game, and I'm trying to help you achieve that goal by criticism.

  9. #24
    Unregistered
    Guest
    Since you wanted comments here is my main gripe, use newline characters all the texts wrap around making it hard to read and then add a main loop so if you die you can start again instead of having to re run it.

  10. #25
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    magic - effects how much damage is dealt with scrolls

    strength - if #1, then damage will be double

    speed - if #1, then you get two attacks (new rand # calculated each attack)

    health - if#1, well you get a lot of it

    you can pick up scrolls, use them once. damage depends on your magic ability. I will add an intro, as well as a menu at the beginning. i will also add monster resistances as well as types of damage dealt (cold,fire,electricity). when you level up(every 1000 exp) you can choose to add 1 stats to your stats. anything else you can think of? oh yeah, you will be able to load and save (just need to learn how)

  11. #26
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    well here it is so far. it is coming along now (the engine that is). im not working on the levels, or anything like that yet. just the engine. you can download the exe of what i have so far. im still not going to release the source. well, this is what you get so far for 750 lines of code. you dont have to download the exe if you don't feel safe doing it, but like before i assure you it is nothing damaging or viruses or hacking/stupid stuff like that.
    Attached Files Attached Files

  12. #27
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    ::EDIT::
    THIS POST GOES BEFORE THE ABOVE POST> IT WAS POSTED NOT TOO LONG AFTERWORDS, AND THIS CONCERNS THE FIRST VERSION. THANK YOU.
    ::EDIT::

    Gripes:
    Make your own line wraps, make the menus vertical, add a help function, on menus use int getche(); to get an int, then cast into a character and use that in the switch or whatever. Have a keys page at the beginning and have a nice table that shows the room movement keys.

    These are possible NumPad commands:
    ------------- --North-- ----------- <---- 7 8 9
    ---West--- ---Find--- ---East--- <---- 4 5 6
    ------------- --South-- ----------- <---- 1 2 3

    and could be hit in the menu, no need to list them.

    Possile code for the menu is as follows:
    Code:
        system("cls");
        printf("Actions Menu:\n\n");
        printf("Q.  action1\n");
        printf("1.  action2\n");
        printf("2.  action3\n");
        printf("3.  action4\n");
        printf("4.  action5\n");
        printf("X.  action6\n");
        printf("\nMenu Selection: ");
        char c;
        c = (char)getche();
        cout << endl;
        switch (c){
        case '1':
        break;
        case '2':
        break;
        case '3':
        break;
        case '4':
        break;
        case 'Q':
        case 'X':
        system("cls");
        exit(0);
        break;
    Last edited by Inquirer; 04-22-2002 at 05:05 PM.
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 01:59 PM
  2. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 02:17 PM
  3. how do you read a whole line of text from a txt file
    By themexican in forum C++ Programming
    Replies: 3
    Last Post: 10-18-2005, 09:17 AM
  4. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 03:49 PM
  5. Read word from text file (It is an essay)
    By forfor in forum C Programming
    Replies: 7
    Last Post: 05-08-2003, 11:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21