View Single Post
  #2810    
Old August 3rd, 2008, 06:47 AM
partyghoul2000's Avatar
partyghoul2000
Intermediate Game Designer
 
Join Date: Jan 2006
Location: USA
Age: 26
Gender: Male
Nature: Calm
Quote:
Originally Posted by Lorem Ipsum View Post
partyghoul2000:
The IVs and EVs question:

To define a Pokémon's IVs or EVs, you would use the following type of statement.

pokemon[0].iv[0] for IVs, and pokemon[0].ev[0] for EVs.

Substitute the first 0 in brackets to reflect the Pokémon number in your party (note, 0 is the first one, 5 is the last one). Then, substitute the second 0 to reflect the IV or EV you want to change (0=HP, 1=Attack, 2=Defence, 3=Sp. Atk, 4=Sp. Def, 5=Speed).

So, if I wanted to change the defence IV of the third Pokémon in my party to 31, then I would simply use this statement.

Code:
pokemon[2].iv[2]=31
the way you specified is for a pokemon in your party, i was talking about post-capture stat changing, but this does give me insight as to what it might be. for ex. pokemon.iv[2]=31, i know it's not much difference, but im trying to adapt it for the pokeball scripts.

i also forgot to mention last night about day, night and location captures. how would these variables be called for a capture rate boost for a ball? i was gonna ask in my last post, but i completely forgot about it. >.<
__________________

Check out my Super Gothic Bros hack here.
My ripped pokemon music in MP3 format can be found here.
My custom battle animations and whatnot can be found here.
Credit is expected, if used.

Last edited by partyghoul2000; August 3rd, 2008 at 07:41 AM.