Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Battle System (Like Final Fantasy X)...How is it done?

Author
Message
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 26th Jul 2004 03:11
I dont want the code for the actual battle system or anything, I just needs "clues" to how it works. Like...

What is the easiest way to deal damage?
What file dormats is best used?
How do I tell it to lower there hit points and keep track of it?

Things like that. Any help would be greatly apprecieted.
Thnx in advance.
Ragnarok
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 26th Jul 2004 03:32
Use integers for hp/sp and stats. Roll dice to calculate damage or use the rnd function.

-Ilya
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 26th Jul 2004 05:09
this ones pretty easy coz i tryed doing on when i did my dos programming.

file format isn't too much of a problem. just hope your good at drawing and/or modeling.

Like Ilya said intergers are best for HP and SP and don't forget Mana. Always a good one to remember in my eyes.

Damage should be calculated with basic maths and then u got elemental damage. here is a sudo code way of doing it (plain english not code as such)

Weapon Hits monster

Damage equals random number between weapons minimum hits and max hits + strength

IF elemental weapon (eg.thunder) and monster is opposite (eg. water) THEN Damage is multiplied by 3

monsters HP has the damage taken away from it and if 0 or less its dead otherwise it still lives

etc etc

thing to remember is that if the monster is the same element then it gets healed from the attack.

i could list the hole lot coz i play ff type games all the time

if u do then i gladly will do. just don't come to me complaining of a head ache

hopefully this helps u out a bit.

oh and one more thing if you've ever played grandia or grandia 2. you'll know they are real time battles and not turn based. its worth trying that out
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 26th Jul 2004 05:17
Yeah Roll A Dice And Use Real-Time. I Like RealTime Better Than Turn-Based

-Ilya
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 27th Jul 2004 05:12
thanks Ilya and DLS.

Only thing is I'm new to programming but i get the code easy, but what do you mean by use integers how do i make the minimum more than 0.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 27th Jul 2004 05:19
Oh...yeah...what do you mean by "just hope your good at drawing/or modeling" you mean like draw all(or enough for it to look like they are moving) and load them as 2d objects. Don't get me wrong...I love to draw but isn't that hard?
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 27th Jul 2004 05:38
It ain't that hard really. i make my own 3D models and that take time but its worth it in the end.

saying about drawings... make sure u do em as bmp files that way u can add transparancy to em and not have em look like silly squares. i been there and done that. quite funny at first.

To make the minimum more than 0 u just need to code it into the game. it'll become apparant when u start on it what i'm on about.

One last thing. going back to the graphics. the biggest killer of making games is the graphics part so just doodle a stick man and make it look like he's walking. then when u got the coding sorted out use the stick man to draw the person.

as i said it takes time but u only get out of it what ya put into it as i too am new to DB. but i'm not new to programming games.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 27th Jul 2004 05:41
Ah, well I'm not trying to make a game...just proving to myself that i can do it lol.Also ohw would i see how to make em move....could i just use 3d blocks to test it or not?
Nameless
20
Years of Service
User Offline
Joined: 11th Apr 2004
Location: U.S.A.
Posted: 27th Jul 2004 06:09
Don't mean to steal your thread Ragnarok but I also have a question about battle systems. I am making a realtime battle system and I'm doing well but I have a question about attacking. For the enemy to recieve damage they need to be hit by the weapon( in this case a sword) but how am I suppose to tell if its the sword hitting the enenmy or the player. I immediately think of loading the weapon as a different object and testing for collision from the weapon but that seems to complicated. Thanks to anyone that answers.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 27th Jul 2004 06:17
No problem DB programmer...actually I was wondering that myself (even though I havn't really gotten that far So thanks for posting that lol.
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 27th Jul 2004 06:56
just test to see if the sword has actually hit the monster while ignoring the character holding it. so its like if sword collides with monster take 10 hp off or summat like that.

going off topic here a bit. i'm making a 3D game and i'm struggling badly with it yet i'm answering this thread like its second nature to me . i spend too long playing games *goes and hide in shame*

i once thought of doing an rpg type game but gave up coz i didn't have enough time to do it.

anyway ragnarok, u could use 3D objects for testing i guess. i'm not a true expert on these matters it just happens i know what goes into them and how it could possibly get done.

and theres no harm in trying to make one. u could learn bits and bats of coding and then tie it into the game.
Yart
20
Years of Service
User Offline
Joined: 23rd Jun 2004
Location: Turkey Sandwich
Posted: 27th Jul 2004 22:06 Edited at: 27th Jul 2004 22:07
I got a better idea for the elemental damage, lets say theres

Fire
Earth
Water
Wind

And the guys are like Whoa! We're fire guys! But we hate water but love oxygen. Have a multiplyer not in the sense of 3x or whatever, but by percentage!

All attacks do 100%, but an elemental attack does more if it is the monster's weakness.
Kinda like you'll do 50% damage with Fire or even 25% and 35% with Wind and maybe a good 40% with Ground BUT you will do lets say %200 to %300 damage with Water.

It all came to mind in a matter of seconds... ingenius eh?
(Or maybe I just need sleep O_O )

Pie!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 27th Jul 2004 22:53
Go to
http://www.mojomagic.co.uk
Go to Equilibribium and look for the download for the cod for the battle engine, that is a a turn based one very similar to Final Fantasy, however there is no meter's for the special skills that are like spirit strikes in Sudeki. But it has all the code along with the includes, it just doesn't have the media and it would be very helpful for a turn based game if you anaylize the code for awhile and understand every thing your reading, and as a suggestion add remarks as to what you think something does and then keep doing that until you know what to do with it all.

Got anime?I do.

Login to post a reply

Server time is: 2024-11-11 17:57:51
Your offset time is: 2024-11-11 17:57:51