Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_switches[50]
pokemon.makeShiny
end
}
What do you mean? Do they not work properly at the moment?What lines do I edit so that D/P pokemon backsprites fit in the game properly without any errors? I cant seem to find the line.
So you want to force all pokémon encountered while the switch is on to be shiny? Or rather, you want to apply this to deciding what Giratina looks like.In Pokemon Essentials, a script can be created to determine a switch in order to show shiny pokemon.
example:
How could I edit this code to make the switch determine which picture (change in Pokemon form) is used for a specific Pokemon (such as origin form for Giratina when the switch is activated)?Code:Events.onWildPokemonCreate+=proc {|sender,e| pokemon=e[0] if $game_switches[50] pokemon.makeShiny end }
if thispokemon==GIRATINA && switch[96]==TRUE
load Giratina's alternate sprite
else
load regular sprite (this applies to all pokémon sprites, not just Giratina's normal one
end
It's quite simple, conceptually, and I don't think it should even need the code. All you need to do is turn the switch on and off (in an event), and where it loads the pokémon sprite to display (during battle, in the party screen and maybe some other places), extend it a bit to include something like:
I'm no code-wizard, ufff....it takes me days to figure out a certain script...but i'm progressing in learningbut I'd imagine that's the basic idea. This will need to be done in several places (wherever sprites are loaded where you want Giratina's appearance to change - the PokéDex may not need this or a similar change).Code:if thispokemon==GIRATINA && switch[96]==TRUE load Giratina's alternate sprite else load regular sprite (this applies to all pokémon sprites, not just Giratina's normal one end
You have to find all instances of the pokémon sprite being loaded, and replace them. I haven't gotten around to fiddling with the battle scene yet, but I know that the Bag at least loads its pictures twice: once at the start and once whenever it's refreshed (i.e. select a different item/pocket). The Battle scene may do the same thing.I've done that using the pbSpecies function instead of thispokemon and it always returns a syntax error. Basically what I'm trying to do is that when Giratina is outside the torn world, it is in Another Form, but when it's inside it is in Origin Form. I'm only able to do the script of the form changing depending on the values of the pokemon, and it works. But i want to do it with a switch as the main trigger.
PS. Switch 96 is exactly the switch i'm using for the torn world :D
UPDATE: I eddited the script a bit and it loads the image on the script, but loads it as a separate image, it doesn't replace the original one.
# Giratina form changing script by DragoChamp
elsif isConst?(species,PBSpecies,:GIRATINA)
d=if $game_switches[[B][COLOR=blue]96[/COLOR][/B]]==true
begin
# Load Origin Form bitmap if found
# Rename the Origin Form images to 487origin (normal), 487sorigin (shiny), 487borigin (back), 487sborigin (shiny back)
return BitmapCache.load_bitmap(
sprintf("Graphics/Battlers/%03d%s%sorigin.png",species,
pokemon.isShiny? ? "s" : "",
back ? "b" : "", d)
)
rescue
# Load plain bitmap as usual (see below)
end
end
I said that if I change the length of the viewport the list is in, there is still an extra entry that goes below it. The problem is because I've added 6 pixels to the height of each entry, and I want to keep it that way if possible.Well, or you should make those slots with the names smaller or you should change the whole widthxlength of the screen.
You're doing it wrong. This is the page you're looking at, right?Hey, I tried to download the Starter kit, and I can't click on the link, well I can get to the site, but I can't acess the download. Whats up???
^^^^Has anyone else received this error?^^^^^Can someone explain why I get this during leveling up?
Exception: NameError
Message: uninitialized constant Window_SimpleTextPokemon
PokemonItems:11:in `pbTopRightWindow'
PokeBattle_ActualScene:2451:in `pbLevelUp'
PokeBattle_Battle:2174:in `pbGainEXP'
PokeBattle_Battle:2154:in `loop'
PokeBattle_Battle:2190:in `pbGainEXP'
PokeBattle_Battle:2072:in `each'
PokeBattle_Battle:2072:in `pbGainEXP'
PokeBattle_Battle:2039:in `each'
PokeBattle_Battle:2039:in `pbGainEXP'
PokeBattle_Battler:1494:in `pbUseMove'