• 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.

[Scripting Question] Aurora Veil and Innards Out bugs

  • 79
    Posts
    9
    Years
    • Seen Jan 12, 2024
    Hello, I recently implemented the scripts from Marin's gen 7 thread: https://www.pokecommunity.com/threads/387706 and I noticed 2 bugs (that are unrelated to one another). I would post on that thread but it was closed.

    The first is that Aurora Veil only lasts til the end of the turn. I'm nearly positive I pasted everything in correctly, but here's everything:

    EDIT: Found the problem! In Pokebattle_Battle, this:

    Code:
        # Aurora Veil
        for i in 0...2
          if sides[i].effects[PBEffects::AuroraVeil]>0
            sides[i].effects[PBEffects::AuroraVeil]-=1
           [COLOR="Red"] if sides[i].effects[PBEffects::AuroraVeil]=0[/COLOR]
              pbDisplay(_INTL("Your team's Aurora Veil faded!")) if i==0
              pbDisplay(_INTL("The opposing team's Aurora Veil faded!")) if i==1
              PBDebug.log("[End of effect] Aurora Veil ended on the player's side") if i==0
              PBDebug.log("[End of effect] Aurora Veil ended on the opponent's side") if i==1
            end
          end
        end

    should be changed to this:

    Code:
        # Aurora Veil
        for i in 0...2
          if sides[i].effects[PBEffects::AuroraVeil]>0
            sides[i].effects[PBEffects::AuroraVeil]-=1
            [COLOR="Red"]if sides[i].effects[PBEffects::AuroraVeil]==0[/COLOR]
              pbDisplay(_INTL("Your team's Aurora Veil faded!")) if i==0
              pbDisplay(_INTL("The opposing team's Aurora Veil faded!")) if i==1
              PBDebug.log("[End of effect] Aurora Veil ended on the player's side") if i==0
              PBDebug.log("[End of effect] Aurora Veil ended on the opponent's side") if i==1
            end
          end
        end

    The second bug is that Innards Out activates twice once you faint pyukumuku:

    Spoiler:

    Has anyone experienced this/know how to fix this?
     
    Last edited:
    Found it, thanks! In case anyone stumbles here searching for an updated innards out code:

    Spoiler:
     
    Found it, thanks! In case anyone stumbles here searching for an updated innards out code:

    Spoiler:

    Also remember to give credits for the scripters that wrote the code.
     
    Back
    Top