How do I make a battle system?

Started by anime2019master, Tue 25/08/2009 04:26:24

Previous topic - Next topic

anime2019master

I am making a rpg and soon I will need some type of battle system. I have downloaded a random dice roller and I think I could combine it with some simple if, else if and if statements, but I wonder is there a way to do away with the dice roller program, and just add more scripting to occomplish the same ends.
Oh yeah, I would like a final fantasy type of battle system.

monkey0506

#1
If you're serious about creating an RPG in AGS then you should take a look at the thread devoted to that cause. It will provide you with a lot of information on ways to implement everything you will need (including your battle system). Some of the coding may be outdated, so if you have trouble getting anything to compile we can definitely help you update any older code.

Basically what you're going to have to do is use a slew of variables to store everything from who's turn it is, everyone's health, attack, defense, magic, etc. and so forth. Then you'll need to determine how to activate the battle sequence. Presumably you will have some type of GUI to let the user decide on their course of action; so for the appropriate event handlers for said GUI you would need to run any battle animations, calculate and deal damage, calculate/set who's turn is next, etc.

If it sounds like a lot of work it's only because it is. AGS is not designed for RPGs, though with scripting it's very possible to pull off (AGS has been used for everything from side-scrollers to RTSes).

As far as the "dice roller" AGS has a built-in Random function which would work just fine for calculating the roll of a (virtual) die.

Personally I wouldn't recommend taking this on unless you either a) already have a firm grasp on programming theory and practice or b) are willing to devote a lot of time, sweat, and blood into learning it. It can be done but again, AGS is not designed for it so you're going to have a lot more work on your hands building an RPG in AGS then an engine designed for it such as RPG Maker. Just something to keep in mind.

Dualnames

#2
Quote from: anime2019master on Tue 25/08/2009 04:26:24
I am making a rpg and soon I will need some type of battle system. I have downloaded a random dice roller and I think I could combine it with some simple if, else if and if statements, but I wonder is there a way to do away with the dice roller program, and just add more scripting to occomplish the same ends.
Oh yeah, I would like a final fantasy type of battle system.

Not really sure , but if you search for Akumayo, you will find a turn-based battle system module by Akumayo, so you can get really started.

I found a pokemon thingy, but that's not what I'm talking about

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14280.0

I searched the technical forums and the module ones for useful stuff and I have a version of that module(the battle one0 , just not in my work, I'll post it here tomorrow if it;s ok.

EDIT: Okay, here's waht I found:

http://ledzepforever.googlepages.com/qfgbe_v1.zip
A template (Guest for Glory)

2 topics:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30639.0
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18265.0
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk