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.

DarkBASIC Discussion / Battle System for Turn-based Action RPG

Author
Message
TriconInc
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 14th Oct 2006 09:00
I have a problem and I need help with it. I need some help coming up with ideas and code for the battle system to a Final Fantasy like game. It's relatively simple really. I just need some code to keep health and magic numbers and count strikes and such. I also have a time constraint on this one. I have 3 weeks in which to finish this. Anyway help would be hot! Thanks all.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Oct 2006 04:43 Edited at: 15th Oct 2006 04:45
This may seem a little harsh to some people but it sounds like you have a homework assignment. We won't give you code to slide by your assignment... especially since you just joined... nobody likes "gimme da codez" messages.

You need arrays to store each characters stats and a do/loop to keep the battle going till either the good guys die or the bad guys.

Look up these things in the help files to get you started:

Principles -- Data Types, Variables and Arrays
Commands -- Core Commands -- DO
Commands -- Core Commands -- INC
Commands -- Core Commands -- DEC
Commands -- Core Commands -- IF
Commands -- Core Commands -- ELSE
Commands -- Core Commands -- ENDIF
Commands -- Core Commands -- RND
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 19th Oct 2006 17:29
The same what i do have in Dark Ocean? Or Equilbrium in showcase..

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Oct 2006 22:19
Huh?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 20th Oct 2006 03:32
I use a UDT for each character in my game...each vehicle in my game, each...everything. DB is not oo enough to have them directly implement their own behavior, but...you need to create a place to store the things that you want to track. Then it is a simple matter to create functions that modify them.

You should start by creating a list of things that you need in order to create and utilize a character. You will need a model, for example. It will be a DB object, and you should have this, as a minimum:



Actually, my player UDT is much more complex than that...that is where it began.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Oct 2006 10:44
another good tip is that magic and standard items can be thought of as a type declaration as well.
this allows standard items to become magic items and makes it easy to manage.

Login to post a reply

Server time is: 2025-05-26 00:22:18
Your offset time is: 2025-05-26 00:22:18