LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Battle Engine Thing

Root / Talk About Programs / [.]

MinxrodCreated:
HI all! Yet another project I started working on... a battle engine! Will support HP, ATTACK, DEFENSE, SPEED, and LUCK (yeah!) Also includes type advantages, which will be highly customizable. You can make up your own types and how strong they are (or weak :]) Player data [HP, ATK, DEF, SPD, LUCK] will probably be eaten as an array, along with enemy data. Special effects will be possible. Still not sure whether I will make this a function or how i will call it. If you have any suggestions or ideas, please, tell me ;)

Sounds cool! So it'll do the math and stuff for you?

Yeah. Pretty much. Think I'll make a function or something that does it, so idk basically will be able to handle the math, yes

yummy arrays

yummy arrays
FEED ME :V

I figured out how I will make this work. You feed the DEF, which will be a COMMON DEF, data on who is attacked, the move, and the character data. Character data will be stored in a 2 by 4 array, no speed - speed can be taken care of in-program if you want it, I figured this would be fine. Items! You can use items. Just make a move titled itemname or something and give it the desired effect, like
DATA "POTION,1,0,50,1"
and then figure it out in your program. I am also making a demo program with a crappy text-based battle to demonstrate how you might use it.

This looks cool.

This looks cool.
Actually, this looks not so cool in itself, the user has to take care of GUI and such. Also, it's WORKING! At a bare minimum, but better stuff is coming very soon... like as soon as I program it :P