RPG battle system

This is a discussion on RPG battle system within the Game Programming forums, part of the General Programming Boards category; I'm making a 2D RPG similar to Lufia with my group, and I'm trying to think up a good battle ...

  1. #1
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310

    RPG battle system

    I'm making a 2D RPG similar to Lufia with my group, and I'm trying to think up a good battle system. I'm thinking of having STR, INT, DEX, and CON. These are what I call the "prime stats", as they affect other stats, like AC, Accuracy, ToHit bonus, Damage bonuses, resistances, MHP, MMP, etc... Now I'm trying to think up a good way to combine these for battle. Something like you roll (Accuracy+ToHit bonus) and if that is greater than the enemies AC than you hit them for (weapon damage+damage bonus-enemy Armor). Hmmm, now that I think about it that sounds like a decent way of doing it...

    Hmm, now how to derive the smaller stats from the prime stats?
    MHP=CON+(STR/2)?
    MMP=INT+(DEX/2)?

    Hmmm, If I could combine all 4 prime stats in some way to come up with 4 other small stats, based on the combination of 2 primes...

    Thanks for reading my thinking process heh, any input is appreciated

    //napKIN
    "The best way to get answers is to just keep working the problem, recognizing when you are stalled, and directing the search pattern.....Donít just wait for The Right Thing to strike you Ė try everything you think might even be in the right direction, so you can collect clues about the nature of the problem."
    -John Carmack

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Here is a good discussion on RPG's at allegro.cc. Do a search there, and you'll be able to find even more discussion. I'm sure if you look through a couple of those threads you'll be able to formulate some good ideas for your game.

  3. #3
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Try this:

    Code:
    int dam = (STR*2/DEX)
    int Tdam = rand() % dam;
    Use that idea to get a decent battle damage... I use it in my Text games, it should work with graphics i think, im not sure though.
    This war, like the next war, is a war to end war.

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Graphics will not change the outcome of math. Division is division, and addition is addition.

  5. #5
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    2 things:
    1) I meant the engine.
    2) You have Addicted to Morrowind over your avatar, but the avatar is strider from LOTK.. Whats that for??
    This war, like the next war, is a war to end war.

  6. #6
    |<o>| <--cyclopse LouDu's Avatar
    Join Date
    Mar 2003
    Posts
    137
    Hey i am in a similar perdictament with a great battle system for an RPG, if anyone want to sahare ideas and create one to be used in multiple games please contact me and would be happy to work with someone on jsut this.
    Languages <> C++, HTML

    /*The Ledgend of Ludlow Coming to a PC Near
    You intro Cinenmatic Needed email me of
    Reply to one of my threads if you can make
    one, thats decent. */

  7. #7
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ...

    If I were you I'd also add spd(speed) to the stats. That'd be a good way to order attacks. Make a random number and whoever scores higher goes first, and then have the other person go next.

  8. #8
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I'm not saying aragorn is addicted to morrowind, I am. I don't think they had morrowind in middle-earth

    PS: it's not LOTK it's LOTR

  9. #9
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Loudu, I highly doubt anyone is going to want to do that but good luck.

    Blizzarddog,

    1) Not much will change in an RPG between console and a graphical game, except the drawing primitives. The same basic code structure still applies for both instances.

    2) I have Thrice (a cool band) as my custom text, but my avatar is of Saves the Day (a different band yet still cool). It doesn't seem all that far fetched, to me, for ff to have his custom text and avatar unrelated to each other.

    drdroid, I agree with you, and I, also, think that more variables than just speed should be added into the equation, such as health. IMO, a character who has full health should do a lot more damage than a character who is nearly dead.

  10. #10
    drondiffcomp
    Guest

    Wink

    Dr. Droid Here, I also agree that you should have multiple variables in speed. However it shouldn't be that they come together but the health etc. directly affect the spd. That way, on map interface, when your running across screen, you go slower, in battle your slower etc. Again, this is Dr. Droid on another computer, I'm just to lazy to log back in.

  11. #11
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Techwins:
    Yea, i know.... I just it was wierd.....

    Frenchfry:
    You know, if you use legolas, you'll be able to easily get a girlfriend..... :P
    This war, like the next war, is a war to end war.

  12. #12
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    You know, if you use legolas, you'll be able to easily get a girlfriend..... :P
    what's your logic behind that? nobody I know posts here.

  13. #13
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    It's a joke. Girls go crazy for Legolas.
    This war, like the next war, is a war to end war.

  14. #14
    Registered User
    Join Date
    Jan 2002
    Posts
    75

    LoL

    hah bliz...frenchfry thought you were being serious...

    I think he got excited

  15. #15
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Hehe.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New system build wont boot
    By lightatdawn in forum Tech Board
    Replies: 7
    Last Post: 12-02-2005, 05:58 AM
  2. Using mscorlib & system namespace in an MFC?
    By Robert_Sitter in forum C++ Programming
    Replies: 3
    Last Post: 11-13-2005, 05:47 PM
  3. Opinions on custom system build
    By lightatdawn in forum Tech Board
    Replies: 2
    Last Post: 10-18-2005, 04:15 AM
  4. MUD Style RPG System
    By flaran in forum Game Programming
    Replies: 2
    Last Post: 10-16-2005, 08:18 PM
  5. Triying to make an RPG...... usuccesfully
    By Marcos in forum Game Programming
    Replies: 6
    Last Post: 06-11-2003, 11:33 PM

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