# RPG battle system

• 03-11-2003
napkin111
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
• 03-11-2003
TechWins
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.
• 03-12-2003
Blizzarddog
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.
• 03-12-2003
frenchfry164
Graphics will not change the outcome of math. Division is division, and addition is addition.
• 03-13-2003
Blizzarddog
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??
• 03-13-2003
LouDu
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.
• 03-13-2003
drdroid
...
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.
• 03-13-2003
frenchfry164
I'm not saying aragorn is addicted to morrowind, I am. I don't think they had morrowind in middle-earth :D

PS: it's not LOTK it's LOTR
• 03-13-2003
TechWins
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. :)
• 03-13-2003
drondiffcomp
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.
• 03-14-2003
Blizzarddog
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
• 03-14-2003
frenchfry164
Quote:

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.
• 03-15-2003
Blizzarddog
It's a joke. Girls go crazy for Legolas.
• 03-17-2003
Supar
LoL
hah bliz...frenchfry thought you were being serious...

I think he got excited :(
• 03-18-2003
Blizzarddog
Hehe.