Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: blweldon2 on March 20, 2012, 07:26:07 am

Title: My first BASIC program- Pokemon Damage Calculator
Post by: blweldon2 on March 20, 2012, 07:26:07 am
I have decided to write a program in BASIC for the Nspire that will calculate damage in pokemon games. I want it to be able to be run as a library from the scratched. How should i start on this project?  :)

EDIT: Here is an example of a damage calculator. http://pokemon.marriland.com/damage.php
I want this on my Nspire.
Title: Re: My first BASIC program- Pokemon Damage Calculator
Post by: cyanophycean314 on March 25, 2012, 09:20:27 pm
First, you would figure out the formula for the damage. I don't really know how you'd do that...

Then you can create a basic program that inputs all of those, then calculates it!

Good luck!
Title: Re: My first BASIC program- Pokemon Damage Calculator
Post by: 3rik on March 25, 2012, 09:42:12 pm
Here is a link with all the minute details of damage calculation. http://www.smogon.com/dp/articles/damage_formula
You probably won't want to make it this complicated but it should have all the formulas you need. (This is for Diamond and Perl so the formulas could be slightly different depending on which generation you're writing the program for for)

It depends on how you want it to be used. If you want the inputs passed as arguments, I would say make a library full of functions. If you want the user to enter information in text boxes and such I would make one large program. Of course you could make both using your library functions in a program that collects the input from the user. Then you could use it both ways.

Good Luck!