IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Zen on November 27, 2006, 03:00:51 AM

Title: A Little Help
Post by: Zen on November 27, 2006, 03:00:51 AM
Hi guys.

Well todays little problem for me is... I am currently working on some daft bits and pieces for a game and I am really puzzled at the moment on how I am going to calculate statistics and battle results. The game won't be a 2D or 3D game actutally, but it will be a sort of automated game where you train your player with various skills then fight other players. I know this is all going to be a lot of maths to work out who should win etc, I can't even get my head to start working it out so I just wondered if anyone has done anything like this before? Where numerous values need to be taken into acount, just to get me on the right tracks.

Lewis
Title: Re: A Little Help
Post by: Ionic Wind Support Team on November 27, 2006, 04:32:03 AM
Used to play D&D on paper when I was a lad.  Just roll the dice to generate stats and when a battle happens between two players another roll decides the outcome.
Title: Re: A Little Help
Post by: J B Wood (Zumwalt) on November 27, 2006, 04:45:09 AM



struct MonsterID
{
   int HP;
}

// some sub
MonsterID *Monster;
Monster.HP=100;

int i=0;
i=rnd(20);
if(i=0);
i=1;
WeaponDmg=10;
// did I hit?
if(i>10)
   Monster.HP-=WeaponDmg;


That should work, just threw it together in the thread.
Title: Re: A Little Help
Post by: Zen on November 27, 2006, 07:05:29 AM
lol Just go with the flow eh Jonathan? Well thats what i decided initialy, and that part is fairly simple. However i will be taking AT LEAST the following user statistics/skills into acount...

Health Points
Armor
Fitness
Tactical Ability
Weapon Damage

Obviously, if someone has better Armor and a better weapon (causes more damage), if the oponent was hugley better with tactics, he may still win etc. To make it realistic I can't just say whoever is stronger and has the better weapon wins. This is why i can't even decide what to calculate first, so i thought i would seek here incase anyone had any experience in making a game like this before.

Paul, what is D&D? I've not heard of that before, only thing close i've heard of is DoD :P What an awesome game that is.

Lewis
Title: Re: A Little Help
Post by: Ionic Wind Support Team on November 27, 2006, 07:18:04 AM
Dungeons and Dragons.  Fantasy role playing without the PC.
Title: Re: A Little Help
Post by: Zen on November 27, 2006, 07:19:03 AM
Ohhh yeah I know what you mean. Never played it myself but I've obviously heard of it. Still quite big today i believe

Lewis
Title: Re: A Little Help
Post by: Blue Steel on November 27, 2006, 07:34:42 AM
Who Gets their swing off first : inititive = weapon speed + Agility bonuses +racial bonuses +D6

To hit ArmorClass or did it miss = D20 - Ac bonus and also minuses depending on type of weapon against type of armor.. if its a 20 then its a critical hit.. then roll on a table to see what extra damage is done.. if its a 1 then its a fumble .. roll on a table to see what misfortune happened

Damage How much damage weapon does Dx where x is the random number up to what the weapon can do.. eg: dagger 1-3 sword 1-6 and also weapon bonuses on damage 

Its not that hard to simulate the Die rolls but to put it all together takes time ;)

