Skip to main content

Web based RPG game ala Hack 'n Slash

  • In my first and previous post in this game dev log entry, I had written that I wanted to do a game which was a collection of simple retro games. Unity released a new major release (2019.3) while I was putting the initial project together, and I…

  • Well, I'm making a game . I'm spending the next few weeks on making a small game to showcase the gamedev log feature on tsumea where any member can create a game entry and other members can post journal posts with art, music or just development…

  • Just a test #2. Still working on the new section.

  • So, I got a Commodore 64 when I was in the 4th grade. It came bundled with a Rolf Harris picture building program on casette tape which never loaded properly but from what I could tell by its box cover, you could build pictures from a selection…

  • Yes, the site looks very different and I've had to prematurely switch to this new theme that I'm working on for a few reasons, the main one is that changing certain aspects of the site to fit the new theme will affect how the old one looks for…

  • (this is just a test, please ignore this entry)

    Here is some of my old work.. the first pic is of a 3d model of a human head I was working on about 2 years ago in 3dsmax, using nurbs. If I had to do it again, I wouldn't model a head with…

I currently work for

Submitted by souri on

I'm not sure if any of you used to play this Amiga BBS door game, but Hack 'n Slash was a pretty cool little text based RPG game. I've been thinking of doing a small web based game like that using flash/ASP/database in my own spare time (something to do while I'm bored I guess).. I think I can handle the code somewhat, but the game logic is what I'm pretty clueless about... say you're a level 12 warrior, with a level 5 weapon, lvl 10 armour, lvl watever skill etc, VS a lvl 14 monster with all his skill attributes, how do you go about calculating the outcome of every turn?.. this might take a long while to do, and I'm only doing it for fun, so it's probably a year off before I'll be showing anyone [;)] any tips or ideas appreciated..

Submitted by Blitz on Tue, 12/11/02 - 5:29 AMPermalink

As a first step, i'd suggest getting your hands on a couple of paper&pen RPG books (Dungeons and dragons, shadowrun etc.) and check out their combat systems.
CYer, Blitz

Submitted by Obsolete 386 on Tue, 12/11/02 - 10:30 PMPermalink

The calculations are a lot more simple then you're conveying them to be. I'm a bit of a DnD fan so here's what i think

All weapons come with a few Specs:
Damage
Class
Accuracy or magic ability
Etc

The damage is done after the player successfully hits the oponent, calculated by:

(Player Skill at using that weapon + Weapon accuracy or magic ability) - (Monster dodge + Monster Armour Class, or AC)
(Don't forget that in DnD there is dice rolling to determine what happens a lot of the time, so don't forget to add a randomness factor)
AC rating is the goodness factor of their armour.

I'll have a bit more of a read of my DnD books tonite and get back to you

100% chance of PAIN, in the GLAVEN

Submitted by souri on Tue, 12/11/02 - 11:23 PMPermalink

Thanks - seems to be pretty simple so far.. what about lvl building? how much levelling would you gain by beating someone with a similar or greater level etc?.. I guess I'll have to look up some books and examples like Blitz suggested, and hopefully get some decent kind of game play happening. Never played pen and paper DnD in my life, unfortunately.

Submitted by Daemin on Wed, 13/11/02 - 1:35 AMPermalink

Level building is generally an exponential function, although I would suggest starting it as a linear function, then at level 10 say (when the player is not a complete newb) make it grow exponentially.

Submitted by davidcoen on Wed, 13/11/02 - 3:58 AMPermalink

side note, one day i want to implement a robust enough GURPs engine that you can do full magical combat. (to extent of transform earth to air, air to stone etc and deform game map) and nice thing about gurps is that it tries to be ballanced~ but anyway...

if you ever have the inclination, try to find a copy of 'dork tower' comic book, they have some beautlfully balanced small scale games in the back to get some ideas (and they possibly would allow you to do an implementation if you asked)

Submitted by Daemin on Wed, 13/11/02 - 9:00 AMPermalink

I wouldn't suggest directly transforming a game system to the computer, since they won't work as intended or will take a lot more work to implement. What I suggest is you use your "Artistic Impression", and modify a few things, make certain things a lot simpler. I dunno maybe in future you can build upon your simple model and add a lot more features to it.

Submitted by souri on Thu, 14/11/02 - 3:30 PMPermalink

Yep, I'm going after something really simple, like Hack n Slash was. And yeh, something simple and then building upon that is definately the plan. I'm hoping for something like Hack n Slash in playing terms, and pixel art with buildings scenery from a topographic view like in Final Fantasy III on the SNES.. oh, and the battle scenes like that too. Seems very possible to do in Flash..

