Main Menu

Stat INcrease Code

Started by Makeii Runoru, July 23, 2008, 01:26:45 AM

Previous topic - Next topic

Makeii Runoru

This isn't really a problem, but it's something I have whipped up with the little amount of programming I know. I think it's rather nice, because it is supposed to work with a future game I wish to create. This example shows the AP (Ability Points) spending and stat increasing.

Spacebar will cast an ability, which reduces the AP by 2 (which regenerates quickly) and adds 300 or so to MND's current experience. (this is a game in which characters don't level up themselves, but their abilities and statistics individually)

Leftkey held down will increase experience for STR, MND, and AGI simultaneously at different floating values every frame.

Rightkey increases STR exp by 100 each frame
Upkey increases MND exp by 100 each frame
Downkey increases AGI exp by 100 each frame

I've also told PB to draw percentages for how close the stat is to increasing. A stat will require more experience every time it increases, adding more of a challenge. Characters in the game will need to find better weapons that will give better experience for their stats to accomodate for the steeper experience requirements.

Right now Life has no significance, and nor does a characters' class. There is code in the program with a simple weapon, but most of it is not used right now.
This signature is boring, and could be improved. However, the user of this signature doesn't need a fancy signature because he or she doesn't really care for one.

kevin


Just so you know,  neither of these files (Project2.pbp & Project2.pbr) contain any program code.  There are your project description files.   The code is stored in the .PBA file.  Which is normally MAIN.PBA.

I suggest rather than posting the individual files,  zip up the projects folder and just post that..  Much easier for everybody

Makeii Runoru

Oh. I didn't know that. Sorry about that. I posted a zipped file of the project in this post. maybe that will help.
This signature is boring, and could be improved. However, the user of this signature doesn't need a fancy signature because he or she doesn't really care for one.