(i did something similar back on the goodf old Commodore C64 and also on the Amiga)
Title: Re: A Little Help
Post by: John S on November 27, 2006, 08:08:21 AM
Remember Tunnels of Doom on the TI99a?  My brothers used to play D&D, then we played ToD for hours.
The graphics were very simple (limited by technology), but it was great fun.
Title: Re: A Little Help
Post by: Blue Steel on November 27, 2006, 08:10:42 AM
yeah... these days its more about eye candy than game play :(
Title: Re: A Little Help
Post by: J B Wood (Zumwalt) on November 27, 2006, 08:19:30 AM
I'll be releasing the Flying Invaders code sometime soon, got issues at the moment with the invaders firing back, simple fix, just haven't found the bug.
Once I do, you can take a look at how I handle damage control and hit locations.
There is alot in that code.
Title: Re: A Little Help
Post by: Zen on November 27, 2006, 08:51:39 AM
Thanks for the advice guys. I will try and piece some stuff together and ill see how it goes. I just didnt want to jump into the deep end and then realise all my code was a total mess. So thanks a lot.

Lewis
Title: Re: A Little Help
Post by: J B Wood (Zumwalt) on November 27, 2006, 09:45:10 AM
Jump in anyway, only way to learn it, you always have the option to rewrite it once you have chicken soup.
Title: Re: A Little Help
Post by: MikeHart on November 27, 2006, 10:14:02 AM
Quote from: Paul Turley on November 27, 2006, 04:32:03 AM
Used to play D&D on paper when I was a lad.ÂÃ,  Just roll the dice to generate stats and when a battle happens between two players another roll decides the outcome.
D&D... 1982, man that were times. Sitting together till the morning comes, slashing orcs and ghouls, getting pissed, happy, angry, whatever. Sometimes I miss these days.
Title: Re: A Little Help
Post by: Ionic Wind Support Team on November 27, 2006, 10:29:10 AM
Yes it would have been around 1982 for me as well.  Every day after school the gang would get together in the cafateria.  Lots of fun.
Title: Re: A Little Help
Post by: Zen on November 27, 2006, 12:17:16 PM
... I wasnt even born then :(

Lewis
Title: Re: A Little Help
Post by: Rock Ridge Farm (Larry) on November 27, 2006, 01:07:59 PM
In the early 70's we played rogue - probably one of the first D&D games.
I wrote my first version of Star Trek in 74 I think.
We had fun games like "Hunt the Wumpus" and a couple of others I can not remember.
But then Unix ran in 8K of memory with 16 ports for users, disk drives were as big as washing machines
and we marveled at how small they were. :)
Title: Re: A Little Help
Post by: LarryMc on November 27, 2006, 01:54:27 PM
Lewis,
You mean I've got socks older than you!
Thanks a bunch! ;)
Title: Re: A Little Help
Post by: Steven Picard on November 27, 2006, 02:00:33 PM
Quote from: Larry McCaughn on November 27, 2006, 01:54:27 PM
Lewis,
You mean I've got socks older than you!
Thanks a bunch! ;)
Do you think it's about that time to change them.  ;D
Title: Re: A Little Help
Post by: LarryMc on November 27, 2006, 02:03:53 PM
Change them?, no!
Turn them inside out? You bet! ;D
Title: Re: A Little Help
Post by: Zen on November 28, 2006, 02:24:02 AM
He he, Yeah I am a bit of a baby in the group. Well second youngest anyway. But I enjoy reading the topics about the things you all did when you were younger, makes me wonder what i will be telling younger kids one day. When all we had was a dual core amd processor and dual screens to work with... ohh yeah and only 1gb of ram :P

Lewis
Title: Re: A Little Help
Post by: Bruce Peaslee on November 28, 2006, 10:37:06 AM
Quote from: Larry McCaughn on November 27, 2006, 02:03:53 PM
Change them?, no!
Turn them inside out? You bet! ;D

Better keep your boots on, partner, unless you want to set off the smoke detector.  ;)
Title: Re: A Little Help
Post by: Ionic Wind Support Team on November 28, 2006, 02:13:00 PM
I did that once trying to dry my socks in a microwave oven ;)
Title: Re: A Little Help
Post by: LarryMc on November 28, 2006, 02:47:23 PM
At least you didn't dry the cat! ;D
Title: Re: A Little Help
Post by: Rod on November 29, 2006, 11:25:43 AM
Quote from: Zen on November 27, 2006, 12:17:16 PM
... I wasnt even born then :(

You gotta rub it in????
Title: Re: A Little Help
Post by: LarryMc on November 29, 2006, 11:40:00 AM
Sometimes I feel like the cave man in the commercials. :D
Title: Re: A Little Help
Post by: Ionic Wind Support Team on November 29, 2006, 11:56:20 AM
I think the cavemen are cool.
Title: Re: A Little Help
Post by: Rock Ridge Farm (Larry) on November 29, 2006, 06:12:40 PM
Mmmmmmm - If they had no hair on the head and a grey beard - Mmmmmmmm.
I resemble that remark.
Title: Re: A Little Help
Post by: Zen on November 30, 2006, 02:45:26 AM
he he sorry to rub it in Rod. Its strange, I don't know why, perhaps because not many of us on this forum have real pictures of themselves, I don't imagine people being older, I sort of just imagine everyone being of a simmilar age group to myself. But, I don't think the age matters anyway.

Lewis
Title: Re: A Little Help
Post by: J B Wood (Zumwalt) on November 30, 2006, 06:26:18 AM
maybe not age group, probably more like same mental group :)
;)
Title: Re: A Little Help
Post by: Zen on November 30, 2006, 06:37:50 AM
:o Are you saying I am immature Jonathan ;)

Lewis
Title: Re: A Little Help
Post by: J B Wood (Zumwalt) on November 30, 2006, 01:42:22 PM
 ;D No, I am calling you mentalÂÃ,  :P

sorry got a little off topic ...
Title: Re: A Little Help
Post by: Rod on December 18, 2006, 12:49:55 PM
For the benefit of those living outside the USA, the "cavemen" previously referenced are characters in a series of television advertisements here. The first in the series claimed that an insurance company's website was so easy "even a caveman could use it". The scene cuts to a fancy restaurant, where the insurance company's lawyers are treating a couple of cavemen to lunch, and expalining "We really meant no offense! To be honest, we didn't think you guy's existed anymore."

The series has continued with other encounters between the highly-insulted cavement (who wear suits, catch flights, and use Blackberrys) and the insurance company's representatives.

The latest has the most outspoken of the cavemen in session with a therapist. He asks her "How would you like it if the commercial said "So easy a therapist could use it"?".

It is a very funny and very creative series of commercials here. Hopefully, it will make the "Best of ..." specials in other parts of the world.