Calculating in Pokémon

Game Editor comments and discussion.

Calculating in Pokémon

Postby asmodeus » Sun Mar 30, 2008 3:20 pm

Does anybody know how to calculate the damage, the getting of Exp. or something like that from Pokémon?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Calculating in Pokémon

Postby Kalladdolf » Sun Mar 30, 2008 8:52 pm

?
could you plz explain?
I know, I haven't ever played pokemon, so I don't know whadya mean :oops:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Calculating in Pokémon

Postby DarkParadox » Sun Mar 30, 2008 9:04 pm

it depends on what you want.
like, you could put(levelE is enemys level, levelP is you pokemons level)

Code: Select all
exp+= levelE*2/1.5-levelP;


which would give you a good amount
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: Calculating in Pokémon

Postby Wayra Condor » Sat Apr 19, 2008 6:55 pm

Well, I don't know exactly the formula, but I remember somthing about how getting it:

Here is the page: http://www.psypokes.com/lab/expguide.php

This is a tool for calculate how much experience you will get by defeating a certain pokemon in certain level, I got lazy by trying to figure the formula by myself, so I left it to you, in that page you might get many tools to make your game. :mrgreen:
Current proyect: The King of Peru 3 (0,1%...Now reutrning form a long break!)
User avatar
Wayra Condor
 
Posts: 27
Joined: Sat Dec 08, 2007 5:05 pm
Location: Cuzco, Peru
Score: 1 Give a positive score

Re: Calculating in Pokémon

Postby asmodeus » Sat Apr 19, 2008 8:40 pm

Wayra Condor wrote:Well, I don't know exactly the formula, but I remember somthing about how getting it:

Here is the page: http://www.psypokes.com/lab/expguide.php

This is a tool for calculate how much experience you will get by defeating a certain pokemon in certain level, I got lazy by trying to figure the formula by myself, so I left it to you, in that page you might get many tools to make your game. :mrgreen:

Thanks, that helps me. 1 point.
But I also need formulas for some other things such as calculate the damage or calculate the "need" of experience for next level.
If anyone know, please post.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Calculating in Pokémon

Postby Bee-Ant » Sun Apr 20, 2008 7:09 am

Calculating damage???maybe I'll put this code when my player get hit
Code: Select all
HP-=Enemy.attack/Player.defence;

For Exp..put this code when enemy killed
Code: Select all
EXP+=rand(20);

Also player>DrawActor>
Code: Select all
if(EXP>=NextEXP)
{
    MAXHP+=rand(10);
    HP+=rand(5);
    NextEXP+=(MAXHP*2)-rand(50);
    EXP=0;
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Calculating in Pokémon

Postby asmodeus » Sun Apr 20, 2008 10:27 am

Bee-Ant wrote:Calculating damage???maybe I'll put this code when my player get hit
Code: Select all
HP-=Enemy.attack/Player.defence;

For Exp..put this code when enemy killed
Code: Select all
EXP+=rand(20);

Also player>DrawActor>
Code: Select all
if(EXP>=NextEXP)
{
    MAXHP+=rand(10);
    HP+=rand(5);
    NextEXP+=(MAXHP*2)-rand(50);
    EXP=0;
}

I'd like to have the original formulas from the pokémon games,
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Calculating in Pokémon

Postby Bee-Ant » Sun Apr 20, 2008 11:06 am

lol...ask for Nintendo then :lol:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Calculating in Pokémon

Postby Wayra Condor » Sun Apr 20, 2008 5:21 pm

Well, I told you that all the stuff is there, even the most secret thing on calculation, there are some links:

.-Damage Calculation: http://www.psypokes.com/dex/damage.php
.-Stats Calculation: http://www.psypokes.com/dex/stats.php
.-Learnsets: http://www.psypokes.com/dex/learnsets.php
.-Stats Guides: http://www.psypokes.com/lab/stats.php

...and many stuff like this.

The problem is that for making a pokemon game you'll need to calculate many number.
Ex: You have a charmander, it's stats are this:
.-Lvl: 5
.-Hp: 10
.-Atk: 8
.-Def: 5
.-Spd: 6
.-S. Atk: 8
.-S. Def: 6

Lvl is the level of your pokemon (min 1, max 100), the others are healt points, attack, defence, speed, special attack and special defence (all of those have a min of 1 and a max of 255)

By the way, if you are confuse about what stat will a pokemon get, here is a chart of the base stats of pokemons on level 100(this is an aproximate): http://www.psypokes.com/dp/basestats.php
And here for specific things: http://www.psypokes.com/dex/index.php

Returning to the example, depending on the pokemon that the charmander defeats, it will get some experience, the variables are: pokemon, level, if it is trained or wild and the item that charmander holds.
So, the charmander will get a diferent experience on the same pokemon if is holding a exp booster item, or if the pokemon is wild, or any other thing.

For a battle the calculations are the following:

.-The pokemon with a higher speed, attack first
.-The calculations of damage are bases on the attack minus the defence by this formula:
Pokemon attack*Percentaje of the attack(you can see this on the attack list)-The attacking pokemon defence
.-There are stats modifiers than ups, or low the attack, this is a table of those:
tabla 1.PNG

.-There is to an accuracy factor, you start with 100% chances of making a hit (well, it depends on the attack)
.-The accuracy can by modified, here is another table:
tabla 2.PNG


I know, is quite confusing, but if you get bored of all this, here is an alternate: wah.studiopokemon.com

There is how to make hack-roms of pokemon games, but there are only 3 problems:
.-Is in spanish
.-The codes are to freaking hard to understand
.-The community is quite hostile (maybe they got freak trying to figure what to do with their pokemon games)

Still, I find that all these is easier to make in GE, the only problem, are the formulas.

I hope all this helped. :mrgreen:
Current proyect: The King of Peru 3 (0,1%...Now reutrning form a long break!)
User avatar
Wayra Condor
 
Posts: 27
Joined: Sat Dec 08, 2007 5:05 pm
Location: Cuzco, Peru
Score: 1 Give a positive score

Re: Calculating in Pokémon

Postby asmodeus » Tue Apr 22, 2008 3:46 pm

:D I think, I have found all formulas, I need, now. I found another website to get formulas: bulbapedia.bulbagarden.net
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron