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 help

Author
Message
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 12th Feb 2009 00:18
Hey I need some help creating a battle system for my text adventure.
If anyone can help I'd be glad.
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 12th Feb 2009 04:51
Well yeah, I could probably help, but just by saying you need help on any old battle system for a text adventure leaves everything wide open. Do you have some code, background, or anything we can work with?
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 12th Feb 2009 05:59
Well no I don't really knowwhere to start.
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 12th Feb 2009 06:02
The rest of your text adventure would be a start... Stats? Something?

And also what you've envisioned it to look like would be good to know.
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 12th Feb 2009 06:17
Here my game. It's a very rough copy.

I haven't done the stats yet.

Attachments

Login to view attachments
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 12th Feb 2009 06:19 Edited at: 12th Feb 2009 06:22
I don't really know what I want it to look like(I'm pretty new to programming ). I suppose it will show a picture of the enemy, and show the stats. Otherwise I'm open to anything.
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 12th Feb 2009 21:39
You've included only the project file. The source is missing. That'd be the .dba file in the same directory as the .dbpro file.
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 13th Feb 2009 00:32
sorry here it is

Attachments

Login to view attachments
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 14th Feb 2009 02:00
I did a text adventure with this kind of format a year or two ago. For a battle system, I had a "main screen" subroutine that gave the player their options.

That then sent them to another subroutine based on what they entered. This decreases the health variables appropriately and tells them what happened. Then it sends them back to the main one...and so on.

xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 15th Feb 2009 01:55
thx
SAAB Driver
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 16th Feb 2009 20:45
there should be some examples in the codebase

Hello!
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 23rd Feb 2009 19:43 Edited at: 23rd Feb 2009 19:43
i made this ages ago
http://forum.thegamecreators.com/?m=forum_view&t=132394&b=6

dunno if it still works
it uses percentages to find how who wins etc =/
basic i know lol

Quote: ""Iblow for TGC", that'd look real good on a CV"

Quote: ""You make a game for the iPhone if you think it sucks"
Sucking is not the point Blowing is"
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 9th Mar 2009 02:50 Edited at: 9th Mar 2009 02:52
I am having some trouble with this piece of my code
becauase once the enemies life or the player's life goes to zero or below it keeps going until you justpress enter.

Also when your in battle if you don't press a number before you press enter it freezes.
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 10th Mar 2009 16:11
anyone have some suggestions?
Destrugter 1
17
Years of Service
User Offline
Joined: 26th Oct 2006
Location:
Posted: 12th Mar 2009 23:11
Well, don't just take my code and copy and paste it, you should look at what's different between yours and mine. But, if what you are trying to do, is end the program when the player or enemy dies, then here is what I came up with.

Login to post a reply

Server time is: 2024-09-28 04:16:17
Your offset time is: 2024-09-28 04:16:17