Submitted by Obsolete 386 on Thu, 14/11/02 - 10:20 PMPermalink

Sounds pretty good.
For lvl building, make all creatures have a formula for how muck XPerience you get from them. Working out how much you need to go up a level is up to you, but RPG making is a lot of number making. Look at Diablo 2. It would of taken them ages to work out all the numbers for that game.

100% chance of PAIN, in the GLAVEN

Posted by souri on

I'm not sure if any of you used to play this Amiga BBS door game, but Hack 'n Slash was a pretty cool little text based RPG game. I've been thinking of doing a small web based game like that using flash/ASP/database in my own spare time (something to do while I'm bored I guess).. I think I can handle the code somewhat, but the game logic is what I'm pretty clueless about... say you're a level 12 warrior, with a level 5 weapon, lvl 10 armour, lvl watever skill etc, VS a lvl 14 monster with all his skill attributes, how do you go about calculating the outcome of every turn?.. this might take a long while to do, and I'm only doing it for fun, so it's probably a year off before I'll be showing anyone [;)] any tips or ideas appreciated..


Submitted by Blitz on Tue, 12/11/02 - 5:29 AMPermalink

As a first step, i'd suggest getting your hands on a couple of paper&pen RPG books (Dungeons and dragons, shadowrun etc.) and check out their combat systems.
CYer, Blitz

Submitted by Obsolete 386 on Tue, 12/11/02 - 10:30 PMPermalink

The calculations are a lot more simple then you're conveying them to be. I'm a bit of a DnD fan so here's what i think

All weapons come with a few Specs:
Damage
Class
Accuracy or magic ability
Etc

The damage is done after the player successfully hits the oponent, calculated by:

(Player Skill at using that weapon + Weapon accuracy or magic ability) - (Monster dodge + Monster Armour Class, or AC)
(Don't forget that in DnD there is dice rolling to determine what happens a lot of the time, so don't forget to add a randomness factor)
AC rating is the goodness factor of their armour.

I'll have a bit more of a read of my DnD books tonite and get back to you

100% chance of PAIN, in the GLAVEN

Submitted by souri on Tue, 12/11/02 - 11:23 PMPermalink

Thanks - seems to be pretty simple so far.. what about lvl building? how much levelling would you gain by beating someone with a similar or greater level etc?.. I guess I'll have to look up some books and examples like Blitz suggested, and hopefully get some decent kind of game play happening. Never played pen and paper DnD in my life, unfortunately.

Submitted by Daemin on Wed, 13/11/02 - 1:35 AMPermalink

Level building is generally an exponential function, although I would suggest starting it as a linear function, then at level 10 say (when the player is not a complete newb) make it grow exponentially.

Submitted by davidcoen on Wed, 13/11/02 - 3:58 AMPermalink

side note, one day i want to implement a robust enough GURPs engine that you can do full magical combat. (to extent of transform earth to air, air to stone etc and deform game map) and nice thing about gurps is that it tries to be ballanced~ but anyway...

if you ever have the inclination, try to find a copy of 'dork tower' comic book, they have some beautlfully balanced small scale games in the back to get some ideas (and they possibly would allow you to do an implementation if you asked)

Submitted by Daemin on Wed, 13/11/02 - 9:00 AMPermalink

I wouldn't suggest directly transforming a game system to the computer, since they won't work as intended or will take a lot more work to implement. What I suggest is you use your "Artistic Impression", and modify a few things, make certain things a lot simpler. I dunno maybe in future you can build upon your simple model and add a lot more features to it.

Submitted by souri on Thu, 14/11/02 - 3:30 PMPermalink

Yep, I'm going after something really simple, like Hack n Slash was. And yeh, something simple and then building upon that is definately the plan. I'm hoping for something like Hack n Slash in playing terms, and pixel art with buildings scenery from a topographic view like in Final Fantasy III on the SNES.. oh, and the battle scenes like that too. Seems very possible to do in Flash..

Submitted by Obsolete 386 on Thu, 14/11/02 - 10:20 PMPermalink

Sounds pretty good.
For lvl building, make all creatures have a formula for how muck XPerience you get from them. Working out how much you need to go up a level is up to you, but RPG making is a lot of number making. Look at Diablo 2. It would of taken them ages to work out all the numbers for that game.

100% chance of PAIN, in the GLAVEN