• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Implementing Dark Grass

  • 378
    Posts
    12
    Years
    • Seen Oct 18, 2017
    Assuming I have the tile already, how would I go about implementing Dark Grass from the Gen V? I could've sworn I saw a tutorial on the forums somewhere, but I can't seem to find it.
     
    Yes! I will attempt to follow the tutorial and will respond later. Thanks, Rayd!

    Edit: It works, but the grass particles don't show up. Can anybody shed some light on this?
     
    Last edited:
    Yes! I will attempt to follow the tutorial and will respond later. Thanks, Rayd!

    Edit: It works, but the grass particles don't show up. Can anybody shed some light on this?

    Look for the script in PokemonField and find this

    Code:
    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)

    add another section for the new terrain tag (DarkGrass?) or whatever you called it.
     
    ok i have better edits now so if you want here it is.

    go to Pokemon Field script search for class PBTerrain and add GrassDB = 16

    Code:
    def pbIsGrassTag?(tag)
      return tag==PBTerrain::Grass ||
             tag==PBTerrain::GrassDB ||
             tag==PBTerrain::TallGrass ||
             tag==PBTerrain::UnderwaterGrass
    end

    now in def pbGetEnvironment
    Code:
    if terrain==PBTerrain::Grass # Normal grass
          return PBEnvironment::Grass
        elsif terrain==PBTerrain::GrassDB # Normal grass
          return PBEnvironment::GrassDB

    in def pbEncounter(enctype)
    Code:
    if $PokemonGlobal.partner || terrain==PBTerrain::GrassDB and $Trainer.party.length>1
    in Events.onStepTakenFieldMovement+=proc{|sender,e|
    Code:
    if pbGetTerrainTag(event,true)==PBTerrain::Grass || pbGetTerrainTag(event,true)==PBTerrain::GrassDB  and $Trainer.party.length>1 # Won'

    and in def pbBattleOnStepTaken
    Code:
    if $PokemonGlobal.partner || terrain==PBTerrain::GrassDB  and $Trainer.party.length>1

    That is all.
     
    It works, thanks! This helps so much.
     
    Back
    Top