Hey, I've been lurking around these fourms for awhile getting help, trying to learn how to script a little. But i have a few questions that i havn't found while i've been looking around.
1.Where in the script can you change the encounter rate for shiny pokemon? I havn't been able to find it anywhere.
2.Where in the script can i change the postion of the pokemon in battle? I havn't been able to find this either.
That is all i need help with for right now. Answers would be much apperciated. :)
1. A pokémon being shiny depends on some calculations that use that pokémon's ID number and the original trainer's ID number. The script that does it is in PokeBattle_Pokemon, line 282 onwards.
Very basically, if you change that (d<8) to, say (d<9), I imagine getting a shiny pokémon would be more likely. You could also include more options, such as code that makes all wild pokémon encountered on a particular map shiny (this very question was asked earlier in this thread and got answered).
I would suggest you figure out exactly what you want to do before attempting to mess with this (other than to comment it all out and "return false", in the case that you want to remove shininess from the game altogether) - it's rather conceptually complicated.
2. PokeBattle_ActualScene contains bits of code all over the place that determine the positions of pokémon in both single and double battles. As I recall, though, you can only easily set the horizontal position by editing the numbers here. Said numbers are scattered around, but there shouldn't be too many instances.
To edit how high up a pokémon is, you'll have to look in pokemon.txt for three lines entitled "BattlerPlayerY", "BattlerEnemyY" and "BattlerAltitude". The first two say how high up the sprite should be placed in the cases where it's your or your opponent's/a wild pokémon. BattlerAltitude further raises the opponent's/wild pokémon up off the ground, to make it look like it's levitating (e.g. for Magnemite).
Why does "BattlerAltitude" exist, when "BattlerEnemyY" already exists? Shadows. "BattlerEnemyY" determines where the shadow goes, and "BattleAltitude" determines how high up the pokémon is. You can't just change the picture itself to get a raised pokémon, because then the Pokédex image wouldn't be right, and you can't just make BattlerEnemyY different because then the shadow would be in the wrong place. You need both numbers to make it look right.
So horizontal positions can be changed throughout PokeBattle_ActualScene, and vertical positions can be changed in pokemon.txt.
I have a problem i try to load outside off your starter kit and it freezes and ends with some error code? Anyone know why?
You're going to have to give us some actual information here. Exactly where are you "loading", what are you "loading", what is the error (copy-paste it)?