BattlerYou will be the one who helps me with the Battles!
You will need:
Random Number Generator
www.random.org/Random Pokemon Generator
www.legendofdrew.com/pokemon/Stat Calculator
pokemon.marriland.com/statcalc_dp.phpThe Pokemon Sprites
s1188.photobucket.com/albums/z413/PokemonTrainers/EXP Calculator
pokemon.marriland.com/expcalc.php1. Change 'Username here (Searching for Pokemon)' to 'Username here (Your User Name)'
Example: The Doc is wanting to battle.
Doctor Rez (Searching for Pokemon)
to
Doctor Rez (Zanderwolf)
2. Determine how many Pokemon the user has. If the user has more than one, then another Pokemon can appear. (In the Unova region there can be up to three wild Pokemon Battling, but in the other regions there can only be up to two). If the user has at LEAST 2-3 Pokemon continue to step 3 (otherwise skip step 3)
3. Generate a number using the Random Number Generator. Have the Min be 1 and the Max be 2 (or 3 depending)
4. Generate some Pokemon from the region the user is "Searching for Pokemon" in.
5. Get the Pokemon stats and prepare to Battle!
6. Give the player the option to run or to Fight! If the player wants to run look at his/her lead Pokemon(this Pokemon will be first in their team) If their Pokemon are slower than the fastest wild Pokemon then they have a 25% chance to escape. But if their Pokemon are faster then they have a 75% chance to escape. And if it's the same they have a 50% chance to escape.
7. If they want to battle the quickest Pokemon always goes first. If some Pokemon share a speed then use the RNG.
8. Attacking, look at the attack power of the Pokemon that's attacking generate a number between 0 and the users Pokemon if it does come out to be 0 then that Pokemon misses. But if the number is not 0 then the Pokemon does not miss. Next look at the stats of the Pokemon being attacked. If a wild Pokemon is attacking a trainers use the RNG if the trainer has more than one Pokemon. Look at the defending Pokemon's defense, generate a number between 1 and what ever the Pokemon's defense is. Subtract the number you got from the defending Pokemon from the number you got from the attacking Pokemon. There will never be an attack of less than one.
Example 1:
Pokemon A is attacking Pokemon B.
Pokemon A has an attack of 55 and Pokemon B has a defense of 32.
RNG came up with 25 for Pokemon A and 12 for Pokemon B.
25 - 12 = 13
The attack did 13 damage.
Example 2:
Pokemon D is attacking Pokemon F.
Pokemon D has an attack of 60 and Pokemon F has a defense of 56.
RNG came up with 0 for Pokemon D.
Pokemon D missed and nothing happens.
Example 3:
Pokemon Z is attacking Pokemon X.
Pokemon Z has an attack of 44 and Pokemon X has a defense of 40.
RNG came up with 25 for Pokemon Z and 25 for Pokemon X.
25 - 25 = 0
The attack did 1 damage.
9. Catching, If the user wants to catch the wild Pokemon make sure the specify what Pokeball they want to use. If they have no Pokeballs then telll them, YOU NEED POKEBALLS TO CATCH POKEMON!
Master Balls - 100%
Ultra Ball - 35% when HP is above half 75% when HP is at half and down
Great Ball - 25% when HP is above half 50% when HP is at half and down
Normal Pokeball - 15% when HP is above half 40% when HP is at half and down
(the rest will be added later and if you have a better way for catching Pokemon then suggest it in the suggestions because I need the help)Use the RNG to generate a number out of 100 and if the number is in the % then the Pokemon is caught.
Example:
Someone has a 35% chance to catch a Pokemon.
The RNG says 36, Pokemon not caught because 36 is not 1-35.
10. Releasing the Pokemon and getting the EXP, it's really easy. So easy I'm not sure how to explain it... but if something isn't clear then PM me. Use this site:
pokemon.marriland.com/expcalc.php11. And since you need to be able to easily get the site's currency this is how you get money! So here is what you do take the Wilds Pokemon's health and multiply it by 2. And that's how much money they get!
That's how you do a battle! So start with this and later I'll add items!