• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Custom Feature Question] Can't get a Field Effect to work

HeroesFightingFear

"The Champion of Alon"
  • 99
    Posts
    5
    Years
    I added the Field Effect coding from Relic Castle into my game. My game runs, but it acts as if the Volcanic Field doesn't exist at all. I added new Volcano battlebg pieces for it, too. What else do I do? I've done everything, at least I thought I did, I defined the bg changes, changed the backdrop section, defined the field boosts and debuffs, what else is there?
     
    And before anyone asks, yes, I set it to initialize, too.
     
    Hi, I was the one that made the tutorial.
    What is your issue exactly?
    The best way is to copy paste literaly everything that was was in the tutorial, and change anything related to "Snow" to "Vulcanic" or whatever the name of your bgs are.
    if possible, send me your script file, so I can take a look.
    Sorry for just now noticing this thread.
     
    Found the issue!

    In PokeBattle_Battle
    Code:
      def pbChangeBGSprite
            case $fieldeffectsbg
              when 0 # Interior Field
                @scene.sprites["battlebg"].setBitmap("Graphics/Battlebacks/battlebgIndoorA.png")
                @scene.sprites["playerbase"].setBitmap("Graphics/Battlebacks/playerbaseIndoorA.png")
                @scene.sprites["enemybase"].setBitmap("Graphics/Battlebacks/enemybaseIndoorA.png")
              when 1 # Volcanic Field
                @scene.sprites["battlebg"].setBitmap("Graphics/Battlebacks/battlebgVolcano.png")
                @scene.sprites["playerbase"].setBitmap("Graphics/Battlebacks/playerbaseVolcano.png")
                @scene.sprites["enemybase"].setBitmap("Graphics/Battlebacks/enemybaseVolcano.png")
             end
      end
    You have this piece of code, and you named the graphic, "Volcano".

    But in PokeBattle_Scene

    in here
    Code:
    # Apply override
        # Field Background
        if $fieldoverride != 0
          if $fieldoverride == 1
            backdrop="Volcanic"
          #elsif $fieldoverride == 2
          #  backdrop="Forest"
          else
            $tempfield = 0
          end
        backdrop3 = backdrop
        end

    and here
    Code:
    # Field Effects
        if backdrop=="Volcanic"
          fieldbd = 1
        #elsif backdrop=="Forest"
        #  fieldbd = 2
        else
          fieldbd = 0
        end

    You named it "Volcanic", the one in PokeBattle_Scene needs to use the same name as in the graphic.
    So change Volcanic to Volcano!
    That should do it.
     
    Thanks!
    Can't believe I made such a silly slip-up
     
    Back
    Top