- 6
- Posts
- 14
- Years
- Seen Dec 4, 2010
HELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
case @battle.environment
when PBEnvironment::Cave
id=8
when PBEnvironment::Cave || terrain==PBTerrain::Water
id=1 #ID for testing purposes
when terrain==PBTerrain::Water || PBEnvironment::Cave
id=1
when PBEnvironment::Cave
id=8
when PBEnvironment::Cave
id=8
terrain=$game_player.terrain_tag
if terrain==PBTerrain::Water || PBEnvironment::Cave
return id=1
end
case @battle.environment
=begin
when PBEnvironment::Grass || (Time.now.hour<6||Time.now.hour>=20)
id=1+"n"
when PBEnvironment::Grass || (Time.now.hour>17||Time.now.hour<=20)
id=1+"e"
when PBEnvironment::Grass || (Time.now.hour>6||Time.now.hour<=17)
id=1
=end
when PBEnvironment::Grass
id=1
when PBEnvironment::TallGrass
id=2
when PBEnvironment::MovingWater
id=3
when PBEnvironment::StillWater
id=4
when PBEnvironment::Underwater
id=5
when PBEnvironment::Rock
id=7
when PBEnvironment::Cave
id=8
when PBEnvironment::Sand
id=9
when PBEnvironment::Snow
id=10
when PBEnvironment::MtnSide
id=11
when PBEnvironment::Marsh
id=12
else
id=(outdoor) ? 0 : 6
terrain=$game_player.terrain_tag
if terrain==PBTerrain::Water || PBEnvironment::Cave
return id=2
end
end
if $PokemonGlobal && $PokemonGlobal.nextBattleBack
id=$PokemonGlobal.nextBattleBack
elsif $game_map
back=pbGetMetadata($game_map.map_id,MetadataBattleBack)
if back && back!=""
id=pbGetMetadata($game_map.map_id,MetadataBattleBack)
end
end
1. Open the database after you import the tileset, go to the tilesets tab, and make a new entry with the desired tileset set as the Tileset Graphic. You'll have to do all of the passability and priority after setting it up there.I searched the thread and couldn't find anything on this subject, and please don't laugh at my stupid questions but:
1. How do I add new tile sets? I put them in the tile set folder, and tried importing them while in RMXP but it didn't work correctly.
2. How do I add new Over World sprite sheets? And is there any certain format the sheet needs to be in?
I had this error a while back. I can't remember the EXACT way I fixed it, but if the new pokemon you are trying to add has a unique ability you need to add that to PBS/abilities or it wont work. If you did that already or if it doesn't HAVE a custom ability, then check PBS/moves to see if the attacks you have on the pokemon's movelist are there, PokeStarter (as far as I know) doesn't come with all the moves and that may be the problem too.
... yeah >> Has no relevance to the error it SAYS you have as far as I can see, but that's what fixed it for me. :] Hope it works for ya.
Pokemon Essentials notes say that titles support .gif files. But when I try to import a gif file via materialbase, I don't see it. I tried changing extensions to .png but it didn't help. When I just pasted my animation file (named Pic_1.png) to a Titles folder, its not animated :/
Can anyone help me please?
Dont paste it, somehow it can make a difference if you save it there directly. Not sure why.
Still didn't work :/
Maybe I'm using wrong program to make gif images. Have anyone tested someting and proved it works with essentials?
That's all quite nasty (and wrong, as you know). The first two attempts failed because "case" statements don't work like "if" clauses. The third attempt might have worked (if you'd removed the "|| PBEnvironment::Cave" because it's already assumed that you're in a cave), except you shouldn't be returning anything - nowhere else in pbBackdrop is anything returned. The fourth attempt would never have been looked at (you're in a cave, therefore the "else" part of the "case" statement never would be looked at), and once again you're trying to return something.in pbBackdrop, the battle id's are determined based on the environment. PBEnvironment Cave is automatically set if an area has cave encounters, right? So I've been trying to change it to where if the player is surfing in water while in a cave the id will be different. (Essentially, same BG, different player/enemy bases) So that way when you, for example, battle a Lapras, the poor guys not situated on a rocky platform. I tried setting it up to where if the player's in the cave and is on a terrain tag for normal water but that didn't do anything. Then I thought if I reversed the order it would work. I got a syntax stating terrain is undefined. SO, well... explaining this in text takes too long. ._. Here's my multiple attempts, all of which failed.
Attempt One: (Please note I'm not that great/skilled at scripting, but I do comment things out so I can always reverse a bad attempt. o.o)
Attempt Two:Code:case @battle.environment when PBEnvironment::Cave id=8 when PBEnvironment::Cave || terrain==PBTerrain::Water id=1 #ID for testing purposes
Attempt Three:Code:when terrain==PBTerrain::Water || PBEnvironment::Cave id=1 when PBEnvironment::Cave id=8
Err... it had been something like that. ._.Code:when PBEnvironment::Cave id=8 terrain=$game_player.terrain_tag if terrain==PBTerrain::Water || PBEnvironment::Cave return id=1 end
and finally, attempt 4, which gave me no errors, but caused my random trainer problem.
Note: It never fixed the problem either. I'm thinking that maybe I'll have to make some edits in PokemonField rather than actual scene, but I'm not sure... And my competence in scripting is rather questionable. o.o;Code:case @battle.environment =begin when PBEnvironment::Grass || (Time.now.hour<6||Time.now.hour>=20) id=1+"n" when PBEnvironment::Grass || (Time.now.hour>17||Time.now.hour<=20) id=1+"e" when PBEnvironment::Grass || (Time.now.hour>6||Time.now.hour<=17) id=1 =end when PBEnvironment::Grass id=1 when PBEnvironment::TallGrass id=2 when PBEnvironment::MovingWater id=3 when PBEnvironment::StillWater id=4 when PBEnvironment::Underwater id=5 when PBEnvironment::Rock id=7 when PBEnvironment::Cave id=8 when PBEnvironment::Sand id=9 when PBEnvironment::Snow id=10 when PBEnvironment::MtnSide id=11 when PBEnvironment::Marsh id=12 else id=(outdoor) ? 0 : 6 terrain=$game_player.terrain_tag if terrain==PBTerrain::Water || PBEnvironment::Cave return id=2 end end if $PokemonGlobal && $PokemonGlobal.nextBattleBack id=$PokemonGlobal.nextBattleBack elsif $game_map back=pbGetMetadata($game_map.map_id,MetadataBattleBack) if back && back!="" id=pbGetMetadata($game_map.map_id,MetadataBattleBack) end end
when PBEnvironment::Rock
id=7
when PBEnvironment::Cave
id=8
[COLOR=Red] id=12 if $PokemonGlobal.surfing[/COLOR]
when PBEnvironment::Sand
id=9
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.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
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
}
})
$testpokemon = [
PBSpecies::ELEKID,
PBSpecies::SMOOCHUM,
]
def pbTestPokemon
tpnumber = rand($testpokemon.length)
pbAddPokemon($testpokemon[tpnumber],25)
$testpokemon.delete($testpokemon[tpnumber])
end
Oh, I've also got question about Day/Night system. Do i have to call any script or something to make it active, or it works already in freshly downloaded starter kit?
Code:Exception: NoMethodError Message: undefined method `+' for nil:NilClass PokemonUtilities:289:in `getRoughLatLon' PokemonUtilities:386:in `getLatLong' PokemonUtilities:586:in `getToneInternal' PokemonUtilities:584:in `each' PokemonUtilities:584:in `getToneInternal' PokemonUtilities:353:in `getTone' PokemonUtilities:2095:in `pbDayNightTint' Sprite_Character:124:in `update_or' PerspectiveTilemap:408:in `shadow_update' Shadow:179:in `update'
where do the game get their time?
window slider?
Try replacing this line:
Code:$testpokemon = [ PBSpecies::ELEKID, PBSpecies::SMOOCHUM, ] def pbTestPokemon tpnumber = rand($testpokemon.length) pbAddPokemon($testpokemon[tpnumber],25) $testpokemon.delete($testpokemon[tpnumber]) end
Try replacing this line:
$testpokemon.delete($testpokemon[tpnumber])
with this one:
$testpokemon[tpnumber]=nil
This makes the array element blank. I guess delete isn't a valid array command, but I'm not entirely sure.