Qbasicnews.com

Full Version: RPG equations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so what are some equatoins for attack and what not.

like
Code:
attack damage = (rnd * attack points)
but more complex to give better numbers

and all those math classes i took.......
My method is to have a min attack, a max attack and a defence, i then do

Code:
damage = (RND * maxattack) + minattack
damage = damage - defence ' if it you attacking the enemy it is take away the enemy's defence
' i put e in front of the word for the enemys attack and stuff

Then i work out the enemy/your health minus damage, if your/enemy health is less than one then you win/lose and stuff like that.
Ultimately it depends on the numbers you're using.... With the numbers I was using I found some sort of formula so that the attack power gets taken down a random number based on defense....

Overall the best advice I have for you is just expiriment and find something that works for you... that's what I did. Unfortunately my gameplay sucked..... BUT my battle engine rocked. So yeah, just mess around with it, you'll find it's not too difficult.
I would suggest the usage of an existing System.
Nobody would sue you for using for example the World of Darkness D10 Ruleset, which i would fancy to see in some QB/FB-RPG Wink
Maybee even a noble Simba(Werelions/ Bastet) group versus some cruel Garous and Vampires *eg*
Or edit mine at http://www.freewebs.com/qbasicguysarchive/battle.bas it take long ways around short ones, it needs
INKEY$ changed to key$ = INKEY$

and a few more things done, and uses goto a lot when CASE or block IF could do it.
I tend to use the D20 system.. it just "feels" right to me and isnt overly complex... but im a D&D geek :Confusedhrug::
Quote:I tend to use the D20 system.. it just "feels" right to me and isnt overly complex... but im a D&D geek ::shrug::
Here Here!!!!
I....*rolls die* concur!
when it comes to rpgs i think D&D is a good referance. after all was isnt it the first "RPG"