That's the wrong kind of code to use for this (i.e. don't use the "register" part), but it's in the right place. What you want is a bit of code that decides what the in-battle weather is (you already have this), and then refresh the appropriate sprite.Can someone help me with castform's alternate forms? I have a good start. I put this code at the top of pbforecast:
The problem is that the battlers do not change during the battle. But if I go to the pokemon's summary page the graphic changed correctly. And also after the battle is over, castform does not change back to the original form. What am I doing wrong? Or am I going in the wrong direction, lol. Thanks :)Code:MultipleForms.register(:CASTFORM,{ "getForm"=>proc{|pokemon| [email protected] if weather==PBWeather::SUNNYDAY next 1 elsif weather==PBWeather::RAINDANCE next 2 elsif weather==PBWeather::HAIL next 3 elsif (weather==0 || weather==PBWeather::SANDSTORM) next 0 end } })
I'm reminded of the Pokédex counts, which do stay the same after saving/loading. They, and other things, are part of $Trainer, which is something that's saved. You can use an array called $Trainer.eggsHad instead. You'll also need to initialise it at the bottom of PokeBattle_Trainer.
it's just...it works perfectly - that is, you can't get the same egg/pokemon/whatever twice - but if you save and exit, and then come back into the game, it's like those array elements were never deleted - you can get the egg/pokemon/whatever again.
$testpokemon[tpnumber]=nil seems to have the same problem :/
argh, this is so frustrating! I totally thought this part of my game worked perfectly
I just want to repost, I didn't get a response, and It's on the next page.How do I change the shiny encounter rate?
It's set by default, to 8126 or something, how would I change it to 300?
Thanks
I just want to repost, I didn't get a response, and It's on the next page.
Silly me, thanks Maurno.This is copy-pasted from Maurno's response on the previous page.
"PokeBattle_Pokemon, def isShiny?. There's a "d<8" in there - that 8 divided by 65536 is the odds of having a shiny Pokémon (=1/8192). Make "8" bigger to make them more common. For a (nearly) 1 in 300 chance, change "8" to 218. "
So, yes, your question was answered.
I'm sorry to say this, but I am in particular need of donations. My site was suspended for payment reasons. If anyone can donate any amount I would appreciate it. The link is in my signature.
I'm reminded of the Pokédex counts, which do stay the same after saving/loading. They, and other things, are part of $Trainer, which is something that's saved. You can use an array called $Trainer.eggsHad instead. You'll also need to initialise it at the bottom of PokeBattle_Trainer.
Alternatively, PokemonSave, pbSave. Add a new line in there for your array. Then edit the bottom of pbStartLoadScreen in PokemonLoad.
Can anyone help me with this, please?
Thank you. :3
P.S: That error comes out when I try to go out of the first map.
Poccil doesn't have money to pay for server so his site is gone. He asked for donations few pages ago.Not sure if anyone is aware of this, but upokecenter.com is gone! I went to download the starter kit, which I worked with a while ago, but never finished my project, and the whole site is one big Error 404!
Any idea what happened, and can someone re-post the starter kit? I need it for a school project now... :$
That's the wrong kind of code to use for this (i.e. don't use the "register" part), but it's in the right place. What you want is a bit of code that decides what the in-battle weather is (you already have this), and then refresh the appropriate sprite.
I would suggest you have a look at Transform, because that does mostly the same thing, but I don't think Transform changes the sprite either.
What OS are you using?
I've got a same problem also..
In PokemonLoad, find this line:
I just had a look at pbSave in PokemonSave and uhhhh okay I have no idea what all the marshal.dump stuff means x_x a-also I have no idea how to initialise it at the bottom of PokeBattle_Trainer /so fail
The Transform move effect calls pbAnimation, which is in PokeBattle_ActualScene. This in turn changes the sprite. As far as I can tell, this only works for species, not forms (try using Transform on a Pokémon with a non-default form, e.g. Deoxys, and see what happens - it'll probably always be Deoxys Normal).Thanks for the help, and transform does change the sprites after i checked into it. But I can't find the part where transform changes the sprites for my life. Can someone point me in the right direction?
pbAnimation(PBMoves::TRANSFORM,self,PBSpecies::CASTFORM)
MultipleForms.register(:CASTFORM,{
"alterBitmap"=>proc{|pokemon|
[email protected]
if weather==PBWeather::SUNNYDAY
next 1
elsif weather==PBWeather::RAINDANCE
next 2
elsif weather==PBWeather::HAIL
next 3
else
next 0
end
}
})
Here's mirror for you:
http://www.speedyshare.com/files/23378206/pokestarter.zip