Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Events.onStepTakenFieldMovement+=proc{|sender,e|
- event=e[0] # Get the event affected by field movement
- currentTag=pbGetTerrainTag(event)
- if pbGetTerrainTag(event,true)==PBTerrain::Grass # Won't show if under bridge
- $scene.spriteset.addUserAnimation(GRASS_ANIMATION_ID,event.x,event.y,true)
- elsif event==$game_player && currentTag==PBTerrain::WaterfallCrest
- # Descend waterfall, but only if this event is the player
- Kernel.pbDescendWaterfall(event)
- elsif event==$game_player && currentTag==PBTerrain::Ice && !$PokemonGlobal.sliding
- Kernel.pbSlideOnIce(event)
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement